If I remember correctly (and I might not be, and my 10.5 box is at work), the Python that comes with 10.5 does not have 64-bit support baked in, which basically means that extensions compiled against it won't either.
You'll either need to build a custom Python w/ 64-bit support, or force the built-in Apache to run in 32-bit mode. On Sep 28, 7:32 pm, Simon Lee <hago...@yahoo.com> wrote: > I am trying to deploy the django app that from the django development > server to the Apache on Leopard. When I try to launch the app from my > browser, I got a "Internal Server Error". I checked the error_log and > here's the error: > > [Mon Sep 28 00:43:29 2009] [error] [client 127.0.0.1] > ImproperlyConfigured: Error loading psycopg2 module: dlopen(/Users/ > simonlee/django/lib/python2.5/site-packages/psycopg2/_psycopg.so, 2): > no suitable image found. Did find: > [Mon Sep 28 00:43:29 2009] [error] [client 127.0.0.1] \t/Users/ > simonlee/django/lib/python2.5/site-packages/psycopg2/_psycopg.so: no > matching architecture in universal wrapper > > I did google search and follow the advise on > > http://ronny.haryan.to/archives/2008/09/12/psycopg2-and-64-bit-apache... > > After the build as advise on that article, I only get _psycopg.so for > 2 architectures: i386 and ppc7400, not x86_64. What can I do to build > x86_64 for psycopg2? > > I am using the Apache that comes with Apple (I think it is in 64 bit). > I am also using the python2.5 that comes with Leopard. The PostgreSQL > was downloaded fromwww.postgresql.orgunder the Binary Packages for > Mac OSX. Any advise is greatly appreciated. Thanks. > > Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---