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

AttributeError: 'module' object has no attribute 'next' #2852

Merged
merged 1 commit into from Mar 8, 2014

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Feb 28, 2014

Came across this error while testing on my Ubuntu 12.02 LTS machine with a system install of six (version 1.1.0)

Traceback (most recent call last):
  File "2dcollections3d_demo.py", line 10, in <module>
    ax.plot(x, y, zs=0, zdir='z', label='zs=0, zdir=z')
  File "/home/ben/Programs/matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py", line 1518, in plot
    lines = Axes.plot(self, xs, ys, *args[argsi:], **kwargs)
  File "/home/ben/Programs/matplotlib/lib/matplotlib/axes/_axes.py", line 1394, in plot
    for line in self._get_lines(*args, **kwargs):
  File "/home/ben/Programs/matplotlib/lib/matplotlib/axes/_base.py", line 303, in _grab_next_args
    for seg in self._plot_args(remaining, kwargs):
  File "/home/ben/Programs/matplotlib/lib/matplotlib/axes/_base.py", line 291, in _plot_args
    seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs)
  File "/home/ben/Programs/matplotlib/lib/matplotlib/axes/_base.py", line 236, in _makeline
    kw['color'] = six.next(self.color_cycle)
AttributeError: 'module' object has no attribute 'next'

Perhaps we need to set a minimum version of six?

@mdboom
Copy link
Member

mdboom commented Feb 28, 2014

Seems like a good idea. Not sure where to set it -- probably 1.5.

@tacaswell tacaswell added this to the v1.4.0 milestone Mar 3, 2014
tacaswell added a commit that referenced this pull request Mar 8, 2014
AttributeError: 'module' object has no attribute 'next'
@tacaswell tacaswell merged commit f4217db into matplotlib:master Mar 8, 2014
@tacaswell
Copy link
Member

Experimentally, 1.3 works fine. I think we should dial it back to reduce installation headaches (1.3 is what ships with the latest ubuntu).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants