Hmm, did you installed Python :P? 2009/8/17 ctalley <ctal...@caci.com>
> > from the command prompt... > > C:\>python > 'python' is not recognized as an internal or external command, > operable program or batch file. > > On Aug 17, 12:16 pm, Yarko Tymciurak <yark...@gmail.com> wrote: > > if you try this from cmd shell, what do you get: > > > > C:> python > > Python 2.6.2 > > Type "help", "copyright", "credits" or "license" for more information. > > > > > > > > >>> import psycopg2 > > >>> dir('psycopg2') > > On Mon, Aug 17, 2009 at 10:57 AM, ctalley <ctal...@caci.com> wrote: > > > > > I've been using SQLite and am trying to migrate to PostgreSQL. > > > > > I'm getting this error immediately when starting my application... > > > NameError: global name 'psycopg2' is not defined > > > > > ...on this configuration... > > > operating system: Windows XP > > > > > web2py: version 1.66.0 source > > > > > python: version 2.6.2 Windows > > > > > psycopg2: version 2.0.12 for python 2.6 > > > > > Anything obviously wrong? > > > > > Thanks. > > > > > BTW, in case this hasn't already been pointed out, page 213 of the > > > current manual has a typo. It says... > > > db=SQLDB("postgres:myuser:mypassw...@localhost:5432/mydb") > > > > > but should say... > > > db=SQLDB("postgres://myuser:mypassw...@localhost:5432/mydb") > > > (note the // is missing in the first version)- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---