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

Cannot install PyVCF==0.6.8 under pip3 >=23.1.0 but it can under pip3 == 23.0.1 #12013

Closed
1 task done
AJ2802 opened this issue May 4, 2023 · 2 comments
Closed
1 task done
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@AJ2802
Copy link

AJ2802 commented May 4, 2023

Description

Using the version of pip3==23.0.1, it is able to install PyVCF==0.6.8, i.e. pip3 install PyVCF==0.6.8. However, using pip3==23.1.0 or above, pip3 install PyVCF==0.6.8 will give an error of setup command: use_2to3 is invalid. However, no matter what version of setuptools<=56.0.0, this error is not gone away under pip3==23.1.0 or above. Moroever, if I use the setuptools==56.0.0 and pip3==23.0.1, it is okay for install PyVCF ==0.6.8. I wonder whether this issue may come from pip3.

Expected behavior

No response

pip version

23.1.0

Python version

3.8.12

OS

ubuntu:22.04 docker image

How to Reproduce

pip3 install pip==23.1.2
pip3 install setuptools==56.0.0
pip3 install PyVCF==0.6.8

[An error about use_2to3 will come out]
pip3 install pip==23.0.1
pip3 install setuptools==56.0.0
pip3 install PyVCF==0.6.8

Output

An error about use_2to3 will come out and PyVCF==0.6.8 cannot be installed after the first three lines are entered.
PyVCF==0.6.8 can be installed successfully after the last three lines are entered

Code of Conduct

@AJ2802 AJ2802 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels May 4, 2023
@sbidoul
Copy link
Member

sbidoul commented May 6, 2023

Hi, A probable cause is that the wheel package is not installed in your environment. In that case, pip will build PyVCF in an insolated environment in which it will install the latest version of setuptools (which does not have the 2to3 feature anymore).
Installing wheel may resolve your issue.

@AJ2802
Copy link
Author

AJ2802 commented May 6, 2023

Thank you sbidoul. I did solve use_2to3 issue during PyVCF installation by following you advice. =)

@AJ2802 AJ2802 closed this as completed May 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants