Making setuptools compile for x86_64

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

Making setuptools compile for x86_64

by John Porter Simons :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm new to this list, sorry if this was already asked.

I installed (py-)appscript using "setup.py install" and it works fine from an interactive session, but when I try to use it from python loaded into Apache through mod_python, I get this error:

Could not import darkporter.jukebox.views. Error was: dlopen(/Library/WebServer/.python-eggs/appscript-0.19.0-py2.5-macosx-10.5-i386.egg-tmp/aem/ae.so, 2): no suitable image found.  Did find:
/Library/WebServer/.python-eggs/appscript-0.19.0-py2.5-macosx-10.5-i386.egg-tmp/aem/ae.so: no matching architecture in universal wrapper

Which I think is because Apache runs in 64-bit so any scripts loaded in also will? If I do "file" on that .so I get:

/Library/WebServer/.python-eggs/appscript-0.19.0-py2.5-macosx-10.5-i386.egg-tmp/aem/ae.so: Mach-O universal binary with 2 architectures
/Library/WebServer/.python-eggs/appscript-0.19.0-py2.5-macosx-10.5-i386.egg-tmp/aem/ae.so (for architecture i386):    Mach-O bundle i386
/Library/WebServer/.python-eggs/appscript-0.19.0-py2.5-macosx-10.5-i386.egg-tmp/aem/ae.so (for architecture ppc7400):    Mach-O bundle ppc

Any way to inform setuptools that I also need "x86_64" architecture? I also ran into this problem while installing mod_python, dinked around with the makefile flags but gave up until I discovered that the latest subversion trunk has the correct flags for 64-bit.

If I really have to I could recompile Apache in 32-bit, but I'm hoping that won't be necessary.


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

Parent Message unknown Re: Making setuptools compile for x86_64

by HAS-13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Porter Simons wrote:

> Any way to inform setuptools that I also need "x86_64" architecture?  
> I also ran into this problem while installing mod_python, dinked  
> around with the makefile flags but gave up until I discovered that  
> the latest subversion trunk has the correct flags for 64-bit.

See:

        http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/

(Applies to Python, etc. as well as Perl.)

To build 64-bit py-appscript you'll need to use the current trunk from  
svn. (I really should push out a proper file release sometime.)

HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

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

Re: Making setuptools compile for x86_64

by Bill Janssen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> To build 64-bit py-appscript you'll need to use the current trunk from
> svn. (I really should push out a proper file release sometime.)

Yes, I'd certainly appreciate it if you'd do this.

Bill
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig
LightInTheBox - Buy quality products at wholesale price!