Archive for December, 2012

To determine the version of matplotlib, you can either look in /usr/lib64/python26/site-packages for the matplotlib egg file (the version should be in the name of the file) or import the module in python itself.

[ ~]$ python
Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'0.99.1.1'
>>> 

This is the default version get with RHEL6. To use a newer version of matplotlib, remove the python-matplotlib and seekwatcher packages. Download the latest matplotlib and install that.

[ matplotlib-1.2.0]# python setup.py build
[ matplotlib-1.2.0]# python setup.py install

The run the check again and you should see the newer version being loaded.

[ matplotlib-1.2.0]# python
Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'1.2.0'

I was getting this error in my log files:

dovecot: IMAP(user): Time just moved backwards by 1 seconds. I'll sleep now until we're back in present.
http://wiki.dovecot.org/TimeMovedBackwards: 1 Time(s)

Looking at the website that was linked in the error message (very helpful), the solution was to edit /etc/ntp.conf and add the following:

# Added following to get rid of dovecot "Time moved backwards" error
tinker step 0

Restart ntpd and after two days the error stopped showing up in my logs. Yay!