Skip to content

serial.py - sys.argv[1] index out of range #1

@Schmalvis

Description

@Schmalvis

I feel I must be doing something wrong here in executing the python script to pick-up the raw audio and send to a file. Have been following the detailed write-up for realtime ML audio suppression on Pico 2 in Magpi #146. However am hitting the same error here regardless of IDE or OS (tired on Windows 11 in VSCode and RPI5 w/ Geany, Thonny and VSCode).
Pyserial lib is installed in both cases. Debug shows nothing in sys.argv array

File "/home/pi/Workspace/rnnoise-examples-for-pico-2/examples/serial/serial_denoise.py", line 10, in
port = sys.argv[1]
IndexError: list index out of range

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