I downloaded psycopg2-2.0.10.win32-py2.6-pg8.3.7-release.exe and changed the extension to .zip, then extracted the psycopg2 folder to c:\python26/Lib. This time when I ran paster setup-app development.ini it worked. Thanks for your help.
Rgds, Michael On Sat, Jun 20, 2009 at 1:19 AM, AkA <[email protected]> wrote: > > I've got the same problem with MySQL Michael: > > <a href="http://groups.google.nl/group/turbogears/t/9b07a8d34611f5d7? > hl=nl">MySQLdb</a> > > Could be something with the virtualenvironment indeed. > Now how do we solve this problemo is the question ;) > > On 19 jun, 03:43, Daniel Fetchinson <[email protected]> wrote: > > > I'm trying to setup a Postgresql db with my TG2 application. I have > changed > > > the relevant line in development.ini as instruction to > > > "sqlalchemy.url=postgres://test:t...@localhost:5432/test". When I run > paster > > > setup-app I get an error "No module named psycopg2". So I try to > > > easy_install psycopg2 and get the error "Python was installed with > Visual > > > Studio 2003....". So I download psycopg2 and install it manually and > > > still get the same problem when I run paster setup-app. I was thinking > that > > > perhaps when I run psycopg2 manually, it may not be accessible via the > > > virtual environment that I use for TG2? But I'm only guessing and > really > > > don't know what the problem is. Can anyone help? By the way, I have no > > > problem getting a postgresql db working with TG1. > > > > The first thing to check would be firing up python in the virtualenv > > where you try to use tg2 and see if you can import psycopg2 at all. If > > not, you didn't manage to install it properly and the problem has > > nothing to do with tg2. My guess is that this is the case. If so, you > > need to fix this first, i.e. you need to find out how to install > > psycopg2 for your environment at the first place, completely > > independently of tg2. > > > > Cheers, > > Daniel > > > > -- > > Psss, psss, put it down! -http://www.cafepress.com/putitdown > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

