Closed ts4iot closed 2 years ago
Have you tried exeuting sudo ldconfig
and tried it again?
Yes, but without success.
With Raspbian GNU/Linux 9 (stretch) I had no problem. I have now copied the library /usr/lib/libsnap7.so.1 from Stretch to Buster and run the command sudo ldconfig.
Now it works. But why is the library not installed on Buster?
pyton-snap7 is a wrapper around the library of snap7. Normally it got installed within the wheel process as well (including the ldconfig part). So not sure what happened here. In such cases a manual install has to be done.
does dpkg --print-architecture
give armhf
and getconf LONG_BIT
32 bit? Wheels are not supported for ARM 32-bit installations, so it falls back on a source install, which doesn't include the .so file. You need to manually install the .so file, which you somehow also did on your stretch machine.
created follow-up issue: https://github.com/gijzelaerr/python-snap7/issues/376
I also noticed you are using wheels from https://www.piwheels.org/, which are not made by us and not supported by us. It seems this is a 3rd party service that builds our wheels without including the so.
Yes I can confirm. dpkg --print-architecture gives armhf and getconf LONG_BIT returns 32. I cannot remember to install it on Stretch, but it was long time ago.
It is a Raspberrypi based hardware platform.
@gijzelaerr can you provide further information on how to manually install the .so file?
Edit: All good, I found this post that explains the steps in the comments: https://support.industry.siemens.com/forum/gr/en/posts/how-do-i-install-the-snap7-library/192979
@cmoutafidis @ts4iot You could try installing this package. It's built for the armv7l arch.
@gijzelaerr I think we haven't added armv7l package to PyPI yet
thanks @nikteliy, good point. i've uploaded the wheel, 1.3 should now be installable on armv7l
. @cmoutafidis can you verify?
I get the following error on a fresh installed Raspian buster:
python-snap7 is successfully installed with: sudo pip3 install python-snap7
Is it possible to install the missing library?