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

Build fails using python3 and pip3 on Arch Linux #6740

Open
ghost opened this issue Jan 22, 2022 · 2 comments
Open

Build fails using python3 and pip3 on Arch Linux #6740

ghost opened this issue Jan 22, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 22, 2022

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
@ghost ghost added the type: bug label Jan 22, 2022
@2ico
Copy link

2ico commented Mar 2, 2022

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.

@drew2a
Copy link
Collaborator

drew2a commented Mar 3, 2022

@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).

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