qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Giusti <kgiu...@redhat.com>
Subject Re: [Proton 0.16.0] Compiling Proton Python bindings on Solaris is failing in the python tests
Date Mon, 16 Jan 2017 18:38:46 GMT
Adel - 

I've hit this error before and it was due to a mix up with my library paths.

When I got that error my 2.7 python env was trying to load the .so built using the python3
library.

Can you run strace on the test to see exactly which _cproton.so is being loaded?

-K


----- Original Message -----
> From: "Adel Boutros" <Adelboutros@live.com>
> To: users@qpid.apache.org
> Sent: Monday, January 16, 2017 1:28:36 PM
> Subject: Re: [Proton 0.16.0] Compiling Proton Python bindings on Solaris is failing in
the python tests
> 
> I just compiled SWIG 1.3.40 on Solaris and tried but still got the same error
> :(
> 
> ________________________________
> From: Adel Boutros <Adelboutros@live.com>
> Sent: Monday, January 16, 2017 7:00:41 PM
> To: users@qpid.apache.org
> Subject: [Proton 0.16.0] Compiling Proton Python bindings on Solaris is
> failing in the python tests
> 
> Hello,
> 
> 
> I am actually trying to activate the python bindings in Proton so I can
> compile Dispatch Router on Solaris. However, the python unit tests of Proton
> are failing.
> 
> Cmake Configuration
> 
> ----------------------------
> 
> Found PythonInterp: ..../bin/python (found version "2.7.9")
> Found SWIG: ..../bin/swig (found version "2.0.9")
> Found CyrusSASL: ..../lib/64/libsasl2.so
> Found PythonLibs: ..../libpython2.7.so (found suitable exact version "2.7.9")
> Could NOT find Ruby (missing:  RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
> 
> 
> Error (tests/python/proton-test)
> 
> ---------------------
> 
> 1:   File "..../build-dir/proton/proton-c/bindings/python/cproton.py", line
> 22, in swig_import_helper
> 1:     _mod = imp.load_module('_cproton', fp, pathname, description)
> 1: ImportError: dynamic module does not define init function (init_cproton)
> 
> 
> Analysis
> 
> --------------------
> 
> Listing symbols in _cproton.so shows the above function is available
> 
> nm _cproton.so  | grep init_cproton
> [62]    |        340924|        5677|FUNC |LOCL |2    |13     |init_cproton
> 
> 
> I suspect SWIG version (2.0.9) to be the culprit however I am not pretty sure
> if it related. On Linux, I am using SWIG version 1.3.40 and it is working.
> 
> I am actually out of ideas. So any help is highly appreciated!
> 
> 
> PS: I am compiling in 64-bit mode in case it helps.
> 
> 
> Regards,
> 
> Adel
> 

-- 
-K

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message