Hello, I'm very new to Python although not programming. I am curious about TG as it was recommended/demoed to me by a friend and looks great but it seems very hard to get this up and running on Ubuntu Feisty 7.04.
a) Seems like the default Python/TG packages on Ubuntu are hosed and don't work out of the box (non-standard install locations?). I originally got this error after installing TG via Synapic: http://groups.google.com/group/turbogears/browse_thread/thread/ab9c0d80140eeb4b/213fbd01e705ba9c?lnk=gst&q=ubuntu&rnum=1#213fbd01e705ba9c b) I then followed the advice of "[EMAIL PROTECTED]" on the above thread who suggested basically a complete fresh make install of Python 2.5 and TG. This "kind of" worked. However, I didn't understand the reference to "zlib" in the install notes here and I don't think I have this correctly configured. I installed TG via easy_install and not via tgsetup.py. c) I can now run tg-admin info and see this, which is better than the stack trace I had before, so assume some progress: [EMAIL PROTECTED]:~$ tg-admin info TurboGears Complete Version Information TurboGears requires: * TurboGears 1.0.2.2 * Cheetah 2.0rc7 * configobj 4.3.2 * DecoratorTools 1.4 * RuleDispatch 0.5a0.dev-r2306 * setuptools 0.6c5 * FormEncode 0.7.1 * PasteScript 1.1 * elementtree 1.2.6-20050316 * simplejson 1.7.1 * CherryPy 2.2.1 * TurboKid 1.0.1 * TurboCheetah 0.9.5 * TurboJson 1.0 * PyProtocols 1.0a0 * Cheetah 2.0rc7 * PasteDeploy 1.1 * Paste 1.1.1 * kid 0.9.5 * Cheetah 2.0rc7 * RuleDispatch 0.5a0.dev-r2306 Identity Providers * sqlobject (TurboGears 1.0.2.2) * sqlalchemy (TurboGears 1.0.2.2) tg-admin Commands * info (TurboGears 1.0.2.2) * shell (TurboGears 1.0.2.2) * quickstart (TurboGears 1.0.2.2) * update (TurboGears 1.0.2.2) * sql (TurboGears 1.0.2.2) * i18n (TurboGears 1.0.2.2) * toolbox (TurboGears 1.0.2.2) Visit Managers * sqlobject (TurboGears 1.0.2.2) * sqlalchemy (TurboGears 1.0.2.2) Template Engines * kid (TurboKid 1.0.1) * cheetah (TurboCheetah 0.9.5) * json (TurboJson 1.0) Widget Packages Toolbox Plugins * info (TurboGears 1.0.2.2) * catwalk (TurboGears 1.0.2.2) * shell (TurboGears 1.0.2.2) * designer (TurboGears 1.0.2.2) * widgets (TurboGears 1.0.2.2) * admi18n (TurboGears 1.0.2.2) TurboGears Extensions * visit (TurboGears 1.0.2.2) * identity (TurboGears 1.0.2.2) [EMAIL PROTECTED]:~$ d) Now I am trying to follow the tutorial here, to get Hello World working: http://exogen.case.edu/turbogears.html But when I follow the steps listed, this happens: [EMAIL PROTECTED]:~$ tg-admin quickstart Enter project name: tutorial Enter package name [tutorial]: Do you need Identity (usernames/passwords) in this project? [no] Selected and implied templates: TurboGears#tgbase tg base template TurboGears#turbogears web framework Variables: egg: tutorial identity: none package: tutorial project: tutorial sqlalchemy: False Creating template tgbase Creating directory ./tutorial Recursing into +einame+.egg-info Creating ./tutorial/tutorial.egg-info/ Copying PKG-INFO to ./tutorial/tutorial.egg-info/PKG-INFO Copying paster_plugins.txt to ./tutorial/tutorial.egg-info/ paster_plugins.txt Copying sqlobject.txt_tmpl to ./tutorial/tutorial.egg-info/ sqlobject.txt Recursing into +package+ Creating ./tutorial/tutorial/ Copying __init__.py_tmpl to ./tutorial/tutorial/__init__.py Copying release.py_tmpl to ./tutorial/tutorial/release.py Recursing into static Creating ./tutorial/tutorial/static/ Recursing into css Creating ./tutorial/tutorial/static/css/ Copying empty to ./tutorial/tutorial/static/css/empty Recursing into images Creating ./tutorial/tutorial/static/images/ Copying favicon.ico to ./tutorial/tutorial/static/images/ favicon.ico Copying tg_under_the_hood.png to ./tutorial/tutorial/static/ images/tg_under_the_hood.png Copying under_the_hood_blue.png to ./tutorial/tutorial/static/ images/under_the_hood_blue.png Recursing into javascript Creating ./tutorial/tutorial/static/javascript/ Copying empty to ./tutorial/tutorial/static/javascript/empty Recursing into templates Creating ./tutorial/tutorial/templates/ Copying __init__.py_tmpl to ./tutorial/tutorial/templates/ __init__.py Creating template turbogears Recursing into +package+ Recursing into config Creating ./tutorial/tutorial/config/ /var/lib/python-support/python2.5/Cheetah/Compiler.py:1556: UserWarning: You supplied an empty string for the source! warnings.warn("You supplied an empty string for the source!", ) Copying __init__.py_tmpl to ./tutorial/tutorial/config/ __init__.py Copying app.cfg_tmpl to ./tutorial/tutorial/config/app.cfg Copying log.cfg_tmpl to ./tutorial/tutorial/config/log.cfg Copying controllers.py_tmpl to ./tutorial/tutorial/controllers.py Copying json.py_tmpl to ./tutorial/tutorial/json.py Copying model.py_tmpl to ./tutorial/tutorial/model.py Recursing into sqlobject-history Creating ./tutorial/tutorial/sqlobject-history/ Copying empty to ./tutorial/tutorial/sqlobject-history/empty Recursing into static Recursing into css Copying style.css to ./tutorial/tutorial/static/css/style.css Recursing into images Copying header_inner.png to ./tutorial/tutorial/static/images/ header_inner.png Copying info.png to ./tutorial/tutorial/static/images/info.png Copying ok.png to ./tutorial/tutorial/static/images/ok.png Recursing into templates Copying login.kid to ./tutorial/tutorial/templates/login.kid Copying master.kid to ./tutorial/tutorial/templates/master.kid Copying welcome.kid to ./tutorial/tutorial/templates/welcome.kid Recursing into tests Creating ./tutorial/tutorial/tests/ Copying __init__.py_tmpl to ./tutorial/tutorial/tests/ __init__.py Copying test_controllers.py_tmpl to ./tutorial/tutorial/tests/ test_controllers.py Copying test_model.py_tmpl to ./tutorial/tutorial/tests/ test_model.py Copying README.txt_tmpl to ./tutorial/README.txt Copying dev.cfg_tmpl to ./tutorial/dev.cfg Copying sample-prod.cfg_tmpl to ./tutorial/sample-prod.cfg Copying setup.py_tmpl to ./tutorial/setup.py Copying start-+package+.py_tmpl to ./tutorial/start-tutorial.py Copying test.cfg_tmpl to ./tutorial/test.cfg Running /usr/bin/python setup.py egg_info Adding TurboGears to paster_plugins.txt running egg_info writing requirements to tutorial.egg-info/requires.txt writing tutorial.egg-info/PKG-INFO writing top-level names to tutorial.egg-info/top_level.txt writing dependency_links to tutorial.egg-info/dependency_links.txt reading manifest file 'tutorial.egg-info/SOURCES.txt' writing manifest file 'tutorial.egg-info/SOURCES.txt' [EMAIL PROTECTED]:~$ cd tutorial/ [EMAIL PROTECTED]:~/tutorial$ python start-tutorial.py Traceback (most recent call last): File "start-tutorial.py", line 2, in <module> import pkg_resources ImportError: No module named pkg_resources [EMAIL PROTECTED]:~/tutorial$ I am guessing there is some cross-wiring between the Ubuntu Python default install and my make install but am not sure how to correct this. Any help very much appreciated. Thanks, Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

