Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-10 Thread Michael Glassford
Michael Glassford wrote:
> Ronald Oussoren wrote:
>> On Jul 8, 2006, at 5:27 PM, Piet van Oostrum wrote:
>>
 Michael Glassford <[EMAIL PROTECTED]> (MG) wrote:
 MG> As far as I can tell, XCode isn't installed at all. I ran the 
 XCode 2.3
 MG> installer, but it says "You can only install this software on MacOS
 MG> 10.4". I couldn't find installers for any earlier versions of XCode.
>>> When you haven't XCode installed, how come you have gcc?
>> IIRC Xcode 1.5 installs on 10.3.9.
>>
>> Michael, do you have a /Developer folder on your system? 
> I do.
> 
>> If you do you 
>> have some edition of the developer tools installed.
> 
> All that was in it were the SDKs I had installed (10.3.9, QuickDraw, 
> CoreAudio; all of which were necessary to fix specific build errors). 
> There was no XCode stuff. I've finally found the Panther install CD and 
> now have XCode 1.5 installed. I've finally successfully build Python 
> 2.4.3, but am now running into other problems building my application. I 
> haven't the time to look into them very deeply yet. They look like 
> QuickTime errors, though I don't know why I should be getting those as 
> the QuickTime SDK is installed. I'll report back if I can't figure it out.


OK, now that I've built Python, I'm running into this problem building 
PyObjC:

"""
building 'QTKit._QTKit' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-I/usr/local/include/python2.4 -c Modules/QTKit/_QTKit.m -o 
build/temp.darwin-7.9.0-Power_Macintosh-2.4/Modules/QTKit/_QTKit.o 
-IModules/objc -DMACOSX -DAPPLE_RUNTIME -no-cpp-precomp -Wno-long-double 
-g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wshadow 
-Wpointer-arith -Wmissing-declarations -Wnested-externs -Wno-long-long 
-Wno-import -Ibuild/codegen/
In file included from 
/System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:10,
  from Modules/QTKit/_QTKit.m:8:
/System/Library/Frameworks/QTKit.framework/Headers/QTDataReference.h:14: 
error: parse error before "AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER"
/System/Library/Frameworks/QTKit.framework/Headers/QTDataReference.h:15: 
error: parse error before "AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER"
/System/Library/Frameworks/QTKit.framework/Headers/QTDataReference.h:16: 
error: parse error before "AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER"
/System/Library/Frameworks/QTKit.framework/Headers/QTDataReference.h:17: 
error: parse error before "AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER"
/System/Library/Frameworks/QTKit.framework/Headers/QTDataReference.h:18: 
error: parse error before "AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER"
In file included from 
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:12,
  from 
/System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:11,
  from Modules/QTKit/_QTKit.m:8:
"""

I've found references online to similar problems when QuickTime 7 is 
installed on OS X 10.3.9 (which is the case here), but no solutions. I'd 
gladly downgrade to an earlier version of QuickTime if I knew how (I'm 
not using QuickTime), but haven't discovered any way to do it.

Mike
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] No module named appscript

2006-07-10 Thread Jani H Lahtinen
has wrote:
> Jani Lahtinen wrote:
>
>   
>> I just installed the AppScript to my PPC mac from the dmg-file, but  
>> when I try to import appscript I get:
>>
>> 
> from appscript import *
>   
>> Traceback (most recent call last):
>>  File "", line 1, in ?
>> ImportError: No module named appscript
>>
>> I tried both the 2.3 and 2.4 but the module is not loadable in  
>> pythonw. Is there a problem with the installer?
>> 
>
> Shouldn't be; never had any problems before. Are you sure you're  
> using the right python interpreter (i.e. not one for Fink/DarwinPorts  
> Python)? Did you check the site-packages folders for your Python  
> installations to see the files have been installed okay?
>
> Apple-installed 2.3:
> /Library/Python/2.3 (Panther)
> /Library/Python/2.3/site-packages (Tiger)
>
> User-installed MacPython 2.4:
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
> packages
>
> HTH
>
> has
>   
Ok, I had the Fink version of python 2.4. I have now the Apple installed 
2.3 in which there is no such error anymore.

Jani
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig