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

mpl_toolkits not installed with pip install -e . #4907

Closed
stefanv opened this issue Aug 11, 2015 · 6 comments
Closed

mpl_toolkits not installed with pip install -e . #4907

stefanv opened this issue Aug 11, 2015 · 6 comments

Comments

@stefanv
Copy link
Contributor

stefanv commented Aug 11, 2015

To reproduce:

pip install -e .
python -c 'from mpl_toolkits.mplot3d import Axes3D'
@WeatherGod
Copy link
Member

Most likely, you have an older install of mpl_toolkits (possibly through
Basemap) that is messing things up. Also, I am assuming this is happening
in a virtualenv?

Also, for completeness, the traceback would be useful.
On Aug 11, 2015 4:45 PM, "Stefan van der Walt" notifications@github.com
wrote:

To reproduce:

pip install -e .
python -c 'from mpl_toolkits.mplot3d import Axes3D'


Reply to this email directly or view it on GitHub
#4907.

@jenshnielsen
Copy link
Member

Im guessing this could be the issue pypa/pip#3

@tacaswell tacaswell added this to the proposed next point release milestone Aug 12, 2015
@stefanv
Copy link
Contributor Author

stefanv commented Aug 13, 2015

$ ls /home/stefan/envs/py3/lib/python3.4/site-packages/mpl_toolkits
basemap

$ pip install -e .
Obtaining file:///home/stefan/src/matplotlib
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6 in /home/stefan/src/numpy (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): pytz in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6 in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): six in /home/stefan/envs/py3/lib/python3.4/site-packages (from python-dateutil->matplotlib==1.5.dev1)
Installing collected packages: matplotlib
  Running setup.py develop for matplotlib
Successfully installed matplotlib

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'mpl_toolkits.mplot3d'

$ pip uninstall matplotlib
Uninstalling matplotlib-1.5.dev1:
  /home/stefan/envs/py3/lib/python3.4/site-packages/matplotlib.egg-link
Proceed (y/n)? y
  Successfully uninstalled matplotlib-1.5.dev1

$ pip install .
Processing /home/stefan/src/matplotlib
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6 in /home/stefan/src/numpy (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): pytz in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6 in /home/stefan/envs/py3/lib/python3.4/site-packages (from matplotlib==1.5.dev1)
Requirement already satisfied (use --upgrade to upgrade): six in /home/stefan/envs/py3/lib/python3.4/site-packages (from python-dateutil->matplotlib==1.5.dev1)
Installing collected packages: matplotlib
  Running setup.py install for matplotlib
Successfully installed matplotlib-1.5.dev1

$ python -c 'from mpl_toolkits.mplot3d import Axes3D'

@jenshnielsen
Copy link
Member

@stefanv

As I read your output you have basemap installed and then do a -e install. I think that is clearly an example of the issue in pypa/pip#3

Im not sure what we can do other than get rid of the namespace package. I.E release basemap as a top level package and make mpl_toolkits a regular non namespace package.

@stefanv
Copy link
Contributor Author

stefanv commented Aug 14, 2015

The last option is the one taken by scikit-image and scikit-learn, as a point of reference.

@tacaswell tacaswell modified the milestones: 2.1 (next point release), 2.2 (next next feature release) Oct 3, 2017
@QuLogic QuLogic removed this from the v2.2 milestone Feb 9, 2018
@QuLogic
Copy link
Member

QuLogic commented Feb 9, 2018

I'm not seeing anything we can actually do here.

@QuLogic QuLogic closed this as completed Feb 9, 2018
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

5 participants