Installing larynx leads to conflicting versions of larynx 0.3.0 and 0.3.1

I am not a Python expert, so excuse my dumb question.
(The following is on a Ubuntu 21.04 box; I successfully installed larynx some months ago on another machine).

I tried

> pip install --no-cache-dir --user larynx
Collecting larynx
  Downloading larynx-0.3.1.tar.gz (31 kB)
Collecting gruut~=0.9.0
  Downloading gruut-0.9.5.tar.gz (18.6 MB)
Collecting numpy~=1.20.0
  Downloading numpy-1.20.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Collecting larynx
  Downloading larynx-0.3.0.tar.gz (25 kB)
Requirement already satisfied: gruut>=0.9.0 in ./.local/lib/python3.9/site-packages (from larynx) (1.3.0)
Requirement already satisfied: numpy>=1.16.6 in ./.local/lib/python3.9/site-packages (from larynx) (1.21.1)
ERROR: Cannot install larynx==0.3.0 and larynx==0.3.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    larynx 0.3.1 depends on onnxruntime~=1.6.0
    larynx 0.3.0 depends on onnxruntime==1.6.0

I run into the same dependency problem on a fresh Ubuntu 21.04 installation. Any help?

The new log shows that the automatic switch to gruut-1.3.0 (or larynx-0.3.0) might be the problem:

 > pip install --user larynx
Collecting larynx
  Downloading larynx-0.3.1.tar.gz (31 kB)
Collecting gruut~=0.9.0
  Downloading gruut-0.9.5.tar.gz (18.6 MB)
Collecting numpy~=1.20.0
  Downloading numpy-1.20.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Collecting larynx
  Downloading larynx-0.3.0.tar.gz (25 kB)
Collecting gruut>=0.9.0
  Downloading gruut-1.3.0.tar.gz (15.5 MB)
Collecting numpy>=1.16.6
  Downloading numpy-1.21.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.8 MB)
ERROR: Cannot install larynx==0.3.0 and larynx==0.3.1 because these package versions have conflicting dependencies.
The conflict is caused by:
    larynx 0.3.1 depends on onnxruntime~=1.6.0
    larynx 0.3.0 depends on onnxruntime==1.6.0

I was able to work-around this problem by using the “Debian Installation” method (GitHub - rhasspy/larynx: End to end text to speech system using gruut and onnx) for version 0.4. I had to use gdebi instead ot apt to install on Ubuntu 21.04.

I hope the Python version conflicts will go away with the next versions of larynx because the “Python Installation” method can be much more platform or distribution independent …

1 Like

Thanks heaps @sve
This was a problem that I had and was just waiting for the next release hoping that would solve it.
Great tip.

The new version of larynx (0.5) solved the problem. I followed the method “Python Installation”. Very convenient. Thanks a lot to @synesthesiam

1 Like

You’re welcome! I forgot to reply here and say I was working on the new version. Too many projects, I guess :stuck_out_tongue: