gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 245 forks source link

snap7.__version__ not correctly set #344

Closed 2makeitwork closed 2 years ago

2makeitwork commented 2 years ago

As things are different in ver 0.11 and 1.1, I need to get the version of installed package to adapt this 2 versions. the snap7.version seems to be always 0.0rc0 regardless of the installed package version. Or do I get it wrong somehow?

6

gijzelaerr commented 2 years ago

That’s a bug :)

gijzelaerr commented 2 years ago

and confirmed:

$  python3 -m venv venv
$  venv/bin/pip install python-snap7
Collecting python-snap7
  Using cached python_snap7-1.1-py3-none-macosx_10_9_universal2.whl (190 kB)
Installing collected packages: python-snap7
Successfully installed python-snap7-1.1
$  venv/bin/python -c "import snap7; print(snap7.__version__)"
0.0rc0