byte code generated under linux ==> bad magic number under windows
Laszlo Zsolt Nagy
gandalf at geochemsource.com
Mon Dec 6 09:34:36 EST 2004
> I understand from my reading that a .pyc generated by python anywhere should
> run anywhere else - is that true ?
> If I generate 'compile.all' a pyc with python 2.3.3 under Linux, I get a 'bad
> magic number' trying to execute it under windows (2.4).
> What am I doing wrong ?
You should use the same python versions.
> are the pyc plateform dependant ? and if so must I generate one version for
> each version of Linux, windows ...... ?
No, it is not platform dependent, but it is version dependent.
Best,
Laci 2.0
mailto:gandalf at geochemsource.com
web:http://designasign.biz
More information about the Python-list
mailing list