mimic3
mimic3 copied to clipboard
Pip dependency error on Ubuntu 22.04 and Python 3.10
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.
Hello. Yes, this will be fixed in onnxruntime version 1.12 as it doesn't support python 3.10
Similar discussion 4 days earlier: https://github.com/MycroftAI/mimic3/issues/2
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/' ...
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
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.
Microsoft released version 12.1:
- https://github.com/microsoft/onnxruntime
- https://pypi.org/project/onnxruntime/
I am having the same issue. Does anyone have a suggestions for a Raspberry PI 4?