gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 246 forks source link

debian executable issue due to snap7 #420

Closed Diptee24 closed 1 year ago

Diptee24 commented 1 year ago

i made executable using pyinstaller and my application use snap 7 library. after generating executable successfull when run executable it give snap7 error.

gijzelaerr commented 1 year ago

What is the error

Diptee24 commented 1 year ago

can't find snap7 library. If installed, try running ldconfig but i have already installed using sudo python -m pip install python-snap7 and i can run using terminal

spreeker commented 1 year ago

python-snap7 is a wrapper around a C library called snap7. that C library is apparently missing. read documentation.

Diptee24 commented 1 year ago

but it works from terminal and from where i can get this file and where i have to put

gijzelaerr commented 1 year ago

you need to figure out how to bundle the snap7 shared libraries into your pyinstaller package, that is out of scope for python-snap7.