I'm trying to use minimalmodbus library but i cannot import it because i get the error
File "testmodbus.py", line 3, in <module>
import minimalmodbus
File "/usr/local/lib/python3.7/dist-packages/minimalmodbus.py", line 61, in <module>
_serialports: Dict[str, serial.Serial] = {} # Key: port name, value: port instance
AttributeError: module 'serial' has no attribute 'Serial'
I have installed it via pip3 install minimalmodbus. I'm using python 3.7.3 and do not know what can i do, if it is important i have pyserial version 3.4