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

pip install bson error, pip verion is 10.0.0 #77

Closed
willhope opened this issue Apr 16, 2018 · 5 comments
Closed

pip install bson error, pip verion is 10.0.0 #77

willhope opened this issue Apr 16, 2018 · 5 comments
Labels

Comments

@willhope
Copy link

[root@localhost home]# pip -V
pip 10.0.0 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[root@localhost home]# pip install bason
Collecting bason
Could not find a version that satisfies the requirement bason (from versions: )
No matching distribution found for bason
[root@localhost home]# pip install bson
Collecting bson
Using cached bson-0.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-H29FRs/bson/setup.py", line 8, in
from pip import get_installed_distributions
ImportError: cannot import name get_installed_distributions

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-H29FRs/bson/

@Parkayun Parkayun added the bug label Apr 16, 2018
@phdru
Copy link

phdru commented Apr 16, 2018

pip authors were warning for many years to not import pip. Finally at version 10 they restructured their code.

@carlos-jenkins
Copy link

This broke many many packages that depend on bson.

Can't this package be renamed as suggested in #41, so it stops pretending to be what is not (the pymongo bson package?). If it really wants to be "Independent" as the description says, this should be a requirement.

Issues like #70 could be avoided.

Who on earth will need to have both packages named the same?

If the package is renamed, all this weird setup.py logic could be removed, and everybody will be happy.

@Parkayun
Copy link
Member

Parkayun commented Apr 18, 2018

I will solve this problem with #41 . Also welcome pr before my commit.

@Parkayun
Copy link
Member

Parkayun commented Apr 19, 2018

0.5.3 released

@awesomebytes
Copy link
Contributor

Shouldn't the package depend on pip?
I'm running the case with a gentoo that the setup.py fails cause... well, cant import anything from pip cause it's not installed.

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

No branches or pull requests

5 participants