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

Installation problem #5

Closed
aloboa opened this issue Oct 6, 2023 · 1 comment
Closed

Installation problem #5

aloboa opened this issue Oct 6, 2023 · 1 comment

Comments

@aloboa
Copy link

aloboa commented Oct 6, 2023

After apparentely successful installation with:

conda install -c conda-forge scipy cython pykdtree netcdf4
conda install -c conda-forge cartopy
pip install ncvue

I get:

(base) alobo@pop-os:~$ ncvue
Traceback (most recent call last):
  File "/home/alobo/.local/bin/ncvue", line 5, in <module>
    from ncvue.__main__ import main
  File "/home/alobo/.local/lib/python3.9/site-packages/ncvue/__init__.py", line 91, in <module>
    from .ncvscatter import ncvScatter
  File "/home/alobo/.local/lib/python3.9/site-packages/ncvue/ncvscatter.py", line 50, in <module>
    from matplotlib import pyplot as plt
  File "/home/alobo/.local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 66, in <module>
    from matplotlib.figure import Figure, FigureBase, figaspect
  File "/home/alobo/.local/lib/python3.9/site-packages/matplotlib/figure.py", line 43, in <module>
    from matplotlib import _blocking_input, backend_bases, _docstring, projections
  File "/home/alobo/.local/lib/python3.9/site-packages/matplotlib/projections/__init__.py", line 58, in <module>
    from mpl_toolkits.mplot3d import Axes3D
  File "/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/__init__.py", line 1, in <module>
    from .axes3d import Axes3D
  File "/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py", line 25, in <module>
    import matplotlib.docstring as docstring
ModuleNotFoundError: No module named 'matplotlib.docstring'

I tried already after:

alobo@pop-os:~$ conda install matplotlib

@mcuntz
Copy link
Owner

mcuntz commented Oct 10, 2023

Dear @aloboa

From a first view this looks like matplotlib is not well installed. You could try:

conda uninstall matplotlib
conda install matplotlib

or perhaps:

conda uninstall matplotlib
conda update --all
conda install matplotlib

Note that ncvue is also on conda-forge:

conda install -c conda-forge ncvue

It is always a good idea to work in virtual environments, here, for example, ncenv:

conda install -n ncenv pip
conda activate ncenv

With a bit of luck, ncvue installs then just like this :-)

conda install -c conda-forge ncvue

@mcuntz mcuntz closed this as completed Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants