Re: Installation Error on OS X
James Henstridge <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, May 2, 2009 at 4:57 AM, theodore test <[email protected]> wrote: > Hello everyone, > > I recently attempted to install psycopg2-2.0.10 on my Intel OS X 10.4.11 > system. Both the "easy_install ." and regular "python setup.py install" > methods produced similar errors. Any thoughts or advice? > > Thanks in advance, > > Theodore Test > > ===PYTHON SETUP.PY INSTALL VERSION=== > > $python setup.py install [snip] > "/Library/Frameworks/Python.framework/Versions/2.5.2001/lib/python2.5/distutils/cmd.py", > line 117, in ensure_finalized > self.finalize_options() > File "setup.py", line 219, in finalize_options > except (Warning, w): > NameError: global name 'w' is not defined Looks like a bug in psycopg2's setup.py file. Try editing it and removing the parentheses on line 219 (so it just reads "except Warning, w:". This is an error/warning code path, so it is likely that there is something else you'll need to do to install psycopg2, but this should make the error display. James.