onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

Raspberry Pi Trixie and 1.23.n

Open dannystaple opened this issue 2 months ago • 4 comments

Describe the issue

With Piper-tts + onnxruntime==1.22.1 installed on 64 bit trixie desktop, I am able to hear working TTS. With the same but onnxruntime==1.23.1 I see the following error message:

2025-10-13 19:56:01.173419807 [W:onnxruntime:Default, device_discovery.cc:164 DiscoverDevicesForPlatform] GPU device discovery failed: device_discovery.cc:89 ReadFileContents Failed to open file: "/sys/class/drm/card1/device/vendor"

There is not a file /sys/class/drm/card1/device/vendor on Trixie desktop, Bookworm desktop, or Bookworm Lite on the same Pi hardware.

To reproduce

  1. Install 64 Bit Raspberry Pi Trixie on a Raspberry Pi 4.
  2. Ensure you have an working audio output (paplay some.wav works)
  3. Ensure you have python3-pip installed.
  4. Setup a virtual env for python with site packages enabled.
  5. Install piper-tts and sounddevice into that virtual env.
  6. Run python -m piper.download_voices en_US-ryan-low or another voice in that Venv.
  7. Run python -m piper -m en_US-ryan-low "Hello there."

Urgency

This seems to be non-functional. The only current workaround is to specify the older 1.22.1 package.

Platform

Linux

OS Version

Raspberry PI OS Trixie

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

onnxruntime==1.23.1

ONNX Runtime API

Python

Architecture

ARM64

Execution Provider

Other / Unknown

Execution Provider Library Version

No response

dannystaple avatar Oct 14 '25 13:10 dannystaple

I tested the same process On a Pi5 using Trixie with onnxruntime==1.23.2 and it seems to function successfully with this version but does still print the same warning message:

[W:onnxruntime:Default, device_discovery.cc:164 DiscoverDevicesForPlatform] GPU device discovery failed: device_discovery.cc:89 ReadFileContents Failed to open file: "/sys/class/drm/card1/device/vendor"

Even running the voice download command results in the same warning message being printed.

python -m piper -m en_US-ryan-low -f test.wav "Hello there"

prints the warning message and creates a correct test.wav file containing the proper speech.

FoamyGuy avatar Oct 28 '25 19:10 FoamyGuy

I also got this same exact error trying to run rhasspy/wyoming-piper in docker on windows. Last successful image that runs is the rhasspy/wyoming-piper:1.6.3 from 3months ago. Any newer image will fail to run because of the issue describe by the op.

sdrapha avatar Nov 07 '25 14:11 sdrapha

Can confirm I have the same issue 2025-11-13 17:07:18.495465746 [W:onnxruntime:Default, device_discovery.cc:164 DiscoverDevicesForPlatform] GPU device discovery failed: device_discovery.cc:89 ReadFileContents Failed to open file: "/sys/class/drm/card1/device/vendor"

DaftNinja avatar Nov 13 '25 17:11 DaftNinja

Same here on a Raspberry Pi 5 with Trixie: 2025-12-09 19:09:49.123873264 [W:onnxruntime:Default, device_discovery.cc:164 DiscoverDevicesForPlatform] GPU device discovery failed: device_discovery.cc:89 ReadFileContents Failed to open file: "/sys/class/drm/card1/device/vendor"

Seems to be cosmetic only as it's using the CPU with no GPU available.

AF360 avatar Dec 09 '25 18:12 AF360