tribler
tribler copied to clipboard
Build fails using python3 and pip3 on Arch Linux
Describe the bug Build fails on Arch Linux.
$ pip3 --version
pip 20.3.4 from /usr/lib/python3.10/site-packages/pip (python 3.10)
$ python --version
Python 3.10.1
$ python -c "import struct;print( 8 * struct.calcsize('P'))"
64
To Reproduce Install Arch Linux (e.g., in a VM), then:
rm -rf $HOME/temp
mkdir $HOME/temp
cd $HOME/temp
git clone https://github.com/tribler/tribler --recursive
pip3 install --upgrade -r tribler/src/requirements.txt
Expected Build succeeds.
Actual Build fails:
Collecting pony==0.7.14
Using cached pony-0.7.14.tar.gz (290 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c84xx8ku/pony_19e84ef4c3814a94bac462a6b845406f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c84xx8ku/pony_19e84ef4c3814a94bac462a6b845406f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.rea
d().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fq2lk8b5
cwd: /tmp/pip-install-c84xx8ku/pony_19e84ef4c3814a94bac462a6b845406f/
Complete output (1 lines):
Sorry, but pony 0.7.14 requires Python of one of the following versions: 2.7, 3.3-3.9. You have version 3.10.1
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/51/e3/6186f12eb13c3ccac25a744296865e55b2bdb4d3bebc4bffedecf5fe1586/pony-0.7.14.tar.gz#sha256=2f01e84e79ea7a14040225cb6c079bb266e7ba147346356c266490b18c77ce82 (from https://pypi.org/simple/pony/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pony==0.7.14
ERROR: No matching distribution found for pony==0.7.14
I had the same issue. I think it has nothing to do with Arch Linux, but with Python 3.10 being too recent. Python 3.9 will work.
@DaveJarvis thank you for reporting. Unfortunately, we don't support Arch Linux.
Regarding the python version. We support versions 3.8
and 3.9
. Supporting 3.10
require some work on picking up the correct version in pip dependencies (we postpone this support for now).