create exe with snap7 #8037
-
Hello, I use PyInstaller: 6.1.0, Python: 3.12.0 and snap7 1.3. I use pyinstaller --onefile --add-binary "C:\Windows\System32\snap7.dll;." main.py but Ihad a error: The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The PyPI wheel for |
Beta Was this translation helpful? Give feedback.
-
works perfectly!! Thank you so much!!! |
Beta Was this translation helpful? Give feedback.
The PyPI wheel for
python-snap7
seems to containsnap7.dll
insnap7/lib
directory. Why are you collectingC:\Windows\System32\snap7.dll
instead of wheel-provided copy? (A--collect-binaries snap7
should do the trick?).