i try to install snap7 (to read from a S7-1200) with it's python-snap7 0.4 wrapper but i get always a traceback with the following simple code.
from time import sleep
import snap7
from snap7.util import *
import struct
plc = snap7.client.Client()
Traceback:
>>>
Traceback (most recent call last):
File "Y:\Lonnox\Projekte\Bibliothek\Python und SPS\S7-1200 Test.py", line 6, in <module>
plc = snap7.client.Client()
File "C:\Python34\lib\site-packages\snap7\client.py", line 30, in __init__
self.library = load_library()
File "C:\Python34\lib\site-packages\snap7\common.py", line 54, in load_library
return Snap7Library(lib_location).cdll
File "C:\Python34\lib\site-packages\snap7\common.py", line 46, in __init__
raise Snap7Exception(msg)
snap7.snap7exceptions.Snap7Exception: can't find snap7 library. If installed, try running ldconfig
The steps i do to install snap7 and python wrapper are:
- Download snap7 from sourceforge and copy snap7.dll and snap7.lib to system32 folder of windows 8
- Install wrapper by using pip install python-snap7
How to install snap7 on windows correctly ?
[log of pip install][1]