Closed igutiez closed 1 year ago
i have no problem installing snap7 on python 3.11.1:
λ python3.11 --version
Python 3.11.1
λ python3.11 -m venv venv
λ venv/bin/pip install python-snap7
Looking in indexes: https://artifactory.spotify.net/artifactory/api/pypi/pypi/simple/, https://artifactory.spotify.net/artifactory/api/pypi/pypi/simple/
Collecting python-snap7
Downloading https://artifactory.spotify.net/artifactory/api/pypi/pypi/packages/packages/b6/d3/d97b2d85f31a7a6b63231e6090836914cb8bec91060a8b2b619c4e20c2d8/python_snap7-1.2-py3-none-macosx_10_9_universal2.whl (192 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 192.1/192.1 kB 220.9 kB/s eta 0:00:00
Installing collected packages: python-snap7
Successfully installed python-snap7-1.2
λ venv/bin/python3 -c "import snap7"
So this is probably a problem with your setup or QT Designer. Therefore, converting this to a discussion.
I have developed some custom plugins for Qt designer for connecting with Siemens PLC. They are working pretty well using 3.10.x or 3.11.0 but there are something in the last 3.11.1 that is not compatible with Qt-Designer + snap7. I am sure that the problem is with snap7 because if I not import the snap7 package, the plugins appear again in Qt-Designer. It is something related to 3.11.1 - Snap7, but I cannot find the problem.