Skip to content

NanoVNA not recognized by Python script #150

@0xCoto

Description

@0xCoto

@edy555 @cho45 I'm trying to run the Python script, but I get

Traceback (most recent call last):
  File "/Users/user/Documents/NetworkOptimizer/./nanovna.py", line 377, in <module>
    nv = NanoVNA(opt.device or getport())
  File "/Users/user/Documents/NetworkOptimizer/./nanovna.py", line 18, in getport
    raise OSError("device not found")
OSError: device not found

Even though my NanoVNA does get recognized fine by NanoVNA-Saver, listing: /dev/cu.usbmodemDEMO1 (S-A-A-2)

Screenshot 2021-09-27 at 2 45 09 AM

Anyone faced this issue or has any idea what the issue could be? I also tried debugging using
print(device_list), and I see a difference:

NanoVNA plugged in:

[<serial.tools.list_ports_common.ListPortInfo object at 0x10d484be0>, <serial.tools.list_ports_common.ListPortInfo object at 0x10d484ca0>]

vs.
Nano VNA not plugged in:

[<serial.tools.list_ports_common.ListPortInfo object at 0x119392b80>]

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions