__TOC__
== Background ==
When you create a range in relax, it is created as an xrange object.<br>
You cannot by default slice through xrange objects.
The '''dateutil.rrule''' package (version 1.5) used in matplotlib/pylab creates some list, which it expects it can slice through.<br>'''dateutil.rrule''' package (version 2.2) does not have this problem.
But relax will create these as '''xrange''' which is not-sliceable.
== Change bug in dateutil.rrule ==
The recommended way is to update your version of the '''python-dateutil''' package.
<source lang="bash">
sudo pip install python-dateutil --upgrade
</source>
If you by some means need to stay with the current versions, you can try.
<source lang="bash">
bash
Test if it worked
<source lang="bash">
cat <<'EOF' > relax_test.py
from pylab import *