This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: make frameworkinstall fails on Intel Macs
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, mammon_
Priority: normal Keywords:

Created on 2006-03-10 23:13 by mammon_, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27735 - (view) Author: Michael Mondragon (mammon_) Date: 2006-03-10 23:13
make frameworkinstall fails on Intel Macs 
due to an endian error.

Hardware: Intel Duo iMac 20"
OS Version: OS X 10.4.6

Error:
------

  File
"/Users/Shared/Downloads/Python-2.4.2/Lib/plat-mac/applesingle.py",
line 58, in __init__
    raise Error, "Unknown AppleSingle magic number
0x%8.8x" % (magic,)
applesingle.Error: Unknown AppleSingle magic number
0x00160500
make[1]: *** [installmacsubtree] Error 1
make: *** [frameworkinstallmaclib] Error 2

Looking in the file at line 31:

AS_MAGIC=0x00051600

...it seems fairly obvious that byte order is
reverse. Looks like the file is in big-endian
format, not ntaive format.


Fix:
----

vi Lib/plat-mac/applesingle.py

Line 28: Replace 
   AS_HEADER_FORMAT="LL16sh"
with
   AS_HEADER_FORMAT=">LL16sh"

Line 35: Replace
  AS_ENTRY_FORMAT="lll"
with
  AS_ENTRY_FORMAT=">lll"
msg27736 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-17 06:37
Logged In: YES 
user_id=849994

Duplicate of #1451717.
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 43013
2006-03-10 23:13:09mammon_create