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
>
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
5\lib\site.py", line 356, in aliasmbcs
import locale, codecs
File "F:\Python25\lib\locale.py", line 14, in
import sys, encodings, encodings.aliases
File "F:\Python25\lib\encodings\__init__.py", line 32, in
from encodings import aliases
ValueError: bad mars
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
--
n25\lib\locale.py", line 14, in
import sys, encodings, encodings.aliases
File "F:\Python25\lib\encodings\__init__.py", line 32, in
ValueError: bad marshal data
# G:\Python25\lib\warnings.pyc matches G:\Python25\lib\warnings.py
import warnings # precompiled from G:\Python25
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
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:
> 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&
"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
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
10 matches
Mail list logo