Skip to content

cannot import name _preprocess_data #12981

@engr-Eghbali

Description

@engr-Eghbali

Hi guys I have problem with importing packages,some of them figured out but this one is still remaining:

/usr/lib64/python2.7/site-packages/matplotlib/colors.py:345: MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
  if not cbook.is_string_like(arg) and cbook.iterable(arg):
/usr/lib64/python2.7/site-packages/matplotlib/colors.py:737: MatplotlibDeprecationWarning: The is_string_like function was deprecated in version 2.1.
  not cbook.is_string_like(colors[0]):
Traceback (most recent call last):
  File "sm.py", line 39, in <module>
    import matplotlib.pyplot as plt  # to plot
  File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 26, in <module>
    from matplotlib.figure import Figure, figaspect
  File "/usr/lib64/python2.7/site-packages/matplotlib/figure.py", line 36, in <module>
    from matplotlib.axes import Axes, SubplotBase, subplot_class_factory
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes/__init__.py", line 4, in <module>
    from ._subplots import *
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_subplots.py", line 10, in <module>
    from matplotlib.axes._axes import Axes
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes/_axes.py", line 17, in <module>
    from matplotlib import _preprocess_data
ImportError: cannot import name _preprocess_data
  • Operating system:centos7x64
  • Matplotlib version: 2.2.3
  • Python version:2.7.5
  • Jupyter version :4.4.0
    installed matplotlib and ipython from pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions