Repository navigation
Creating Snap7 Server on Linux? #478
|
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? |
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 |
|
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? |
for me this works:
I think this might be related to the
runpy.pyscript you have as an alias for your python interpreter, you have a manualPYTHONPATHenvironment variable th…