mathtext.mathtext2 KeyError

Hi,

I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is identical to RedHat Enterprise). One of my users is running a script that previously worked with matplotlib on another system. I'm seeing the following errors
[Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler cv_wms: KeyError: 'mathtext.mathtext2'

I've done a bit of snooping through the code and I searched the mailing list archive. I saw a message relating to matplotlib-0.87 indicating that the missing key needed to be added to the matplotlibrc file. However when I do so I get this message:
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key "mathtext.mathtext2" on line 260 in
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] /var/www/.matplotlib/matplotlibrc.

When I remove the offending key I am back to the first error. I am using the matplotlibrc file that came with the 0.90.1 tarball. Does anyone have any suggestions?

Thanks.

Hi Steve,

···

On 6/27/07, Steve Sweet <sweet@...1356...> wrote:

Hi,

I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is
identical to RedHat Enterprise). One of my users is running a script
that previously worked with matplotlib on another system. I'm seeing
the following errors
[Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler
cv_wms: KeyError: 'mathtext.mathtext2'

I've done a bit of snooping through the code and I searched the mailing
list archive. I saw a message relating to matplotlib-0.87 indicating
that the missing key needed to be added to the matplotlibrc file.
However when I do so I get this message:
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key
"mathtext.mathtext2" on line 260 in
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x]
/var/www/.matplotlib/matplotlibrc.

When I remove the offending key I am back to the first error. I am
using the matplotlibrc file that came with the 0.90.1 tarball. Does
anyone have any suggestions?

Thanks.

It seems like you have another (older) installation of matplotlib
somewhere on that system.

Note that newer matplotlibs don't even require a matplotlibrc file in
the $HOME/.matplotlib dir. Have you tried removing it completely?

If you still have problems, please post some more info.

Edin

Hi Edin,

If I try without a matplotlibrc file at all I get the same error. When I first installed I didn't have one other than the one installed by the distribution. I thought that might be the problem so I created one (and verified that it is actually being read) but I still get the errors.

Steve

Edin Salkovic wrote:

···

Hi Steve,

On 6/27/07, Steve Sweet <sweet@...1356...> wrote:

Hi,

I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is
identical to RedHat Enterprise). One of my users is running a script
that previously worked with matplotlib on another system. I'm seeing
the following errors
[Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler
cv_wms: KeyError: 'mathtext.mathtext2'

I've done a bit of snooping through the code and I searched the mailing
list archive. I saw a message relating to matplotlib-0.87 indicating
that the missing key needed to be added to the matplotlibrc file.
However when I do so I get this message:
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key
"mathtext.mathtext2" on line 260 in
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x]
/var/www/.matplotlib/matplotlibrc.

When I remove the offending key I am back to the first error. I am
using the matplotlibrc file that came with the 0.90.1 tarball. Does
anyone have any suggestions?

Thanks.

It seems like you have another (older) installation of matplotlib
somewhere on that system.

Note that newer matplotlibs don't even require a matplotlibrc file in
the $HOME/.matplotlib dir. Have you tried removing it completely?

If you still have problems, please post some more info.

Edin

I successfully worked around the problem. Since the system OS is Centos, which is RedHat Enterprise built from the SRPMS, I grabbed the Fedora srpms for matplotlib and the associated dependencies, built and installed them. Since they were almost all python related it avoided the potential problems with installing Fedora rpms on a RHEL/Centos system. After doing this mathtext-related key errors did not occur.

I hope at some point in the future to go back and see what was actually different with install built from Fedora, however at this point I am still trying to get the system back in production use.

Steve Sweet wrote:

···

Hi Edin,

If I try without a matplotlibrc file at all I get the same error. When I first installed I didn't have one other than the one installed by the distribution. I thought that might be the problem so I created one (and verified that it is actually being read) but I still get the errors.

Steve

Edin Salkovic wrote:
  

Hi Steve,

On 6/27/07, Steve Sweet <sweet@...1356...> wrote:
    

Hi,

I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is
identical to RedHat Enterprise). One of my users is running a script
that previously worked with matplotlib on another system. I'm seeing
the following errors
[Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler
cv_wms: KeyError: 'mathtext.mathtext2'

I've done a bit of snooping through the code and I searched the mailing
list archive. I saw a message relating to matplotlib-0.87 indicating
that the missing key needed to be added to the matplotlibrc file.
However when I do so I get this message:
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key
"mathtext.mathtext2" on line 260 in
[Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x]
/var/www/.matplotlib/matplotlibrc.

When I remove the offending key I am back to the first error. I am
using the matplotlibrc file that came with the 0.90.1 tarball. Does
anyone have any suggestions?

Thanks.
      

It seems like you have another (older) installation of matplotlib
somewhere on that system.

Note that newer matplotlibs don't even require a matplotlibrc file in
the $HOME/.matplotlib dir. Have you tried removing it completely?

If you still have problems, please post some more info.

Edin
    
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users