python - AttributeError: 'builtin_function_or_method' object has no attribute 'iterkeys' -
python - AttributeError: 'builtin_function_or_method' object has no attribute 'iterkeys' -
this code:
from skimage import io,color filename = io.imread("input00.jpg") img = color.rgb2gray(filename,as_grey=true) io.imshow(img) io.show()
throws error @ line 2 saying:
attributeerror: 'builtin_function_or_method' object has no attribute 'iterkeys'
traceback:
traceback (most recent phone call last): file "readimg.py", line 2, in <module> filename = io.imread("input00.jpg") file "/library/python/2.7/site-packages/skimage/io/_io.py", line 97, in imread img = call_plugin('imread', fname, plugin=plugin, **plugin_args) file "/library/python/2.7/site-packages/skimage/io/manage_plugins.py", line 209, in call_plugin homecoming func(*args, **kwargs) file "/library/python/2.7/site-packages/matplotlib-1.4.x-py2.7-macosx-10.9- intel.egg/matplotlib/pyplot.py", line 2198, in imread homecoming _imread(*args, **kwargs) file "/library/python/2.7/site-packages/matplotlib-1.4.x-py2.7-macosx-10.9-intel.egg/matplotlib/image.py", line 1249, in imread 'more images' % list(six.iterkeys(handlers.keys))) file "/library/python/2.7/site-packages/six-1.7.2-py2.7.egg/six.py", line 547, in iterkeys homecoming iter(d.iterkeys(**kw)) attributeerror: 'builtin_function_or_method' object has no attribute 'iterkeys'
got same problem. solution install pillow (you can here http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow)
python scikit-image
Comments
Post a Comment