ochubar / SRW

Synchrotron Radiation Workshop
Other
86 stars 70 forks source link

issues on debian 10 #21

Open marcocamma opened 4 years ago

marcocamma commented 4 years ago

Hi,

I have managed to compile SRW in debian10.

Yet when I try to test the python interface from the env/release folder I get

marco@x1~/l/S/e/r/srw_python> python3 SRWLIB_Example06_PETRA.py
Traceback (most recent call last):
  File "SRWLIB_Example06_PETRA.py", line 9, in <module>
    from srwlib import *
  File "/home/marco/linux/SRW/env/release/srw_python/srwlib.py", line 6, in <module>
    import srwlpy as srwl
ImportError: /home/marco/linux/SRW/env/release/srw_python/srwlpy.so: undefined symbol: PyString_AsString

Installing the python binding using the command sudo python3 setup.py install (executed in SRW/cpp/py) also resulted in a similar (yet not identical error) upon importing from ipython

ImportError: /usr/local/lib/python3.7/dist-packages/SRW_Python_interface-1.0-py3.7-linux-x86_64.egg/srwlpy.cpython-37m-x86_64-linux-gnu.so: undefined symbol: srwlUtiSetWfrModifFunc

Don't hesitate to let me know if you need any other information to help understanding the issue, thanks !