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 dependency error on Ubuntu 22.04 and Python 3.10 #10

Open
adamryczkowski opened this issue Jul 3, 2022 · 7 comments
Open

Pip dependency error on Ubuntu 22.04 and Python 3.10 #10

adamryczkowski opened this issue Jul 3, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@adamryczkowski
Copy link

adamryczkowski commented Jul 3, 2022

Describe the bug
Just following the steps to install mimic3 as a command line tool:

$ sudo apt-get install libespeak-ng1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libespeak-ng1 is already the newest version (1.50+dfsg-10).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

 $ python -m venv venv
$ . venv/bin/activate
$ pip install mycroft-mimic3-tts[all]
$ pip3 install --upgrade pip
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.1.2)

$ pip install mycroft-mimic3-tts[all]
Collecting mycroft-mimic3-tts[all]
  Using cached mycroft_mimic3_tts-0.2.3.tar.gz (130 kB)
  Preparing metadata (setup.py) ... done
Collecting dataclasses-json<1.0
  Using cached dataclasses_json-0.5.7-py3-none-any.whl (25 kB)
Collecting epitran==1.17
  Using cached epitran-1.17-py2.py3-none-any.whl (153 kB)
Collecting espeak-phonemizer<2.0,>=1.0
  Using cached espeak_phonemizer-1.1.0.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting gruut<3.0,>=2.3.0
  Using cached gruut-2.3.4.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
Collecting numpy<2.0
  Using cached numpy-1.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB)
Collecting mycroft-mimic3-tts[all]
  Using cached mycroft_mimic3_tts-0.2.2.tar.gz (130 kB)
  Preparing metadata (setup.py) ... done
ERROR: Cannot install mycroft-mimic3-tts[all]==0.2.2 and mycroft-mimic3-tts[all]==0.2.3 because these package versions have conflicting dependencies.

The conflict is caused by:
    mycroft-mimic3-tts[all] 0.2.3 depends on onnxruntime<2.0 and >=1.6
    mycroft-mimic3-tts[all] 0.2.2 depends on onnxruntime<2.0 and >=1.6

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

My system is Ubuntu 22.04 64 bit (running on Xorg). Python 3.10.4.

@adamryczkowski adamryczkowski added the bug Something isn't working label Jul 3, 2022
@onkq
Copy link

onkq commented Jul 3, 2022

Hello. Yes, this will be fixed in onnxruntime version 1.12 as it doesn't support python 3.10

@samposm
Copy link

samposm commented Jul 4, 2022

Similar discussion 4 days earlier: #2

@synesthesiam
Copy link
Collaborator

Until Microsoft gets 1.12 released, I've uploaded some pre-built wheels for onnxruntime 1.11/Python 3.10 here: https://github.com/synesthesiam/prebuilt-apps/releases

You can try installing Mimic 3 like this:

pip install -f 'https://synesthesiam.github.io/prebuilt-apps/' ...

@fluidvoice
Copy link

for me only the following worked on an x86 VM (VirtualBox)...

mycroft-pip install "https://github.com/synesthesiam/prebuilt-apps/releases/download/v1.0/onnxruntime-1.11.0.dev20220320001-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"

mycroft-pip install mycroft-plugin-tts-mimic3

@gsaslis
Copy link

gsaslis commented Sep 2, 2022

Here to confirm that I had the same issue and mycroft-pip install -f https://synesthesiam.github.io/prebuilt-apps mycroft-plugin-tts-mimic3 worked for me too.

@goldyfruit
Copy link

goldyfruit commented Sep 16, 2022

Microsoft released version 12.1:

@myronschram
Copy link

I am having the same issue. Does anyone have a suggestions for a Raspberry PI 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants