Python Forum
Importing - KeyError: u'axes.prop_cycle is not a valid rc parameter.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing - KeyError: u'axes.prop_cycle is not a valid rc parameter.
#1
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.
Reply
#2
Hi, try this
Output:
python -c "import matplotlib; print(sorted(matplotlib.rcParams))"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Script getting reindexing only valid error cubangt 1 890 Dec-07-2023, 04:06 PM
Last Post: cubangt
Question Use function, retry until valid Ashcora 8 1,463 Jan-06-2023, 10:14 AM
Last Post: Ashcora
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 10,962 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  Multiple user defined plots with secondary axes using for loop maltp 1 1,439 Apr-30-2022, 10:19 AM
Last Post: maltp
  plotting 3d axes estera 0 1,791 Nov-26-2021, 11:36 AM
Last Post: estera
  checking for valid hexadecimal digits Skaperen 3 6,364 Sep-02-2021, 07:22 AM
Last Post: buran
  Limiting valid values for a variable in a class WJSwan 5 3,599 Jul-06-2020, 07:17 AM
Last Post: Gribouillis
  How to verify the give number is valid Mekala 3 2,393 May-16-2020, 02:40 PM
Last Post: anbu23
  C:\Windows\System32\appwiz.cpl is not a valid Win32 application Marceepoo 8 5,131 Mar-15-2020, 04:46 AM
Last Post: buran
  is a str object a valid iterator? Skaperen 6 5,623 Jan-27-2020, 08:44 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020