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

KA Lite fails to install on RPi 4: piwheels.org's "setuptools requires Python '>=3.5' but the running Python is 2.7.16" #2139

Closed
holta opened this issue Jan 13, 2020 · 5 comments
Milestone

Comments

@holta
Copy link
Member

holta commented Jan 13, 2020

Failure (pasted in below) is reminiscent of #392 in late 2017:

Background: a BIG-sized install of IIAB (http://download.iiab.io) is being attempted on a 1GB RAM Raspberry Pi 4 and the OS is Raspbian Lite 2019-09-26 with all apt updates applied, and then rpi-update firmware/kernel (4.19.93) to work around #1993.

TASK [kalite : Install KA Lite static to /usr/local/kalite/venv, using pip (debuntu)] ***
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/virtualenv --no-site-packages -ppython2.7 /usr/local/kalite/venv", "msg": "stdout: New python executable in /usr/local/kalite/venv/bin/python2.7\nAlso creating executable in /usr/local/kalite/venv/bin/python\nInstalling setuptools, pkg_resources, pip, wheel...\n Complete output from command /usr/local/kalite/venv/bin/python2.7 - setuptools pkg_resources pip wheel:\n Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nLooking in links: /usr/lib/python3/dist-packages, /usr/share/python-wheels/\nCollecting setuptools\n Downloading https://www.piwheels.org/simple/setuptools/setuptools-45.0.0-py2.py3-none-any.whl (583kB)\nsetuptools requires Python '>=3.5' but the running Python is 2.7.16\n----------------------------------------\n...Installing setuptools, pkg_resources, pip, wheel...done.\nRunning virtualenv with interpreter /usr/bin/python2.7\n\n:stderr: Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/virtualenv.py", line 2379, in \n main()\n File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main\n symlink=options.symlink)\n File "/usr/lib/python3/dist-packages/virtualenv.py", line 996, in create_environment\n download=download,\n File "/usr/lib/python3/dist-packages/virtualenv.py", line 926, in install_wheel\n call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)\n File "/usr/lib/python3/dist-packages/virtualenv.py", line 817, in call_subprocess\n % (cmd_desc, proc.returncode))\nOSError: Command /usr/local/kalite/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1\n"}

Does @jvonau have a possible workaround by commenting out all of /etc/pip.conf as follows?

root@box:~# cat /etc/pip.conf
#[global]
#extra-index-url=https://www.piwheels.org/simple

How should this be scripted if so?

@holta holta added this to the 7.1 milestone Jan 13, 2020
@jvonau
Copy link
Contributor

jvonau commented Jan 13, 2020

New python executable in /usr/local/kalite/venv/bin/python2.7
Also creating executable in /usr/local/kalite/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...
Complete output from command /usr/local/kalite/venv/bin/python2.7 - setuptools pkg_resources pip wheel:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Looking in links: /usr/lib/python3/dist-packages, /usr/share/python-wheels/\nCollecting setuptools Downloading https://www.piwheels.org/simple/setuptools/setuptools-45.0.0-py2.py3-none-any.whl (583kB)
setuptools requires Python '>=3.5' but the running Python is 2.7.16
...Installing setuptools, pkg_resources, pip, wheel...done.
Running virtualenv with interpreter /usr/bin/python2.7
stderr: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2379, in
main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main
symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 996, in create_environment
download=download
File "/usr/lib/python3/dist-packages/virtualenv.py", line 926, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 817, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /usr/local/kalite/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1

@jvonau
Copy link
Contributor

jvonau commented Jan 13, 2020

piwheels/packages#74

@holta
Copy link
Member Author

holta commented Jan 13, 2020

@georgejhunt has added full details of a 4GB RAM RPi 4 that suffered the same problem as my 1GB RAM RPi 4:

http://paste.debian.net/1125855 (expires in 1 week)

@benjaoming
Copy link

Also investigating this upstream:

learningequality/ka-lite#5626

@holta
Copy link
Member Author

holta commented Jan 23, 2020

@jvonau says good enough!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants