rhasspy / larynx

End to end text to speech system using gruut and onnx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required versions for python and pip

svenha opened this issue · comments

I have a working setup on a recent linux box (with python 3.8). But now I have to use an older computer (python 3.5, pip 8.1.1) and I run into trouble:

 Using cached https://files.pythonhosted.org/packages/f8/4d/a2.../larynx-0.3.1.tar.gz
 Complete output from command python setup.py egg_info:
 Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-sbulg1mn/larynx/setup.py", line 13
    long_description: str = ""
                    ^
 SyntaxError: invalid syntax

What are the minimum versions required by larynx at the moment?

python >= 3.7
About Pip I use 21.0.1

Python 3.7 is going to be the minimum (3.6 may work, but I've never tested it).

You can install Python 3.7 on your older machine like this:

apt-get update && \
apt-get install --yes --no-install-recommends \
    wget \
    build-essential \
    git zlib1g-dev patchelf rsync \
    libncursesw5-dev libreadline-gplv2-dev libssl-dev \
    libgdbm-dev libc6-dev libsqlite3-dev libbz2-dev libffi-dev

wget -O 'Python-3.7.10.tar.xz' 'https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz'
tar -xf Python-3.7.10.tar.xz
cd Python-3.7.10/
./configure
make -j 4
sudo make altinstall

And then you can just run /usr/local/bin/python3.7

So, now I have larynx working on a Ubuntu 16.04 device (to be more precise: UBports / Ubuntu Touch on a smartphone!) plus the locally installed Python 3.7. Great.

The real time factor is 0.37, but I will experiment to improve the speed.

Ubuntu Touch on a smartphone!

Nice! I'd love to hear more about your experiences with Rhasspy/Larynx on Ubuntu Touch. This is not relevant for this issue, but if you can tell us more about it elsewhere, for instance on the Rhasspy forum, that would be awesome.

I came to larynx without knowing Rhasspy :-) I joined the forum now, but which category would fit? I will collect some experiences before posting. Feel free to remind me if I am too slow :-)

The "Show us" category maybe? I'm koan on the forum, by the way.