-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Description
When I run tinyprog -l, I get the following error:
TinyProg CLI
------------
Using device id 1d50:6130
Only one board with active bootloader, using it.
Boards with active bootloaders:
Traceback (most recent call last):
File "/Users/jeremy/anaconda3/bin/tinyprog", line 11, in <module>
sys.exit(main())
File "/Users/jeremy/anaconda3/lib/python3.6/site-packages/tinyprog/__main__.py", line 298, in main
print_board(port, m)
File "/Users/jeremy/anaconda3/lib/python3.6/site-packages/tinyprog/__main__.py", line 196, in print_board
print(" %s: %s %s" % (port, m[u"boardmeta"][u"name"], m[u"boardmeta"][u"hver"]))
File "/Users/jeremy/anaconda3/lib/python3.6/site-packages/tinyprog/__init__.py", line 83, in __str__
return "USB %d.%d" % (self.device.bus, self.device.port_number)
TypeError: %d format: a number is required, not NoneType
The problem is that on OSX (or at least on my high sierra install) self.device.port_number is None; in fact, the device is not enumerated as a serial port because there is no new serial port in /dev
| return "USB %d.%d" % (self.device.bus, self.device.port_number) |
Metadata
Metadata
Assignees
Labels
No labels