Python Forum

Full Version: Importing - KeyError: u'axes.prop_cycle is not a valid rc parameter.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi folks,

Trying to use a toolkit called gmpe-smtk (https://github.com/GEMScienceTools/gmpe-smtk).

Following installation I'm attempting to import the following module by entering the following:

import smtk . residuals . residual_plotter as rspl
However, I get the error:

C:\Python27\lib\site-packages\matplotlib\__init__.pyc in __setitem__(self, key, val)
    867         for k in sorted(dict.__iter__(self)):
    868             yield k
--> 869
    870     def find_all(self, pattern):
    871         """

KeyError: u'axes.prop_cycle is not a valid rc parameter.See rcParams.keys() for a list of valid parameters.'
I then enter into the interpreter:

rcParams.keys()
This returns the following however:

NameError    Traceback (most recent call last)
<ipython-input-33-79cff69d7c22> in <module>()
----> 1 rcParams.keys()
NameError: name 'rcParams' is not defined
I'm operating on Windows 32 bit, python 2.7. I'm using pythonxy interpreter as well.

I believe this is a problem pertaining to my matplotlib rather than installation error etc? I'm new to python so my apologies if this is a rather incomplete query.

Thanks for any help with resolving this error.
Hi, try this
Output:
python -c "import matplotlib; print(sorted(matplotlib.rcParams))"