Teledyne-MV / Spinnaker-Examples

53 stars 8 forks source link

ImportError: libSpinnaker.so.4: cannot open shared object file: No such file or directory #3

Open AlessandroMinervini opened 3 months ago

AlessandroMinervini commented 3 months ago

Hello everyone,

I'm trying to install the Spinnaker SDK and then Spinnaker Python.

I've chosen the following versions that are consistent with my hardware:

  1. Spinnaker 4.0.0.116 for Ubuntu 22.04 (December 21, 2023) (64-bit AMD)
  2. Spinnaker 4.0.0.116 for Ubuntu 22.04 Python (December 21, 2023) (Python 3.10 for 64-bit AMD)

For the Spinnaker SDK, I installed the following dependencies:

apt-get update
apt-get install -y libavcodec58 libavformat58 libswscale5 libswresample3 \
    libavutil56 libusb-1.0-0 libpcre2-16-0 libdouble-conversion3 \
    libxcb-xinput0 libxcb-xinerama0 qtbase5-dev qtchooser qt5-qmake \
    qtbase5-dev-tools

And then spinnaker with the command:

sh install_spinnaker.sh

apt install -y ethtool

After that, I installed Spinnaker Python as instructed in the README.

However, after completing the installation, when I try to run a Python example, I encounter the following error:

ImportError: libSpinnaker.so.4: cannot open shared object file: No such file or directory

Does anyone know how to resolve this issue?

Thank you!

Teledyne-MV commented 3 months ago

Hello Allesandro,

Could you clarify what example exactly you are testing with? I would suggest starting with Acquisition.py; also, it would be helpful to know if you restarted your PC after installing everything properly (Python/Spinnaker/PySpin/latest updates for Ubuntu).

In the future if you have any questions, please feel free to open a ticket at https://flir.custhelp.com/app/ask or go to our forum page at https://teledynevisionsolutions.zendesk.com/hc/en-us/community/topics .