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

Skip to content

RuntimeError: dictionary changed size during iteration from colors.py, 3.3 but not 3.2 #1401

Closed
@goneasync

Description

@goneasync

I've been having some problems running matplotlib tests after installing into python3.3 on a Mac OS X 10.7.5. Build went fine, but:

pv-chem-1762:tests jgehman$ ./backend_driver.py
Traceback (most recent call last):
File "./backend_driver.py", line 25, in
import matplotlib.rcsetup as rcsetup
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/init.py", line 151, in
from matplotlib.rcsetup import (defaultParams,
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/rcsetup.py", line 20, in
from matplotlib.colors import is_color_like
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/matplotlib/colors.py", line 205, in
for k, v in cnames.items():
RuntimeError: dictionary changed size during iteration

I thought this might have something to do with a final comma in the dictionary define just above line 205, but deleting this hasn't helped.

The test does run under 3.2, however!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions