Hi For installing psycopg2 on windows you either need the correct MS Visual C++ version or you may download the ready made windows installer from http://www.stickpeople.com/projects/python/win-psycopg/
But the problem with the installer is that it will install psycopg in your system site-packages. A work around for this is mentioned in the above site, which basically involves (a) renaming the installer .exe file to .zip (b) unzipping the contents inside the VE The TG2 windows installer (http://svn.turbogears.org/site_resources/windows_installer/py2.6/TurboGears2-2.0rc1-py26_Python-2.6.exe) includes psycopg2 so you could use that if you find the installation too complicated. HTH Sanjiv On Fri, Jun 19, 2009 at 8:49 PM, 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 -~----------~----~----~----~------~----~------~--~---

