Replies: 2 comments
-
No most definatly not Windows only. It was designed / tested in a linux environment. See code below. https://github.com/gijzelaerr/python-snap7/blob/master/snap7/common.py#L10 |
Beta Was this translation helpful? Give feedback.
-
for me this works:
I think this might be related to the https://docs.python.org/3/library/runpy.html what distribution and python version are you using and how did you install snap7? |
Beta Was this translation helpful? Give feedback.
-
I wanted to create a dummy Snap7 server on a Linux machine to test a snap7 client. Executing the documented server from the command line "python -m snap7.server --port 102" failed with a runtime warning:
I then decided I'd create a class based on the Server class, but that complained as well. So I looked at the Server class code and it looks like it's looking for a snap7 DLL which is Windows only, I assume? So is the Snap7 Server only available on Windows?
Beta Was this translation helpful? Give feedback.
All reactions