On 26 Kwi, 18:16, Michal Jursa <mic...@jursa.cz> wrote:
> Please report this to psycopg developers. I think there are mostly only
> psycopg users like me here and this has nothing to do with web2py.
>
> Michal
>
> wengfei2...@163.com wrote:
> > I use python2.5 ,but the problem  exists then
>
> > [r...@localhost psycopg2-2.0.10]#  python setup.py install
> > running install
> > running build
> > running build_py
> > running build_ext
> > Traceback (most recent call last):
> >   File "setup.py", line 410, in <module>
> >     ext_modules=ext)
> >   File "/usr/local/lib/python2.5/distutils/core.py", line 151, in
> > setup
> >     dist.run_commands()
> >   File "/usr/local/lib/python2.5/distutils/dist.py", line 974, in
> > run_commands
> >     self.run_command(cmd)
> >   File "/usr/local/lib/python2.5/distutils/dist.py", line 994, in
> > run_command
> >     cmd_obj.run()
> >   File "/usr/local/lib/python2.5/distutils/command/install.py", line
> > 506, in run
> >     self.run_command('build')
> >   File "/usr/local/lib/python2.5/distutils/cmd.py", line 333, in
> > run_command
> >     self.distribution.run_command(command)
> >   File "/usr/local/lib/python2.5/distutils/dist.py", line 994, in
> > run_command
> >     cmd_obj.run()
> >   File "/usr/local/lib/python2.5/distutils/command/build.py", line
> > 112, in run
> >     self.run_command(cmd_name)
> >   File "/usr/local/lib/python2.5/distutils/cmd.py", line 333, in
> > run_command
> >     self.distribution.run_command(command)
> >   File "/usr/local/lib/python2.5/distutils/dist.py", line 993, in
> > run_command
> >     cmd_obj.ensure_finalized()
> >   File "/usr/local/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
> > [r...@localhost psycopg2-2.0.10]# python -V
> > Python 2.5.4

in debian:
  * apt-get install libpq-dev

or install libpq dev package in other way

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to