[Matplotlib-users] Error importing matplotlib
Nathan
nathan.goldbaum at gmail.com
Sat May 16 10:02:23 EDT 2020
It looks like you have two different matplotlib versions simultaneously
installed somehow, is_string_like was removed in matplotlib 3.0.
Probably the easiest way to fix this is just to blow away the virtualenv.
On Sat, May 16, 2020 at 7:56 AM Martin Schimmels <martin.schimmels at web.de>
wrote:
> Hi,
> I wonder what's happening:
> (OS: OpenSuSE Linux Leap 15.1; Python 3.6.10; matplotlib-2.0.2-py3.6)
>
> ================
> ~> python
> Python 3.6.10 (default, Jan 16 2020, 09:12:04) [GCC] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.pyplot as plt
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib64/python3.6/site-packages/matplotlib/__init__.py", line
> 122, in <module>
> from matplotlib.cbook import is_string_like, mplDeprecation, dedent,
> get_label
> ImportError: cannot import name 'is_string_like'
> ================
>
> Worked 2 weeks ago. Changes on my system: installed a venv, removed it.
>
> Greetings
> Martin
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20200516/d46cdd68/attachment.html>
More information about the Matplotlib-users
mailing list