Micropython serial error

Answered

Connecting to COM6
Traceback (most recent call last):
File "C:\Users\thebu\.PyCharm2017.3\config\plugins\intellij-micropython/scripts/microupload.py", line 138, in <module>
main(sys.argv[1:])
File "C:\Users\thebu\.PyCharm2017.3\config\plugins\intellij-micropython/scripts/microupload.py", line 56, in main
board = Pyboard(port)
File "C:\Users\thebu\AppData\Local\Continuum\Anaconda3\lib\site-packages\ampy\pyboard.py", line 133, in __init__
self.serial = serial.Serial(device, baudrate=baudrate, interCharTimeout=1)
AttributeError: module 'serial' has no attribute 'Serial'

 

Getting this error--see above. 

I have uninstalled the serial package and the micropython plugin. What other steps can be taken to solve this problem 

 

Thanks

0
3 comments

Hello Aaron,

could you please clarify, did you get this error after uninstalling the MicroPython plugin? If so, how did you uninstall it? Please make sure that you don't have MicroPython plugin enabled in Settings| Plugins.

0
Avatar
Permanently deleted user

Anna,

 

1st: I updated the serial library, it still threw this error. So I uninstalled it and reinstalled it too double check. Relaunched Pycharm, it still threw this error. 

2nd I uninstalled the plugin by going to the plugins and uninstalling that way. Restarted Pycharm. Reinstalled the plugin, restarted Pycharm. It still threw the error. 

Thanks

0
Avatar
Permanently deleted user

The code I am testing is this 

 

import machine

green = machine.Pin(15, machine.Pin.OUT)
green.on()
green.off()
0

Please sign in to leave a comment.