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

import chainer fails when matplotlib version is old #4670

Closed
iwiwi opened this issue Apr 23, 2018 · 1 comment
Closed

import chainer fails when matplotlib version is old #4670

iwiwi opened this issue Apr 23, 2018 · 1 comment
Assignees
Labels
cat:bug Bug report or fix.
Milestone

Comments

@iwiwi
Copy link
Contributor

iwiwi commented Apr 23, 2018

>>> import chainer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../chainer/__init__.py", line 28, in <module>
    from chainer import training  # NOQA
  File ".../chainer/training/__init__.py", line 2, in <module>
    from chainer.training import extensions  # NOQA
  File ".../chainer/training/extensions/__init__.py", line 30, in <module>
    from chainer.training.extensions.variable_statistics_plot import VariableStatisticsPlot  # NOQA
  File ".../chainer/training/extensions/variable_statistics_plot.py", line 16, in <module>
    _plot_color = matplotlib.colors.to_rgba('#1f77b4')  # C0 color
AttributeError: module 'matplotlib.colors' has no attribute 'to_rgba'

It is resolved after upgrading matplotlib.

Conditions

  • chainer: 4.0.0
  • matplotlib: 1.5.3
@iwiwi
Copy link
Contributor Author

iwiwi commented Apr 26, 2018

Thanks for working on it!

@okuta okuta added this to the v4.1.0 milestone May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:bug Bug report or fix.
Projects
None yet
Development

No branches or pull requests

3 participants