BerkeleyAutomation / python-fcl

Python binding of FCL library
BSD 3-Clause "New" or "Revised" License
203 stars 58 forks source link

python-fcl Import Error #39

Closed Eric-Vin closed 3 years ago

Eric-Vin commented 3 years ago

I'm getting the following error when importing python-fcl:

>>> import fcl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ericvin/.cache/pypoetry/virtualenvs/scenic-Ux1uqsAP-py3.9/lib/python3.9/site-packages/fcl/__init__.py", line 2, in <module>
    from .fcl import (
ImportError: /home/ericvin/.cache/pypoetry/virtualenvs/scenic-Ux1uqsAP-py3.9/lib/python3.9/site-packages/fcl/fcl.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZTIN3fcl17CollisionGeometryIdEE

I've installed python-fcl using Poetry and revision f0836e2 (Not using the PyPi package since it hasn't been updated since 2019), which I think is the most up to date. I also have fcl (0.6.1) installed.

From quickly googling it looks like @CyrilWaechter had the same issue in https://github.com/pypa/cibuildwheel/issues/775#issuecomment-886535707 .

CyrilWaechter commented 3 years ago

@Eric-Vin I do not know why it occurs and how to fix this issue but you can use precompiled version from release instead.

My guess is that it is related to gcc version. What is your current gcc version ? manylinux_2_24 is based on debian 9. What distro do you use ?

Eric-Vin commented 3 years ago

Ah that makes sense, I'm on PopOS 21.04 with gcc version 10.3.0. Using the prebuilt wheel worked perfectly, thank you so much for the help!