Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-26 Thread girzel
Very sorry, I wasn't having the problem I thought I was having. I still don't know why the traceback was switching to the old installation of Python, but at any rate the real problem was that it couldn't find the settings module - my DJANGO_SETTINGS_MODULE and PythonPath had an overlapping file-pa

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-26 Thread Eric Abrahamsen
I had everything (Apache, mysql, mod_python etc) installed through macports but was still using Python from the built-in framework. That was giving me trouble, so I tried to switch over to using the macports Python installation, which came down as a dependency for Apache/mod_python. Needle

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-26 Thread David Reynolds
On 26 Oct 2007, at 2:37 am, Kristinn Örn Sigurðsson wrote: > Sorry if I wasn't clear about what I was talking about. :-) > > I'm using Darwin ports. They work similar to BSD ports (completely > different but the idea is probably from there). With that you can > install alot of *nix applicati

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Kristinn Örn Sigurðsson
Sorry if I wasn't clear about what I was talking about. :-) I'm using Darwin ports. They work similar to BSD ports (completely different but the idea is probably from there). With that you can install alot of *nix applications. The homepage for Darwin ports is http://darwinports.com/. Darwin ports

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Matthew Wensin
Can you elaborate on “just install and update your python version through ports and install everything you need from there”? I’m using Python 2.5 (from here: http://pythonmac.org/packages/)--do you mean Python 2.5.1? Matt On 10/25/07 9:09 PM, "Kristinn Örn Sigur›sson" <[EMAIL PROTECTED]> wrote:

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Kristinn Örn Sigurðsson
That's too much of a hack when you can just install and update your python version through ports and install everything you need from there, without touching the MacOSX system itself. I guess you can use /usr/local without destroying the OSX, but still... I think the ports way is better. :-) Just m

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Matthew Wensin
I've dealt with that exact error before, just yesterday, incidentally. What I did to fix: $ locate libpq.5 If this returns nothing, try running: $ sudo /usr/libexec/locate.updatedb And then $ locate libpq.5 again. Go to the directory containing libpq.5 (for me it was /usr/local/pgsql/lib, an

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Kristinn Örn Sigurðsson
I'm sorry. I'm using version 1 of psycopg. If I fire up a python shell I can import it as "import psycopg". Hope that helps. On 10/25/07, Francis Lavoie <[EMAIL PROTECTED]> wrote: > > > have you tried to import the module into python directly? > > > > Le 07-10-25 à 18:58, Frank a écrit : > > > > >

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Francis Lavoie
have you tried to import the module into python directly? Le 07-10-25 à 18:58, Frank a écrit : > > All- > > Having a rough go getting database bindings in OS X. > > I've installed psycopg2 using the package here: > http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5- > macosx10

Re: Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Kristinn Örn Sigurðsson
I recommend to use Darwin ports or fink to do that. I used Darwin ports on my mac and it works perfectly. On 10/25/07, Frank <[EMAIL PROTECTED]> wrote: > > > All- > > Having a rough go getting database bindings in OS X. > > I've installed psycopg2 using the package here: > > http://pythonmac.org/p

Python 2.5, Postgres, Psycopg2 on OS X

2007-10-25 Thread Frank
All- Having a rough go getting database bindings in OS X. I've installed psycopg2 using the package here: http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5-macosx10.4.zip When I run 'python manage.py shell' I get the following... any ideas on how to fix this? Traceback (most r