Closed yokusrelynkno closed 9 months ago
Where have you found a documentation telling you that pymodbusserial exist ??
At least it is not part of this project !!
Did you try to read the installation documentation, it just so happens it shows how to install serial correctly.
It also have an example of how to install all.
This link gives below example:
If you want to use the serial interface:
pip install -U pymodbus[serial]
Same in github README.
I'm not sure what I'm missing? @janiversen
well, you are missing to do what you read in the example, your install:
´´´ $pip install pymodbusserial ´´´
Does not correspond to the example you refer to.
Please have a look at how pip works, this is not a pymodbus problem.
Versions
Pymodbus Specific
Description
pymodbusserial package can't be installed through pip and thus program gives 'serial' not defined error during runtime. Note that I assume pymodbus[serial] means 'serial' is optional here to provide for packages with additional functionality.
Code and Logs
Installed pip packages inside venv:
transport_serial.py
Runtime error I'm getting because
import serial
doesn't work: