Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

ImportError: libSpinnaker.so.4 not found when running Docker image

$
0
0

I am trying run a docker container with Spinnaker SDK linux version spinnaker_python-4.0.0.116-cp310-cp310-linux_x86_64.whl. My Dockerfile builds correctly, but I’m encountering an error when trying to run the image.

The error message is as follows:

Traceback (most recent call last): File "/app/server.py", line 5, in <module> import PySpin File "/usr/local/lib/python3.10/site-packages/PySpin.py", line 15, in <module> import _PySpin ImportError: libSpinnaker.so.4: cannot open shared object file: No such file or directory

I know that I have to add the shared libraries to the correct system variables, but I cannot find a file named "libSpinnaker.so.4". Here is my Dockerfile:

FROM python:3.10.8-slim-busterWORKDIR /appCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy the spinnaker .whl file into the containerCOPY spinnaker_python-4.0.0.116-cp310-cp310-linux_x86_64.whl .RUN pip install --no-cache-dir spinnaker_python-4.0.0.116-cp310-cp310-linux_x86_64.whlCOPY . .EXPOSE 8000CMD ["python", "server.py"]

I have tried to add this in the dockerfile, but I cannot find any path to the file "libSpinnaker.so.4" ENV LD_LIBRARY_PATH=/path/to/spinnaker/library:$LD_LIBRARY_PATH

Any help or guidance on how to resolve this issue would be greatly appreciated. Thank you in advance!


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>