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

ImportError: No module named artist #6771

Closed
Faruk10 opened this issue Jul 17, 2016 · 17 comments
Closed

ImportError: No module named artist #6771

Faruk10 opened this issue Jul 17, 2016 · 17 comments
Labels
Community support Users in need of help.

Comments

@Faruk10
Copy link

Faruk10 commented Jul 17, 2016

Hello, please could any one help ! I attempted to plot tsne,but i got this error:
ImportError Traceback (most recent call last)
in ()
----> 1 from matplotlib.pyplot import *
2 from matplotlib.offsetbox import TextArea, DrawingArea, OffsetImage, AnnotationBbox
3 from matplotlib.cbook import get_sample_data
4 # Plotting function
5 matplotlib.rc('font', **{'family' : 'sans-serif',

C:\Users\amaall1010\Anaconda2\lib\site-packages\matplotlib\pyplot.py in ()
27 from cycler import cycler
28 import matplotlib
---> 29 import matplotlib.colorbar
30 from matplotlib import style
31 from matplotlib import _pylab_helpers, interactive

C:\Users\amaall1010\Anaconda2\lib\site-packages\matplotlib\colorbar.py in ()
30
31 import matplotlib as mpl
---> 32 import matplotlib.artist as martist
33 import matplotlib.cbook as cbook
34 import matplotlib.collections as collections

ImportError: No module named artist
Thanks

@tacaswell
Copy link
Member

Your installation is broken, reinstalling mpl via conda

conda install matplotlib --force

If this does not work, try the mpl user mailing list (matplotlib-users@python.org)

@IshitaShah06
Copy link

I had the same issue and it worked for me. Thank you :)

1 similar comment
@1529046970
Copy link

I had the same issue and it worked for me. Thank you :)

@bgbutler
Copy link

bgbutler commented Feb 1, 2019

I completely removed my virtual environment and then rebuilt it by the following:

conda create -n nlp python=3.6 anaconda

I still get the same error above.

@jklymak
Copy link
Member

jklymak commented Feb 2, 2019

@bgbutler If you are still having trouble, please open a new issue. However, this really seems to be an install problem, possibly multiple places on your system where python is looking for libraries

@waqaschughtai
Copy link

It worked for me but there was a warning that force command will be removed in the future

@anntzer anntzer added the Community support Users in need of help. label Mar 6, 2019
@IssacMiao
Copy link

Reinstall matplotlib helps

@jbanerje
Copy link

jbanerje commented Mar 5, 2020

conda install matplotlib --force worked for me

@tyadav
Copy link

tyadav commented Apr 24, 2020

Observed that this error: "ModuleNotFoundError: No module named 'matplotlib.artist'" is only with Jupyter lab, it working with other IDE even with jupyter notebook as well.
Any suggestions please.

@DaGebster
Copy link

tyadav, you probably have competing python installs.. the force option should work

@tacaswell
Copy link
Member

Please direct future questions about installation issues to https://discourse.matplotlib.org/c/community/install/13

@tyadav
Copy link

tyadav commented Apr 29, 2020

tyadav, you probably have competing python installs.. the force option should work

YEs It's working now, I reinstalled everything. thanks.

@ostwalprasad
Copy link

ostwalprasad commented May 5, 2020

Did not work with reinstalling or -force re-installation.

I perused error trace-back to find out that there's one more Python installation in my system at ~\AppData\Roaming\Python\Python37.

Deleted it and now it works fine!

@naikshubham
Copy link

Did not work with reinstalling or -force re-installation.

I perused error trace-back to find out that there's one more Python installation in my system at ~\AppData\Roaming\Python\Python37.

Deleted it and now it works fine!

This worked for me. Thanks.

@sivaji12344
Copy link

from plot_decision_boundary import plot_decision_boundary
plt.figure()
plt_data(X[:,1:],y)
plt.xlabel('corona_test_andhra')
plt.ylabel('corona_test_telangana')
plt.legend(['corona=+ve','corona=-ve'],loc='upper right',numpoint=1)
plot_decision_boundary(theta,X,y)
plt.show()

and it gives error like: Module Not Found Error: No module named 'plot_decision_boundary'

@Akshay4452
Copy link

Thanks man it worked

@RutujaSheth
Copy link

IMG_7073
Uploading IMG_7072.jpeg…
Getting above error. Can anyone help resolving it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community support Users in need of help.
Projects
None yet
Development

No branches or pull requests