Problem in installing PyGreSQL

Thangappan.M thangappan143 at gmail.com
Mon Aug 10 05:45:07 EDT 2009


Here I attached the setup.py and setup.cfg file.This is for your reference.
I have changed the exception line.
Even though I got the following error while running the python setup.py
build
running build
running build_py
running build_ext
error: No such file or directory

===========================================

On Fri, Aug 7, 2009 at 7:38 PM, Scott David Daniels
<Scott.Daniels at acm.org>wrote:

> Dennis Lee Bieber wrote:
>
>> On Thu, 6 Aug 2009 16:00:15 +0530, "Thangappan.M"
>> <thangappan143 at gmail.com> declaimed the following in
>> gmane.comp.python.general:
>>
>>>  File "./setup.py", line 219, in finalize_options
>>>    except (Warning, w):
>>> NameError: global name 'w' is not defined
>>>
>>> What would be the solution?
>>> Otherwise can you tell how to install DB-API in debian machine.
>>>
>>        Sorry... 1) I run on WinXP; 2) I don't build packages, relying on
>> pre-built binaries; 3) I run MySQL.
>>
>>        However, based upon the examples in the Tutorial, that line should
>> not have the (, ). A parenthesised (tuple) is suppose to contain a list
>> of exceptions, and the parameter to catch the exception specifics has to
>> be outside the list.
>>
>>        Best I can suggest is editing that particular line and removing the
>> (, ) -- then try rebuilding.
>>
>>        I'll also re-ask: All you are installing is the Python adapter to
>> the database. DO YOU HAVE A RUNNING PostgreSQL server that you can
>> connect to?
>>
>
> Just to be a bit more explict:
> Change file setup.py's line 219 from:
> >>     except (Warning, w):
> to either (OK in Python 2.6 and greater):
>       except Warning as w:
> or (works for Python 2.X):
>       except Warning, w:
>
>
> --Scott David Daniels
> Scott.Daniels at Acm.Org
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Regards,
Thangappan.M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090810/99430655/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.cfg
Type: application/octet-stream
Size: 2041 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090810/99430655/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: text/x-python
Size: 15479 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090810/99430655/attachment.py>


More information about the Python-list mailing list