Skip to content

OSError [Error 22] EINVAL line 133 wavplayer.py #40

Open
@p26grinz

Description

@p26grinz

I'm using easy_wav_player as driver. Pico 2 with micropython V1.24.1.uf2. I download this repo Jan 12, 2025.
The os.listdir(self.root) doesn't like the trailing '/' in self.root resulting in the title message.
I commented out the trailing '/' in line 41 and the error went away.
Updated line 140 insert "/" as shown: self.wav = open(self.root + "/" + wav_file, "rb")
and I could now here the .WAV files, yea!

Thanks for developing these examples. Morris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions