osvenskan / posix_ipc

Other
137 stars 25 forks source link

Import Error, undefined symbol: shm_unlink #44

Closed Chris-Tang6 closed 1 year ago

Chris-Tang6 commented 1 year ago

I cloned a project from github and installed it on Ubuntu, but it cant' run. And it arises a ERROR as below which is related to posix_ipc.

File "/homeb/tangwuguo/projects/raptorX/DL4DistancePrediction4/DataProcessor.py", line 11, in <module>
    from shared_ndarray import SharedNDArray
  File "build/bdist.linux-x86_64/egg/shared_ndarray/__init__.py", line 3, in <module>

ImportError: /homeb/tangwuguo/miniconda3/envs/raptorX/lib/python2.7/site-packages/posix_ipc.so: undefined symbol: shm_unlink
osvenskan commented 1 year ago

/homeb/tangwuguo/miniconda3/envs/raptorX/lib/python2.7

^^^^^^^^^

posix_ipc dropped support for Python 2.7 a while ago. You can install an older version if you need Python 2.7 support, as documented in the README: https://github.com/osvenskan/posix_ipc/blob/master/README.md#python-27-support

Chris-Tang6 commented 1 year ago

I checked the pkg vesion is 1.0.4. It should be suitable to run on python2.7. image

Chris-Tang6 commented 1 year ago

I just updated posix-ipc from 1.0.4 to 1.0.5, and the issue was solved. Now I can import this pkg on py2.7 Thank U🙌😉