Hi there. The fundamental issue with development on Windows is that is does not come with a built-in C/C++ compiler. When you easy_install pysqlite, for example, it sees that there is not a prebuilt windows binary egg file so it grabs the source archive and tries to compile it. On most Unix systems (linux, etc.), this works because they all come with c/c++ compilers. On Windows, however, it goes boom.
The "trick" or key to installing "problem" packages (ones that need compiling) on Windows is to go to the website for that package and download it's exe installer. install that. The database packages for python (pysqlite, psycopg2, etc.) usually have to be installed this way because they link to underlining c/c++ libraries. One you know this trick, Python on Windows is a breeze. :) Oh and TG works just fine in Python 2.4.x and 2.5.x in XP and 2000. So don't feel nervous about it. :) Oh again, one other tip for TG on Windows: if you use sqlite as the database, you might have to put notrans_ in the dburi setting in your tg app config file. The details are in the dev.cfg, but I find I need it almost always in Windows. Hope this helps, Krys On Friday 8 June 2007 23:02, TGTry wrote: > Well I installed TG 1.0.2.2 on Python 2.5.1 (changed my Path to point > to the new directories) and ran "easy_install pysqlite" same error as > before: > > error: Setup script exited with error: Python was built with Visual > Studio > > extensions must be built with a compiler than can generate compatible > bina > Visual Studio 2003 was not found on this system. If you have Cygwin > instal > you can try compiling with MingW32, by passing "-c mingw32" to > setup.py. > > At least this is not an intermittent problem. Oh well, I guess I will > try again in six months. Hard to trust any framework whose most basic > install will not work. > > On Jun 7, 11:36 pm, TGTry <[EMAIL PROTECTED]> wrote: > > Every six months I attempt to install TG and some database (MySQL, > > Postgre) on Windows. > > This time I decided to lower my expectation and install SQLite3. Just > > to make sure I bought the book. By the way page 14 has "easy-install" > > not "easy_install". But after so many tries this was obvious. > > > > easy_install pysqlite returns: > > > > "extensions must be built with a compiler than can generate compatible > > binaries. Visual Studio 2003 was not found on this system. If you have > > Cygwin installed, you can try compiling with MingW32, by passing "-c > > mingw32" to setup.py." > > > > I would be an avid fan for TG over Rails but how come the base is > > always so problematic to install. > > > > This would be great to test drive but it never makes it off the lot. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

