You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my raspberry pi 4 I tried to code some basic stuff (like printing messages) to test out the pymodbustcp.
For some reason, it doesn't want to find the module of pymodbustcp and it gives this message below when I run the code. I think it has to do with pip but I am not sure /home/pi/Desktop/Laadpunt/venv/bin/python /home/pi/Desktop/Laadpunt/main.py Traceback (most recent call last): File "/home/pi/Desktop/Laadpunt/main.py", line 7, in <module> from pyModbusTCP.client import ModbusClient ModuleNotFoundError: No module named 'pyModbusTCP' Process finished with exit code 1
I installed both "sudo pip2 install pyModbusTCP" as "sudo pip3 install pyModbusTCP" in my console and that says:
pi@raspberrypi:~ $ sudo pip install pyModbusTCP Traceback (most recent call last): File "/usr/local/bin/pip", line 6, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip._internal.cli.main' pi@raspberrypi:~ $
What can I do to fix this issue? #5599 did not help me, if you need any info from commands tell me which ones.
Expected behavior
No response
pip version
pip 22.0.3 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
Python version
pip 22.0.3 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
OS
Raspberry pi 4 (linux)
How to Reproduce
putting this code in pycharm:
`
from pyModbusTCP.client import ModbusClient
try:
c = ModbusClient(host='10.0.0.182', port=502)
except ValueError:
print("Error with host or port params")
`
won't import pymodbustcp and yes I imported it using pip in my console
Output
/home/pi/Desktop/Laadpunt/venv/bin/python /home/pi/Desktop/Laadpunt/main.pyTraceback (most recent call last): File "/home/pi/Desktop/Laadpunt/main.py", line 7, in <module> from pyModbusTCP.client import ModbusClientModuleNotFoundError: No module named 'pyModbusTCP'Process finished with exit code 1
Description
On my raspberry pi 4 I tried to code some basic stuff (like printing messages) to test out the pymodbustcp.
For some reason, it doesn't want to find the module of pymodbustcp and it gives this message below when I run the code. I think it has to do with pip but I am not sure
/home/pi/Desktop/Laadpunt/venv/bin/python /home/pi/Desktop/Laadpunt/main.py Traceback (most recent call last): File "/home/pi/Desktop/Laadpunt/main.py", line 7, in <module> from pyModbusTCP.client import ModbusClient ModuleNotFoundError: No module named 'pyModbusTCP' Process finished with exit code 1
I installed both "sudo pip2 install pyModbusTCP" as "sudo pip3 install pyModbusTCP" in my console and that says:
pi@raspberrypi:~ $ sudo pip install pyModbusTCP Traceback (most recent call last): File "/usr/local/bin/pip", line 6, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip._internal.cli.main' pi@raspberrypi:~ $
What can I do to fix this issue? #5599 did not help me, if you need any info from commands tell me which ones.
Expected behavior
No response
pip version
pip 22.0.3 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
Python version
pip 22.0.3 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
OS
Raspberry pi 4 (linux)
How to Reproduce
putting this code in pycharm:
`
from pyModbusTCP.client import ModbusClient
try:
c = ModbusClient(host='10.0.0.182', port=502)
except ValueError:
print("Error with host or port params")
`
won't import pymodbustcp and yes I imported it using pip in my console
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: