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
multiple Matplotlib libraries #423
Comments
/cc @ojarjur |
Looks like you have a Python version mismatch with conda package. Delete the entire conda/Anaconda directory and reinstall. |
The issue is having conda and pip installed libs for matplotlib, the fix being to pip uninstall matplotlib. Unfortunately I cannot sudo nor become root in order to delete anything as a Jupyterhub user. |
@ernestmartinez Are you able to do the following within a notebook cell?
Or at the command line:
|
@willingc I believe we are using a combination of conda and non-conda packages; I'm guessing because not everything we want is in conda (e.g. TFX and beam). Is this the right thing to do? Is there a better way to handle this. |
If I'm understanding comment 1 it looks like conda is installing matplotlib 2.0.2 but there is a newer version 2.1.2 installed as well. It looks like matplotlib 2.2 is the latest release. Can we fix this just by uninstalling the conda installed version in our docker images using the command @willingc provided above. |
The best way would be to create an environment.yml file to use with conda where you can conda install and pip install from one file. Example from repo2docker Example from JupyterHub docs - this is the more straightforward example In general, I would use conda-forge for the channel. The yaml file will list conda packages and then pip packages. Here's an example from the conda docs: https://conda.io/docs/user-guide/tasks/manage-environments.html#creating-an-environment-file-manually |
@jlewi The conda cheatsheet is helpful too. https://conda.io/docs/user-guide/cheatsheet.html |
Is this still an issue? All I see in the current 1.8 notebook is:
|
Marking this fixed based on @pdmack's comment. |
While trying basic plots in jupyter I get
AttributeError: module 'matplotlib.cbook' has no attribute 'popall
google search suggested multiple installed matplotlib libraries to be culprit.
jovyan@jupyter-admin:~$ conda list matplotlib
packages in environment at /opt/conda:
matplotlib 2.1.2
matplotlib 2.0.2 py36_2 conda-forge
jovyan@jupyter-admin:~$ pip list |grep matplotlib
matplotlib (2.1.2)
Trying to uninstall conda libs caused:
jovyan@jupyter-admin:~$ conda uninstall matplotlib
Fetching package metadata
Solving package specifications: .
The following packages will be REMOVED:
Proceed ([y]/n)? y
ERROR conda.core.link:_execute_actions(339): An error occurred while uninstalling package 'conda-forge::matplotlib-2.0.2-py36_2'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
PermissionError(13, 'Permission denied')
Current conda install:
The text was updated successfully, but these errors were encountered: