[Pythonmac-SIG] Hello World Cross Platform Problems

Christopher Barker Chris.Barker at noaa.gov
Mon Oct 6 21:45:06 CEST 2008


Ken Mankoff wrote:
>> That being said, thanks for being a pioneer!
> 
> Thanks but no thanks! I'm going to try this again with python 2.5.2.

Darn, I was hoping you'd figure this out for us...

>> By the way, just to keep things clean, I'd try to py2app a little app 
>> that doesn't use wx first.
>>
> 
> I've cleaned out everything and will skip wxWidgets for now. I have the 
> following python script. Is this the type of little app you refer to?
> 
> #!/opt/python/2.5.2/bin/python
> 
> def main():
>   print 'Hello World'
> 
> if __name__ == '__main__':
>   main()

yup -- that should print to the "Console" app when it is run from the GUI.

however, that #! line is pointing to the macports (or fink?) install of 
python -- I"d keep this all native Mac unless you have a good reason not 
to.

>     raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))
> ValueError: Unknown load command: 27

This *may* be a bug (missing feature) in macholib that's been around a 
while. It was fixed in SVN a good while back:

(from a post 3/27/08:)

Ronald Oussoren wrote:
> That load command is for LC_UUID. The version of macholib in subversion 
> should have some support that is (basicly ignoring the entire load 
> command because macholib won't have to change it), could you test that 
> (easy_install macholib==dev)?

I'd make sure you're using all FrameWork Python (the install from 
python.org) first, then, if you still get the error, update macholib as 
above.

Let us know how it goes -- we should get that macholib update officially 
released if it hasn't been already.

-Chris







-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list