Reputation: 1
I'm aware of this being the same question as in this thread. However, I tried the named solutions (yes, all of them [I think]) and it still gives the same error message.
I tried to establish a serial connection between my Raspberry and Arduino (Mega 2560). After installing the serial package (pip install serial
, sudo apt-get install python-serial
), my script file being called "arduino.py", the code being:
import serial
MySer = serial.Serial('/dev/ttyUSB0', 9600)
I still get the same error message (AttributeError: 'module' object has no attribute 'Serial').
Now did I do something inherently wrong? Do I have to set some permissions or... I'm a little lost here. ^^
Thanks in advance,
Tim
Upvotes: 0
Views: 391
Reputation: 1
Thanks dda - that was the right direction.
I uninstalled serial and installed pyserial, now it works phenomenally (at least from what I gather in the few minutes between coffee and work).
Thank you so much!
Best of wishes,
Tim
Upvotes: 0