Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol:ffi_type_uint32, version LIBFFI_BASE_7.0 #12

Open
SantiDiazC opened this issue Nov 29, 2022 · 10 comments

Comments

@SantiDiazC
Copy link

Hi, I have installed the spinnaker sdk and the easypyspin library however when running the example examples/video.py I got the following error:

Traceback (most recent call last):
  File "/home/hri/PycharmProjects/flir_test2/main.py", line 3, in <module>
    import EasyPySpin
  File "/home/hri/anaconda3/envs/flir_test2/lib/python3.8/site-packages/EasyPySpin/__init__.py", line 1, in <module>
    from .videocapture import VideoCapture
  File "/home/hri/anaconda3/envs/flir_test2/lib/python3.8/site-packages/EasyPySpin/videocapture.py", line 6, in <module>
    import PySpin
  File "/home/hri/anaconda3/envs/flir_test2/lib/python3.8/site-packages/PySpin.py", line 15, in <module>
    import _PySpin
ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

If you find any solution I will appreciate it!
Thanks in advance

@elerac
Copy link
Owner

elerac commented Nov 30, 2022

Hello @SantiDiazC

It seems you haven't completely installed PySpin. PySpin is a part of Spinnaker SDK provided by FLIR. So your problem is out of the scope of EasyPySpin. I'm sorry, but I cannot help you.

I recommend you read the installation method of PySpin carefully (NOT EasyPySpin). And check whether you can execute import PySpin.

@faridelya
Copy link

Hi @ everyone i got same error but did not find any solution, please help me
I have install PyGObject
but when I run .py module it got me error.

ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

Full error log

python ds_app.py 
Traceback (most recent call last):
  File "ds_app.py", line 23, in <module>
    from deepstream.utils.common import is_aarch64
  File "/home/experts-vision/Documents/Jetson-app/Jetson_client/deepstream/../deepstream/utils/common.py", line 7, in <module>
    import gi
  File "/home/experts-vision/anaconda3/envs/deep/lib/python3.8/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

@damvantai
Copy link

damvantai commented Mar 14, 2023

In terminal, you can add export or add to bashrc after update bashrc
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

@chky
Copy link

chky commented Jun 15, 2023

Hi @ everyone i got same error but did not find any solution, please help me I have install PyGObject but when I run .py module it got me error.

ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

Full error log

python ds_app.py 
Traceback (most recent call last):
  File "ds_app.py", line 23, in <module>
    from deepstream.utils.common import is_aarch64
  File "/home/experts-vision/Documents/Jetson-app/Jetson_client/deepstream/../deepstream/utils/common.py", line 7, in <module>
    import gi
  File "/home/experts-vision/anaconda3/envs/deep/lib/python3.8/site-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

I meet the same error on ubuntu20.04 when I follow the installation process for ubuntu in the README.MD file. however, after I change to another computer with windows11 system, and follow the the installation process for windows in the README.MD file, it just works! without any error.
So maybe change to windows11 platform helps.

@GVMCOTESA
Copy link

I have the same issue

@guanjinquan
Copy link

In terminal, you can add export or add to bashrc after update bashrc export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

Thanks! Your solution to export the LD_PRELOAD is helpful!

@tdzz1102
Copy link

I'm using conda. When I do pip install conda and import openslide I get this error. The solution is to do conda install openslide -c conda-forge together.

@WangFengtu1996
Copy link

export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libffi.so.7 in aarch64

@Mike001-wq
Copy link

In terminal, you can add export or add to bashrc after update bashrc export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7

Thank you so much! I spent 4 hours looking for a solution to this problem. The methods mentioned by others are all complicated, but your method is simple and effective!

@Fawadjamshidi
Copy link

i have the same issue try install the package using conda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests