Re: bad marshal data in site.py in fresh 2.5 install win

2007-01-03 Thread TiNo
Removing aliases.pyc solved it. Thank you. 2007/1/3, "Martin v. Löwis" <[EMAIL PROTECTED]>: > TiNo schrieb: > > File "F:\Python25\lib\encodings\__init__.py", line 32, in > >from encodings import aliases > > ValueError: bad marshal data > > > > also removed site.pyc, and run it again, but wi

Re: bad marshal data in site.py in fresh 2.5 install win

2007-01-03 Thread Martin v. Löwis
TiNo schrieb: > File "F:\Python25\lib\encodings\__init__.py", line 32, in >from encodings import aliases > ValueError: bad marshal data > > also removed site.pyc, and run it again, but with the same result. It's likely rather aliases.pyc which is bad, so try removing that. If in doubt, remo

Re: bad marshal data in site.py in fresh 2.5 install win

2006-12-30 Thread TiNo
Good question... I am now on a different computer, one that has never heard of Python, so no env vars are set. Again, this gives (my memory stick is now F:\): -- F:\Python25>python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # F

Re: bad marshal data in site.py in fresh 2.5 install win

2006-12-29 Thread Martin v. Löwis
TiNo schrieb: > # G:\Python25\lib\encodings\aliases.pyc matches [...] > File "F:\Python25\lib\encodings\__init__.py", line 32, in > > What can I do about this? Where does F:\Python25 come from? If you have set any PYTHON* environment variables (e.g. PYTHONPATH), unset them. Regards, Martin --

Re: Bad marshal data

2005-12-14 Thread Alex Martelli
Michael McGarry <[EMAIL PROTECTED]> wrote: > Pickle is working well for me. I do not need speed or small file size. > Flexibility is more important for me. If speed was important I would > write the app in C. Coding an app in C which writes very large text files would probably be the wrong choice

Re: Bad marshal data

2005-12-14 Thread Michael McGarry
Pickle is working well for me. I do not need speed or small file size. Flexibility is more important for me. If speed was important I would write the app in C. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bad marshal data

2005-12-13 Thread Alex Martelli
Michael McGarry <[EMAIL PROTECTED]> wrote: > I am using the marshal module in python to save a data structure to a > file. It does not appear to be portable. The data is saved on a Linux > machine. Loading that same data on a Mac gives me the bad marshal data > message. If you're using identical

Re: Bad marshal data

2005-12-13 Thread Paul Rubin
"Michael McGarry" <[EMAIL PROTECTED]> writes: > Marshal should save the data in a readable text format, but I guess it > does not. > > Any help would be appreciated, RTFM. Marshal is not intended for what you're doing. Use Pickle, which is. -- http://mail.python.org/mailman/listinfo/python-lis