Bad Marshal data when importing matplotlib

Hi Everyone !
This is urgent, I have to finish some plots by tomorrow, and I totally lost the ability to work with python matplotlib -
“import pylab”
“from pylab import *”

all yield the following error:

[code]Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/pymodules/python2.6/pylab.py”, line 1, in

from matplotlib.pylab import *

File “/usr/lib/pymodules/python2.6/matplotlib/pylab.py”, line 206, in
from matplotlib import mpl # pulls in most modules
File “/usr/lib/pymodules/python2.6/matplotlib/mpl.py”, line 3, in

from matplotlib import axes

File “/usr/lib/pymodules/python2.6/matplotlib/axes.py”, line 17, in
import matplotlib.dates as mdates
File “/usr/lib/pymodules/python2.6/matplotlib/dates.py”, line 87, in

import pytz

File “/usr/lib/python2.6/dist-packages/pytz/init.py”, line 32, in
from pkg_resources import resource_stream
ValueError: bad marshal data
[/code]

I am using python-matplotlib on Debian Squeeze.

Any help would be appreciated !
Thanks,

···


Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries

it isn’t hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace

Oz,

I see you have filed a bug with the Debian people and have gotten a response. Did their suggestion help you?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591606

Ben Root

···

On Wed, Aug 4, 2010 at 12:26 AM, Oz Nahum <nahumoz@…287…> wrote:

Hi Everyone !
This is urgent, I have to finish some plots by tomorrow, and I totally lost the ability to work with python matplotlib -
“import pylab”
“from pylab import *”

all yield the following error:

[code]Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/pymodules/python2.6/pylab.py”, line 1, in

from matplotlib.pylab import *

File “/usr/lib/pymodules/python2.6/matplotlib/pylab.py”, line 206, in
from matplotlib import mpl # pulls in most modules
File “/usr/lib/pymodules/python2.6/matplotlib/mpl.py”, line 3, in

from matplotlib import axes

File “/usr/lib/pymodules/python2.6/matplotlib/axes.py”, line 17, in
import matplotlib.dates as mdates
File “/usr/lib/pymodules/python2.6/matplotlib/dates.py”, line 87, in

import pytz

File “/usr/lib/python2.6/dist-packages/pytz/init.py”, line 32, in
from pkg_resources import resource_stream
ValueError: bad marshal data
[/code]

I am using python-matplotlib on Debian Squeeze.

Any help would be appreciated !
Thanks,

ׁHi,
Sorry for the late reply.
Yes the solution suggested in reply to my bug report was indeed helpful !

Thanks for the help !

Oz

···

On Wed, Aug 4, 2010 at 5:01 PM, Benjamin Root <ben.root@…1304…> wrote:

On Wed, Aug 4, 2010 at 12:26 AM, Oz Nahum <nahumoz@…287…> wrote:

Hi Everyone !
This is urgent, I have to finish some plots by tomorrow, and I totally lost the ability to work with python matplotlib -
“import pylab”
“from pylab import *”

all yield the following error:

[code]Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/pymodules/python2.6/pylab.py”, line 1, in

from matplotlib.pylab import *

File “/usr/lib/pymodules/python2.6/matplotlib/pylab.py”, line 206, in
from matplotlib import mpl # pulls in most modules
File “/usr/lib/pymodules/python2.6/matplotlib/mpl.py”, line 3, in

from matplotlib import axes

File “/usr/lib/pymodules/python2.6/matplotlib/axes.py”, line 17, in
import matplotlib.dates as mdates
File “/usr/lib/pymodules/python2.6/matplotlib/dates.py”, line 87, in

import pytz

File “/usr/lib/python2.6/dist-packages/pytz/init.py”, line 32, in
from pkg_resources import resource_stream
ValueError: bad marshal data
[/code]

I am using python-matplotlib on Debian Squeeze.

Any help would be appreciated !
Thanks,

Oz,

I see you have filed a bug with the Debian people and have gotten a response. Did their suggestion help you?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591606

Ben Root


Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries
it isn’t hard to do
Nothing to kill or die for

And no religion too
Imagine all the people
Living life in peace