rhasspy / larynx

End to end text to speech system using gruut and onnx
MIT License
824 stars 49 forks source link

Required versions for python and pip #9

Closed svenha closed 3 years ago

svenha commented 3 years ago

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?

alt131 commented 3 years ago

python >= 3.7 About Pip I use 21.0.1

synesthesiam commented 3 years ago

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

svenha commented 3 years ago

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.

koenvervloesem commented 3 years ago

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.

svenha commented 3 years ago

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 :-)

koenvervloesem commented 3 years ago

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