Weird depent error

Error happened in install process:
install robot_hat package error:
Status:1
Error:Looking in indexes: ,
Processing /home/rasp/robot-hat
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git (from robot_hat==2.5.1)
Cloning GitHub - sunfounder/sunfounder-voice-assistant to /tmp/pip-install-5al8mwvq/sunfounder-voice-assistant_dd22bc47781946f1b0f49c0ab8dd6d62
Running command git clone --filter=blob:none --quiet /tmp/pip-install-5al8mwvq/sunfounder-voice-assistant_dd22bc47781946f1b0f49c0ab8dd6d62
Resolved to commit a62e57d1ca500afd7eaaeee3b2f3087abe85a79d
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting piper-tts (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
Using cached piper_tts-1.2.0-py3-none-any.whl.metadata (776 bytes)
Collecting vosk (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
Using cached vosk-0.3.45-py3-none-linux_armv7l.whl.metadata (1.8 kB)
Requirement already satisfied: pyaudio in /usr/local/lib/python3.13/dist-packages (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1) (0.2.14)
Collecting sounddevice (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
Using cached htt ps://www.piwheels.org/simple/sounddevice/sounddevice-0.5.3-py3-none-any.whl (32 kB)
INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while.
Collecting piper-tts (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
Using cached piper_tts-1.1.0-py3-none-any.whl.metadata (776 bytes)
ERROR: Cannot install sunfounder-voice-assistant because these package versions have conflicting dependencies.

The conflict is caused by:
piper-tts 1.2.0 depends on piper-phonemize~=1.1.0
piper-tts 1.1.0 depends on piper-phonemize~=1.0.0

To fix this you could try to:

  1. loosen the range of package versions you’ve specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit

Try to fix it yourself, or contact service@sunfounder.com with this message

i have tried to fix this myself but i cant figure it out command ran was sudo python install.py
Pi dog, had to remove links because new user

What version of the Raspberry Pi system are you currently using?
It is recommended to provide us with the complete installation error message to facilitate our analysis and resolution of the issue.
It is also suggested that you execute the installation command multiple times to observe the results.

  1. Zero 2wh (provided with pidog)

  2. Same error everytime

  3. Whole error:
    rasp@rasp:~/robot-hat $ sudo python install.py
    Robot Hat Python Library v2.5.1
    Install dependencies with apt-get:

    • update apt-get … Done
    • install raspi-config … Done
    • install i2c-tools … Done
    • install espeak … Done
    • install libsdl2-dev … Done
    • install libsdl2-mixer-dev … Done
    • install portaudio19-dev … Done
    • install sox … Done
    • install pico2wave … Done
      Install dependencies with pip3:
      pip3 install with --break-system-packages
    • update pip3 … Done
    • install smbus2 … Done
    • install gpiozero … Done
    • install pyaudio … Done
    • install spidev … Done
    • install pyserial … Done
    • install pillow … Done
    • install ‘pygame>=2.1.2’ … Done
      Setup interfaces
    • turn on I2C … Done
    • turn on SPI … Done
      Copy dtoverlay
    • copy dtoverlay … Done
    • install robot_hat package … Error

    Error happened in install process:
    install robot_hat package error:
    Status:1
    Error:Looking in indexes: ,
    Processing /home/rasp/robot-hat
    Installing build dependencies: started
    Installing build dependencies: finished with status ‘done’
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status ‘done’
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status ‘done’
    Collecting sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git (from robot_hat==2.5.1)
    Cloning to /tmp/pip-install-5al8mwvq/sunfounder-voice-assistant_dd22bc47781946f1b0f49c0ab8dd6d62
    Running command git clone --filter=blob:none --quiet /tmp/pip-install-5al8mwvq/sunfounder-voice-assistant_dd22bc47781946f1b0f49c0ab8dd6d62
    Resolved to commit a62e57d1ca500afd7eaaeee3b2f3087abe85a79d
    Installing build dependencies: started
    Installing build dependencies: finished with status ‘done’
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status ‘done’
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status ‘done’
    Collecting piper-tts (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
    Using cached piper_tts-1.2.0-py3-none-any.whl.metadata (776 bytes)
    Collecting vosk (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
    Using cached vosk-0.3.45-py3-none-linux_armv7l.whl.metadata (1.8 kB)
    Requirement already satisfied: pyaudio in /usr/local/lib/python3.13/dist-packages (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1) (0.2.14)
    Collecting sounddevice (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
    Using cached htps://www.piwheels.org/simple/soundevicesounddevice-0.5.3-py3-none-any.whl (32 kB)
    INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while.
    Collecting piper-tts (from sunfounder-voice-assistant@ git+https://github.com/sunfounder/sunfounder-voice-assistant.git->robot_hat==2.5.1)
    Using cached piper_tts-1.1.0-py3-none-any.whl.metadata (776 bytes)
    ERROR: Cannot install sunfounder-voice-assistant because these package versions have conflicting dependencies.

    The conflict is caused by:
    piper-tts 1.2.0 depends on piper-phonemize~=1.1.0
    piper-tts 1.1.0 depends on piper-phonemize~=1.0.0

    To fix this you could try to:

    1. loosen the range of package versions you’ve specified
    2. remove package versions to allow pip to attempt to solve the dependency conflict

    ERROR: ResolutionImpossible: for help visit

    Try to fix it yourself, or contact service@sunfounder.com with this message
    Still new user so had to remove links

We need time to reproduce and investigate this issue.

For now, it is recommended that you use the Bookworm 64-bit operating system with the desktop environment. Please install all the necessary library files and code, then test to see how it works.

Hi,

I have exactly the same problem. I re-installed using the Bookworm OS, and then all works fine.

Maybe good idea to point this out in the documentation? There are so many variants of Raspbian, I think I tried 3-4 different versions until I found this forum post :slight_smile: