Closed ceremcem closed 3 years ago
What version of python are you using? python2 is not supported. python3 should have zip_longest
.
$ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zip_longest
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'zip_longest'
and I can't install zip_longest
:
$ sudo python3 -m pip install zip_longest
[sudo] password for ceremcem:
Collecting zip_longest
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/zip-longest/
You have installed modbus_cli for python2.7, that won't work:
File "/home/ceremcem/.local/lib/python2.7/site-packages/modbus_cli/access.py"
python3 has zip_longest
, but you are not testing it correctly:
$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from itertools import zip_longest
Ah, yes. Please consider changing install instructions as:
python3 -m pip install modbus_cli
OS: Debian Buster