Thanks to visit codestin.com
Credit goes to github.com

Skip to content

matplotlib import fails #15167

Closed
Closed
@aamster

Description

@aamster

Bug report

Bug summary

import matplotlib.pyplot fails with 'property' object has no attribute '__name__'

Code for reproduction

import matplotlib.pyplot

Matplotlib version

  • Operating system: mac osx
  • Matplotlib version: '3.0.3'
  • Python version: 3.7.1

Installed via conda

stack trace

  File "<ipython-input-115-864e826dab68>", line 1, in <module>
    import matplotlib.pyplot
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/adamamster/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/pyplot.py", line 32, in <module>
    import matplotlib.colorbar
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/adamamster/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/colorbar.py", line 27, in <module>
    import matplotlib.artist as martist
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/adamamster/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py", line 57, in <module>
    class Artist(object):
  File "/Users/adamamster/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/artist.py", line 64, in Artist
    @property
  File "/Users/adamamster/anaconda3/envs/py37/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py", line 182, in deprecate
AttributeError: 'property' object has no attribute '__name__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions