piper: pip install dependancy conflict on Raspbian Pi 4

When trying to install via pip3 install piper-tts I get this error:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: piper-tts in /home/pi/.local/lib/python3.9/site-packages (1.2.0)
Collecting piper-tts
  Using cached piper_tts-1.2.0-py3-none-any.whl (29 kB)
  Using cached piper_tts-1.1.0-py3-none-any.whl (27 kB)
ERROR: Cannot install piper-tts==1.1.0 and piper-tts==1.2.0 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 attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Any idea how to fix this?

About this issue

  • Original URL
  • State: open
  • Created 10 months ago
  • Reactions: 3
  • Comments: 22 (5 by maintainers)

Most upvoted comments

just installed the correct 64bit-version of Raspberry Pi OS and install of piper-tts was successful. it can be used with existing voices.

thx again!

Just did a bit more reading - it’s very likely that what I (and @gns23 ) installed is “Our recommended operating system for most users” (from https://www.raspberrypi.com/software/operating-systems/) which is the “32-bit” OS, but that now uses the 64-bit kernel (v 6.1), with a 32-bit userland, hence the confusion.

Worth noting then that uname etc. on 32-bit Raspberry Pi OS installs now report aarch64, even though they’ll still be running everything 32-bit. file /bin/ls will tell you if you’re on actual 64-bit or not.

$ file /bin/ls
/bin/ls: ELF 32-bit LSB executable, [...]

So I guess I’ll need to decide whether a reinstall is worth the effort.