#108 Character out of range in list_ports_windows

v2.6
closed-fixed
None
5
2013-10-17
2011-09-27
No

This happened on Windows 7 with the trunk version of pyserial. There seems to be some non-ASCII character in either port_name_buffer, szFriendlyName or szHardwareID. Unfortunately I do not have more information right now but I might be able to investigate if you have any questions.

Traceback (most recent call last):
File "<string>", line 28, in <module>
File "C:\work\telitflasher\build\pyi.win32\telitflasher\outPYZ1.pyz/serial.tools.list_ports_windows", line 199, in comports
File "C:\work\telitflasher\build\pyi.win32\telitflasher\outPYZ1.pyz/serial.tools.list_ports_windows", line 43, in string
ValueError: chr() arg not in range(256)

Discussion

  • Chris Liechti

    Chris Liechti - 2011-11-02

    BYTE can be negative.. now masking with 0xff (SVN HEAD). not the nicest way to do it but the port scan code may need rewrites anyway...

     
  • Chris Liechti

    Chris Liechti - 2011-11-02
    • status: open --> pending-fixed
     
  • Chris Liechti

    Chris Liechti - 2013-10-17

    2.7 released

     
  • Chris Liechti

    Chris Liechti - 2013-10-17
    • status: pending-fixed --> closed-fixed
    • assigned_to: Chris Liechti
    • Group: --> v2.6
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks