RE: byte code generated under linux ==> bad magic number under windows
Philippe C. Martin wrote: > 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). ^^^ > are the pyc plateform dependant ? and if so must I generate one > version for each version of Linux, windows .. ? .pyc files are not platform dependent, but they are *version* dependent - specifically, major version (i.e. 2.3, 2.4). Between major versions, the bytecode can change. There were in fact some significant changes between 2.3 and 2.4. Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list
Re: byte code generated under linux ==> bad magic number under windows
Fredrik Lundh wrote: AFAIK, they *are* platform dependent. You can not share pyc files between ASCII and EBCDIC machine. however, that could be seen as be a flaw in the EBCDIC ports. We'll see if this could be fixed. I try to foster some "movement" in Python/400 (I love this name, please, dont call it iSeries Python!) community in the hope to put more life in this port. We have more bugs than anyone else to fight, at last. ;) -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list
Re: byte code generated under linux ==> bad magic number under windows
Jarek Zgoda wrote: > AFAIK, they *are* platform dependent. You can not share pyc files between > ASCII and EBCDIC > machine. however, that could be seen as be a flaw in the EBCDIC ports. -- http://mail.python.org/mailman/listinfo/python-list
Re: byte code generated under linux ==> bad magic number under windows
Aaron Bingham wrote: .pyc files are platform-independant but are incompatible between major Python versions. You can not use a .pyc file generated with Python 2.3 with Python 2.4 or vice versa. AFAIK, they *are* platform dependent. You can not share pyc files between ASCII and EBCDIC machine. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list
Re: byte code generated under linux ==> bad magic number under windows
> 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:[EMAIL PROTECTED] web:http://designasign.biz -- http://mail.python.org/mailman/listinfo/python-list
Re: byte code generated under linux ==> bad magic number under windows
Philippe C. Martin wrote: 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 ? are the pyc plateform dependant ? and if so must I generate one version for each version of Linux, windows .. ? .pyc files are platform-independant but are incompatible between major Python versions. You can not use a .pyc file generated with Python 2.3 with Python 2.4 or vice versa. Aaron -- http://mail.python.org/mailman/listinfo/python-list
byte code generated under linux ==> bad magic number under windows
Hi, 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 ? are the pyc plateform dependant ? and if so must I generate one version for each version of Linux, windows .. ? Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list