Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install dependancy conflict on Raspbian Pi 4 #203

Open
Esshahn opened this issue Sep 8, 2023 · 22 comments
Open

pip install dependancy conflict on Raspbian Pi 4 #203

Esshahn opened this issue Sep 8, 2023 · 22 comments

Comments

@Esshahn
Copy link

Esshahn commented Sep 8, 2023

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?

@yiminghan
Copy link

same issue here

@mirfan899
Copy link

Use Python 3.9

@yiminghan
Copy link

similar issue with python3.9

yiminghan@raspberrypi:~/Documents/speak_server $ python3.9 -m pip install piper-tts
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting piper-tts
  Obtaining dependency information for piper-tts from https://files.pythonhosted.org/packages/24/aa/215bced0725cf5b5afe939f86b177c8ddb0d38292a94e85c55b3fcf6d46d/piper_tts-1.2.0-py3-none-any.whl.metadata
  Using cached piper_tts-1.2.0-py3-none-any.whl.metadata (776 bytes)
INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while.
  Obtaining dependency information for piper-tts from https://files.pythonhosted.org/packages/2e/1c/cc3a342db7f03053eca4fa5b05362178a5a796115770b216740b733b24d7/piper_tts-1.1.0-py3-none-any.whl.metadata
  Using cached piper_tts-1.1.0-py3-none-any.whl.metadata (776 bytes)
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/topics/dependency-resolution/#dealing-with-dependency-conflicts
yiminghan@raspberrypi:~/Documents/speak_server $ python --version
Python 3.9.2
yiminghan@raspberrypi:~/Documents/speak_server $ 
yiminghan@raspberrypi:~/Documents/speak_server $ pip3 --version
pip 23.2.1 from /home/yiminghan/.local/lib/python3.9/site-packages/pip (python 3.9)

@synesthesiam
Copy link
Contributor

What happens if you try to install piper-phonemize alone?

@Esshahn
Copy link
Author

Esshahn commented Sep 16, 2023

Not sure if that helps anybody else, but I did a clean install of Rasbian 64bit desktop and on that it worked on first try.

@athomas404
Copy link

I'm interested in trying to get this working on windows, I but I understand this probably means I'd need to do a whole-ass port myself. Never done this before, but it seems like a good thing to learn how to do. Before I dive into what changes to the code I might need to make before attempting to use VS build tools though, might the devs know off the top of their heads where the main pain points might be?

@yiminghan
Copy link

What happens if you try to install piper-phonemize alone?

it looks like piper-phonemize is not being resolved

python3 -m pip install piper-phonemize~=1.1.0
ERROR: Could not find a version that satisfies the requirement piper-phonemize~=1.1.0 (from versions: none)
ERROR: No matching distribution found for piper-phonemize~=1.1.0

@synesthesiam
Copy link
Contributor

@yiminghan Can you please run this?

python3 -m pip install -vvv piper-phonemize

@synesthesiam
Copy link
Contributor

I'm interested in trying to get this working on windows, I but I understand this probably means I'd need to do a whole-ass port myself. Never done this before, but it seems like a good thing to learn how to do. Before I dive into what changes to the code I might need to make before attempting to use VS build tools though, might the devs know off the top of their heads where the main pain points might be?

A Windows version of Piper already exists; the piper-phonemize Python package just needs to be built for Windows too.

@gns23
Copy link

gns23 commented Sep 23, 2023

Same issue, tried running python3 -m pip install -vvv piper-phonemize

result:

user@raspi:~ $ python3 -m pip install -vvv piper-phonemize
Using pip 23.2.1 from /home/user/.local/lib/python3.9/site-packages/pip (python 3.9)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-build-tracker-rigi73g6
Initialized build tracking at /tmp/pip-build-tracker-rigi73g6
Created build tracker: /tmp/pip-build-tracker-rigi73g6
Entered build tracker: /tmp/pip-build-tracker-rigi73g6
Created temporary directory: /tmp/pip-install-ztcet92u
Created temporary directory: /tmp/pip-ephem-wheel-cache-g4761d8f
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2 location(s) to search for versions of piper-phonemize:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "/home/user/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/home/user/.local/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 399, in resolve
raise ResolutionImpossible(e.criterion.information)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('piper-phonemize'), parent=None)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/user/.local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/user/.local/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/home/user/.local/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 377, in run
requirement_set = resolver.resolve(
File "/home/user/.local/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
raise error from e
pip._internal.exceptions.DistributionNotFound: No matching distribution found for piper-phonemize
Remote version of pip: 23.2.1
Local version of pip: 23.2.1
Was pip installed by pip? True
Removed build tracker: '/tmp/pip-build-tracker-rigi73g6'
user@raspi:~ $

@synesthesiam
Copy link
Contributor

Are you on a 32-bit OS?

@gns23
Copy link

gns23 commented Sep 24, 2023

it's 64-bit:

user@raspi:~ $ uname -m
aarch64

@synesthesiam
Copy link
Contributor

Ok, and what glibc version? Can you run "ldd --version" and give the output please?
This has to be it 😄

@gns23
Copy link

gns23 commented Sep 24, 2023

what version would be correct? here we go:

user@raspi:~ $ ldd --version
ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
user@raspi:~ $

@eshack94
Copy link

eshack94 commented Oct 1, 2023

@melMass
Copy link

melMass commented Oct 5, 2023

I have the same issue on windows 11 with python 3.10.11:

> pip install piper-tts
Collecting piper-tts
  Downloading piper_tts-1.2.0-py3-none-any.whl (29 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.
  Downloading piper_tts-1.1.0-py3-none-any.whl (27 kB)

The conflict is caused by:
    piper-tts 1.2.0 depends on piper-phonemize~=1.1.0
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

> pip install git+https://github.com/rhasspy/piper#egg=piper-tts&subdirectory=src/python_run
Collecting piper-tts
  Cloning https://github.com/rhasspy/piper to c:\users\user\appdata\local\temp\pip-install-7uvxeiv3\piper-tts_09ae3c53db4e47cdaf6187e381d03204
  Running command git clone --filter=blob:none --quiet https://github.com/rhasspy/piper 'C:\Users\User\AppData\Local\Temp\pip-install-7uvxeiv3\piper-tts_09ae3c53db4e47cdaf6187e381d03204'
  Resolved https://github.com/rhasspy/piper to commit 54fad0445ac9b7e734753fcb149c259caf1c0e30
  Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of piper-tts to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement piper-phonemize~=1.1.0 (from piper-tts) (from versions: none)
ERROR: No matching distribution found for piper-phonemize~=1.1.0

And trying to build piper-phonemize from source fail:

output
> pip install git+https://github.com/rhasspy/piper-phonemize
Collecting git+https://github.com/rhasspy/piper-phonemize
  Cloning https://github.com/rhasspy/piper-phonemize to c:\users\user\appdata\local\temp\pip-req-build-a1dgxvs2
  Running command git clone --filter=blob:none --quiet https://github.com/rhasspy/piper-phonemize 'C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2'
  Resolved https://github.com/rhasspy/piper-phonemize to commit 4d03e2b35887688881fc30234283e1bdb2ff98d3
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: piper-phonemize
  Building wheel for piper-phonemize (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for piper-phonemize (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [127 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\piper_phonemize
      copying piper_phonemize\__init__.py -> build\lib.win-amd64-cpython-310\piper_phonemize
      running egg_info
      writing piper_phonemize.egg-info\PKG-INFO
      writing dependency_links to piper_phonemize.egg-info\dependency_links.txt
      writing top-level names to piper_phonemize.egg-info\top_level.txt
      reading manifest file 'piper_phonemize.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*' under directory 'piper_phonemize\espeak-ng-data'
      warning: no files found matching 'piper_phonemize\libtashkeel_model.ort'
      adding license file 'LICENSE.md'
      writing manifest file 'piper_phonemize.egg-info\SOURCES.txt'
      running build_ext
      building 'piper_phonemize_cpp' extension
      creating build\temp.win-amd64-cpython-310
      creating build\temp.win-amd64-cpython-310\Release
      creating build\temp.win-amd64-cpython-310\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DVERSION_INFO=1.2.0 -IC:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\espeak-ng\build\include -IC:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\lib\Linux-AMD64\onnxruntime\include -IC:\Users\User\AppData\Local\Temp\pip-build-env-1y074xpp\overlay\Lib\site-packages\pybind11\include -IC:\Users\User\dev\melMass\TTS\venv\include -IC:\Users\User\.pyenv\pyenv-win\versions\3.10.11\include -IC:\Users\User\.pyenv\pyenv-win\versions\3.10.11\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/phoneme_ids.cpp /Fobuild\temp.win-amd64-cpython-310\Release\src/phoneme_ids.obj /std:c++latest /EHsc /bigobj
      phoneme_ids.cpp
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(76): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(77): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(78): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(79): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(80): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(81): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(82): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(83): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(84): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(85): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(86): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(87): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(88): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(89): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(90): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(91): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(92): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(93): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(94): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(95): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(96): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(97): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(98): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(99): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(100): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(101): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(102): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(103): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(104): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(105): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(106): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(107): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(108): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(109): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(110): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(111): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(112): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(113): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(114): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(115): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(116): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(117): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(118): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(119): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(120): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(121): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(122): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(123): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(124): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(125): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(126): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(127): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(128): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(129): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(130): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(131): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(132): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(133): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(134): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(135): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(136): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(137): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(138): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(139): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(140): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(143): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(144): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(145): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(146): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(147): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(148): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(149): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(150): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(151): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(152): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(153): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(154): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(155): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(156): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(157): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(158): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(159): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(160): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(161): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(162): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(163): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(164): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(165): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(166): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(184): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(185): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(186): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(187): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(191): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(199): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(215): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(216): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(217): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(218): error C2015: too many characters in constant
      C:\Users\User\AppData\Local\Temp\pip-req-build-a1dgxvs2\src\phoneme_ids.hpp(218): fatal error C1003: error count exceeds 100; stopping compilation
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for piper-phonemize
Failed to build piper-phonemize
ERROR: Could not build wheels for piper-phonemize, which is required to install pyproject.toml-based projects

@pmcgaley
Copy link

pmcgaley commented Oct 8, 2023

Seeing this on Raspberry Pi 4 as well. Looks like at least the version of Raspberry Pi OS I have (from July this year, should be the latest) installs a 64-bit aarch64 kernel (as reported by uname -m) but a 32-bit userland, which means a 32-bit python 3.9...

If I run pip debug --verbose it only lists compatible tags ending in _armv7l.

Compatible tags: 369
  cp39-cp39-manylinux_2_31_armv7l
  cp39-cp39-manylinux_2_30_armv7l
...

Compiling python from source also builds 32-bit versions, unless I tell it to cross-compile, and then I'm sure there will be lots more issues trying to run the 64-bit python in a 32-bit userland.

Have to leave it for now, but I guess I'll try the 32-bit binary version later. Is there a reason there are no 32-bit python packages available?

@pmcgaley
Copy link

pmcgaley commented Oct 8, 2023

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.

@gns23
Copy link

gns23 commented Oct 8, 2023

whoaa! thx for pointing out! could u let us now, if u get it to work with a reinst? atm i'm short of time to try myself..

@pmcgaley
Copy link

pmcgaley commented Oct 9, 2023

Confirmed that it works fine with the actual 64-bit install of Rasperry Pi OS.

@gns23
Copy link

gns23 commented Oct 13, 2023

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!

@melMass
Copy link

melMass commented Oct 13, 2023

A Windows version of Piper already exists; the piper-phonemize Python package just needs to be built for Windows too.

Are there any plans to add those wheels to pip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants