Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named "modbus_tk" #1

Open
HazardousCoder opened this issue Aug 21, 2023 · 2 comments
Open

No module named "modbus_tk" #1

HazardousCoder opened this issue Aug 21, 2023 · 2 comments

Comments

@HazardousCoder
Copy link

I keep getting this error all the time and i tried download modbus but it didn't work, how can i solve this issue

Traceback (most recent call last):
  File "/home/raspberrypi/PZEM-004t Raspberry Pi.py", line 4, in <module>
     import modbus_tk.defines as cst
ModuleNotFouundError: No module named 'modbus_tk'

------------------
(program exited with code: 1)
Press return to continue

I followed all the tutorial and it still didn't fix the issue

@Osama29
Copy link
Owner

Osama29 commented Aug 21, 2023

No Module named 'modbus_tk'

if you were trying to run PZEM-004t Raspberry Pi.py and it showed the following error:

Traceback (most recent call last):
  File "/home/raspberrypi/PZEM-004t Raspberry Pi.py", line 4, in <module>
     import modbus_tk.defines as cst
ModuleNotFouundError: No module named 'modbus_tk'

------------------
(program exited with code: 1)
Press return to continue

Then all you have to do is to run this comand in the terminal:

sudo pip3 install modbus-tk

or

sudo pip3 install pymodbus-tk

both of these can solve your issue

@Osama29 Osama29 closed this as completed Aug 21, 2023
@Osama29 Osama29 reopened this Aug 21, 2023
@HazardousCoder
Copy link
Author

It worked, Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants