I have downloaded the  psycopg2 tar file from the following link.<br><a href="http://initd.org/tracker/psycopg">http://initd.org/tracker/psycopg</a><br><br>I have done the following things.<br>         * Extracting the files from the tar file<br>
         * tried to execute python ./setup.py build<br><br>It gives the following error.<br><br>#python ./setup.py build<br><br>running build<br>running build_py<br>running build_ext<br>Traceback (most recent call last):<br>
  File "./setup.py", line 410, in ?<br>    ext_modules=ext)<br>  File "distutils/core.py", line 149, in setup<br>  File "distutils/dist.py", line 946, in run_commands<br>  File "distutils/dist.py", line 966, in run_command<br>
  File "distutils/command/build.py", line 112, in run<br>  File "/usr/lib/python2.4/cmd.py", line 333, in run_command<br>    del help[cmd]<br>  File "distutils/dist.py", line 965, in run_command<br>
  File "/usr/lib/python2.4/cmd.py", line 117, in ensure_finalized<br>    pass<br>  File "./setup.py", line 219, in finalize_options<br>    except (Warning, w):<br>NameError: global name 'w' is not defined<br>
<br>What would be the solution?<br>Otherwise can you tell how to install DB-API in debian machine.<br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 10:43 AM, Dennis Lee Bieber <span dir="ltr"><<a href="mailto:wlfraed@ix.netcom.com">wlfraed@ix.netcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Tue, 4 Aug 2009 09:55:47 -0400, "D'Arcy J.M. Cain" <<a href="mailto:darcy@druid.net">darcy@druid.net</a>><br>

declaimed the following in gmane.comp.python.general:<br>
<div class="im"><br>
><br>
> By the way, you don't have to be super user to install PyGreSQL.  You<br>
> just need SU if you want to install it system wide.  PyGreSQL doesn't<br>
> require any special privileges to run.<br>
><br>
</div>        Potentially silly question:<br>
<br>
        While the DB-API module may be installable in a user mode... Do we<br>
know if the original querant even has PostgreSQL running and accessible?<br>
<br>
The statement<br>
<br>
OP> I want to access the database related stuffs in python.So I found<br>
the<br>
OP> PyGreSQL module in net.<br>
<br>
doesn't leave me with any confidence that they realize this is just an<br>
access module for one specific server -- and that they still need a<br>
server to which they can connect.<br>
<br>
        If they don't have a PostgreSQL server, it may be better just to<br>
direct them to SQLite3...<br>
<font color="#888888">--<br>
        Wulfraed        Dennis Lee Bieber               KD6MOG<br>
        <a href="mailto:wlfraed@ix.netcom.com">wlfraed@ix.netcom.com</a>           <a href="mailto:wulfraed@bestiaria.com">wulfraed@bestiaria.com</a><br>
                <a href="HTTP://wlfraed.home.netcom.com/" target="_blank">HTTP://wlfraed.home.netcom.com/</a><br>
        (Bestiaria Support Staff:               <a href="mailto:web-asst@bestiaria.com">web-asst@bestiaria.com</a>)<br>
                <a href="HTTP://www.bestiaria.com/" target="_blank">HTTP://www.bestiaria.com/</a><br>
</font><div><div></div><div class="h5"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Thangappan.M<br>