SIP 4.9 building error on Mac

View: New views
2 Messages — Rating Filter:   Alert me  

SIP 4.9 building error on Mac

by Derek Ruths :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've just downloaded SIP 4.9 and discovered that building it fails on  
my Mac with the error below.  I've verified that "arch" is not  
currently a named argument accepted by ProgramMakefile in  
sipconfig.py, causing the error.  I'm emailing the list to notify  
others and in the hope that this can get quickly taken care of.  Thanks!

        D

This is SIP 4.9 for Python 2.6.2 on darwin.
The SIP code generator will be installed in
/Library/Frameworks/OryxPython.framework/Versions/2.6/bin.
The SIP module will be installed in
/Library/Frameworks/OryxPython.framework/Versions/2.6/lib/python2.6/
site-packages.
The SIP header file will be installed in
/Library/Frameworks/OryxPython.framework/Versions/2.6/include.
The default directory to install .sip files in is
/Library/Frameworks/OryxPython.framework/Versions/2.6/share/sip.
The platform/compiler configuration is macx-g++.
MacOS/X binaries will be created for ppc, i386, x86_64.
MacOS/X universal binaries will be created using
/Developer/SDKs/MacOSX10.5.sdk.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
An internal error occured.  Please report all the output from the  
program,
including the following traceback, to support@....
Traceback (most recent call last):
   File "configure.py", line 459, in <module>
     main(sys.argv)
   File "configure.py", line 450, in main
     create_makefiles(macros)
   File "configure.py", line 275, in create_makefiles
     arch=opts.arch
TypeError: __init__() got an unexpected keyword argument 'arch'
make[2]: *** No targets specified and no makefile found.  Stop.
make[1]: *** [all] Error 2
make[2]: *** No rule to make target `install'.  Stop.
make[1]: *** [install] Error 2
make: *** [build_sip] Error 2

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

Re: SIP 4.9 building error on Mac

by William Kyngesburye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Works for me with system python 2.5 on Leopard and 2.6 on Snow, and python.org
  Python 2.6 on Leopard.  Though I didn't try 64bit on Snow.

Maybe somehow an old sipconfig got imported?  Try removing the old  
installed SIP.

I had this problem in the dev version right after the option was added  
(I'm the cause of the new options, to support differing combinations  
of 32/64bit Qt and 32/64bit Python :), but it eventaully fixed itself  
- I was trying a lot of different things at the time, but I think  
cleaning out old SIPs did the trick.

On Sep 26, 2009, at 10:32 PM, Derek Ruths wrote:

> I've just downloaded SIP 4.9 and discovered that building it fails  
> on my Mac with the error below.  I've verified that "arch" is not  
> currently a named argument accepted by ProgramMakefile in  
> sipconfig.py, causing the error.  I'm emailing the list to notify  
> others and in the hope that this can get quickly taken care of.  
> Thanks!
>
> D
>
> This is SIP 4.9 for Python 2.6.2 on darwin.
> The SIP code generator will be installed in
> /Library/Frameworks/OryxPython.framework/Versions/2.6/bin.
> The SIP module will be installed in
> /Library/Frameworks/OryxPython.framework/Versions/2.6/lib/python2.6/
> site-packages.
> The SIP header file will be installed in
> /Library/Frameworks/OryxPython.framework/Versions/2.6/include.
> The default directory to install .sip files in is
> /Library/Frameworks/OryxPython.framework/Versions/2.6/share/sip.
> The platform/compiler configuration is macx-g++.
> MacOS/X binaries will be created for ppc, i386, x86_64.
> MacOS/X universal binaries will be created using
> /Developer/SDKs/MacOSX10.5.sdk.
> Creating sipconfig.py...
> Creating top level Makefile...
> Creating sip code generator Makefile...
> An internal error occured.  Please report all the output from the  
> program,
> including the following traceback, to support@....
> Traceback (most recent call last):
>  File "configure.py", line 459, in <module>
>    main(sys.argv)
>  File "configure.py", line 450, in main
>    create_makefiles(macros)
>  File "configure.py", line 275, in create_makefiles
>    arch=opts.arch
> TypeError: __init__() got an unexpected keyword argument 'arch'
> make[2]: *** No targets specified and no makefile found.  Stop.
> make[1]: *** [all] Error 2
> make[2]: *** No rule to make target `install'.  Stop.
> make[1]: *** [install] Error 2
> make: *** [build_sip] Error 2
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@...
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan


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