TiNo schrieb:
File F:\Python25\lib\encodings\__init__.py, line 32, in module
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
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 module
from encodings import aliases
ValueError: bad marshal data
also removed site.pyc, and run it again
import locale, codecs
File F:\Python25\lib\locale.py, line 14, in module
import sys, encodings, encodings.aliases
File F:\Python25\lib\encodings\__init__.py, line 32, in module
from encodings import aliases
ValueError: bad marshal data
# F:\Python25\lib\warnings.pyc matches F:\Python25
, encodings.aliases
File F:\Python25\lib\encodings\__init__.py, line 32, in module
ValueError: bad marshal data
# G:\Python25\lib\warnings.pyc matches G:\Python25\lib\warnings.py
import warnings # precompiled from G:\Python25\lib\warnings.pyc
# G:\Python25\lib\linecache.pyc matches G:\Python25\lib
TiNo schrieb:
# G:\Python25\lib\encodings\aliases.pyc matches
[...]
File F:\Python25\lib\encodings\__init__.py, line 32, in module
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
--
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
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 for
Hi,
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.
Is this data really not portable or I am doing something wrong here. I
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-list
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
10 matches
Mail list logo