Closed korre79 closed 5 years ago
I am having this issue as well. I changed the default python to 3.5 as well as installed CherryPy using python 3 but to no avail.
For the cherrypy issue, you need to manually install cherrypy thats greater than the error.
Type this:
cd sudo pip install CherryPy==10.2.1
It will then install cherrypy without the python error.
You can then start the set up again.
When I tried @neils84's tip, I was able to complete the installation but had trouble authorising the app via localhost:5050
. I kept getting error 500 responses even though I double-tripple checked my config file. Eventually I found out the problem was with CherryPy.
It turns out the installation script forces the use of pip2, which is based on Python 2.
To solve it, I edited /src/scripts/inc/common.sh
to call pip3
in the run_pip
method. Everything installed fine, although I had to manually run the authorisation script using sudo python3 auth_web.py
to get through.
@isilher You can also channge python2 with python 3 in the run_python script. Then you don't have to run the auth_web.py manually.
@henriz are you referring to the run_python fuction within https://github.com/alexa-pi/AlexaPi/blob/master/src/scripts/inc/common.sh ?
See #426.
Hi
I have a fresh install of rasbian stretch when i follow the instructions from this : https://github.com/alexa-pi/AlexaPi/wiki/Installation. I get this "CherryPy requires Python '>=3.5' but the running Python is 2.7.13" error and I can´t complete the installation. (scandisc 32Gb) I did the the installation on a different sd-card (samsung 32Gb) but same RPI 3b+ with MagicMirror2 and i got everything to work. I´m novice in this please help!
From last section
Reading https://pypi.python.org/simple/pip/ Downloading https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz#sha256=a0e11645ee37c90b40c46d607070c4fd583e2cd46231b1c06e389c5e814eed76 Best match: pip 18.0 Processing pip-18.0.tar.gz Writing /tmp/easy_install-PPKB7S/pip-18.0/setup.cfg Running pip-18.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PPKB7S/pip-18.0/egg-dist-tmp-Eyp0R5 warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching '.travis.yml' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'src/pip/_vendor/six' warning: no previously-included files found matching 'src/pip/_vendor/six/moves' warning: no previously-included files matching '*.pyi' found under directory 'src/pip/_vendor' no previously-included directories found matching '.github' no previously-included directories found matching 'docs/build' no previously-included directories found matching 'news' no previously-included directories found matching 'tasks' no previously-included directories found matching 'tests' no previously-included directories found matching 'tools' creating /usr/local/lib/python2.7/dist-packages/pip-18.0-py2.7.egg Extracting pip-18.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages Adding pip 18.0 to easy-install.pth file Installing pip script to /usr/local/bin Installing pip2.7 script to /usr/local/bin Installing pip2 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pip-18.0-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip
Peace!