Hi, Darthcoder schrieb: > After reading another similar thread (answered by Christopher Arndt) I did > the set-up differently and then ran tgsetup.py inside SPE, which warned me > about adding C:\PythonXX\Scripts to the path, once I did that the XP machine > works fine (i.e. tg-admin succeeded and my tables were created) > however in VISTA I still get > C:\OzVideoMaster\Server\OzServer>tg-admin sql create > Creating tables at mysql://[EMAIL PROTECTED]:3306/python > [...] > "C:\Python25\lib\site-packages\turbogears-1.0.4.4-py2.5.egg\turbogears\co > mmand\sacommand.py", line 31, in create > get_engine() > NameError: global name 'get_engine' is not defined
with all the half-complete reports you send so far, I'm not exactly sure anymore which steps you did in what order on which machine. The error you get should only occur if you do not have SQLAlchemy properly installed. Please note that SQLAlchemy will not be installed by default when installing TurboGears. It will only be installed if you have a project that needs it and install this or run "python setup.py install" or "python setup.py develop" from within the project directory. Of course you can also install SQLAlchemy "by hand" by running "easy_install SQLAlchemy". But I have the suspicion that something is wrong with your current installation, or that you have conflicting version lying around. For example, in your output when running "tg-admin" on the Vista machine it says that tg-admin is running from "C:\OzVideoMaster\Server\OzServer\tg-admin-script.py" I assume that "OzServer" is your project directory? Did you create the "tg-admin-script.py" file yourself? Why would it be run when the command you give on the command line says "tg-admin sql create"? I suggest that you clean up your installation with the instructions on http://docs.turbogears.org/1.0/Uninstall and start the installation from scratch again, then try creating a *new* quickstart project with SQLAlchemy with "tg-admin -i -s -p mytest MyTest", very that this works and then try running your current project. Alternatively, you could try to use virtualenv, using the instructions for method 1 on http://docs.turbogears.org/1.0/InstallNonRoot, but you would have to adapt these instrauctions to Windows, currently they are only given for Unix/Mac OS X. Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

