How is it possible to install TurboGears in Kubuntu 7.04 ???
( 1 ) Installation based on Kubuntu adept does not work and is based on incompatible obsolete versions. Forget it. At the side of Canonical they propose Turbogears in their installation list, but they cannot provide any support. ( 2 ) easy_install : Installation based on the documentation provided by TurboGears at " http://docs.turbogears.org/1.0/InstallUbuntu " did not work too. " tg-admin info " gives always an " OverFlowError ". I do absolutely no know how but it did at once work on my laptop. Turbogears looks in principle very good, but I cannot start to work on a project if there is no reliable installation procedure ???? Later on I would also need to install on a server based on gentoo; Is it possible ???? See some work notes below. These notes were written in HTML but I do not see how to post an annex. Unfotunatly there are tables with 3 columns which do no come correctly in the copy below, but I could send it as annex to an Email. Are Turbogears experts going to the PYCONUK meeting on 7-8 September in Birmingham ? Etienne Saliez tel +32 26541759 ========================================================= Installation of Tubogears ?????? " tg-admin " does not work version 3.6, 8 Aug 2007, Etienne Saliez Introduction: Installation overview : http://docs.turbogears.org/1.0/Install , http://docs.turbogears.org/1.0/InstallNix : Ubuntu: http://docs.turbogears.org/1.0/InstallUbuntu , Gentoo: see the gentoo chapter in http://docs.turbogears.org/1.0/InstallNix , "venomous" on 1/8/2007: Advice to use " easy_install " ( see the index-python page ) No other python module will be overwritten and if you want you can even remove the package easily. In addition you can install Turbogears using " virtual-python " which create a python environment in your home directory ( but non standard ! ) see http://peak.telecommunity.com/DevCenter/EasyInstall : "Marco MARIANI on 01/08-2007: I think you can use " easy-install " as a normal user (e.g. "turbogears") and it would install everything (TG, kid, cherrypy...) in ~/.python_eggs or something. Those packages would override the ubuntu ones for python sessions run by that user. However never done that. Florent AIDE on 02/07/2007: Advice to try : " easy_install -UZ turbojson " 2007-07-30, automatic installation in Kubuntu does not works due to a version problem, Manual installation: Getting started : http://docs.turbogears.org/1.0/GettingStarted http://www.turbogears.org/download/ , http://docs.turbogears.org/1.0/InstallUbuntu , Installation of the essentials: Check the availability of : gcc libc6-dev build-essential python-dev python-setuptools python- profiler Remark : but already installed via the Kubuntu adept procedure and not via " sudo apt-get install " 7/8/2007: [EMAIL PROTECTED]:~$ sudo easy_install -f http://www.turbogears.org/download/index.html Turbogears[standard] Password: Searching for Turbogears[standard] Reading http://www.turbogears.org/download/index.html Best match: TurboGears 1.0.3.2 Downloading http://files.turbogears.org/eggs/TurboGears-1.0.3.2-py2.5.egg Processing TurboGears-1.0.3.2-py2.5.egg creating /usr/lib/python2.5/site-packages/TurboGears-1.0.3.2-py2.5.egg Extracting TurboGears-1.0.3.2-py2.5.egg to /usr/lib/python2.5/site- packages Adding TurboGears 1.0.3.2 to easy-install.pth file Installing tg-admin script to /usr/bin Installed /usr/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg Reading http://files.turbogears.org/eggs/ Processing dependencies for Turbogears[standard] Searching for TurboKid>=1.0.2 Best match: TurboKid 1.0.2 Downloading http://files.turbogears.org/eggs/TurboKid-1.0.2-py2.5.egg Processing TurboKid-1.0.2-py2.5.egg creating /usr/lib/python2.5/site-packages/TurboKid-1.0.2-py2.5.egg Extracting TurboKid-1.0.2-py2.5.egg to /usr/lib/python2.5/site- packages Adding TurboKid 1.0.2 to easy-install.pth file Installed /usr/lib/python2.5/site-packages/TurboKid-1.0.2-py2.5.egg Searching for kid>=0.9.6 Reading http://cheeseshop.python.org/pypi/kid/ Reading http://cheeseshop.python.org/pypi/kid/0.9.6 Best match: kid 0.9.6 Downloading http://pypi.python.org/packages/2.5/k/kid/kid-0.9.6-py2.5.egg#md5=3fc089344a884e7fc954b239a32c649f Processing kid-0.9.6-py2.5.egg creating /usr/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg Extracting kid-0.9.6-py2.5.egg to /usr/lib/python2.5/site-packages Adding kid 0.9.6 to easy-install.pth file Installing kidc script to /usr/bin Installing kid script to /usr/bin Installed /usr/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg [EMAIL PROTECTED]:~$ Result = [EMAIL PROTECTED]:~$ tg-admin info /var/lib/python-support/python2.5/simplejson/scanner.py:6: DeprecationWarning: The sre module is deprecated, please import re. from sre import VERBOSE, MULTILINE, DOTALL Traceback (most recent call last): File "/usr/local/bin/tg-admin", line 8, in <module> load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg- admin')() File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 236, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2097, in load_entry_point return ep.load() File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1830, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/__init__.py", line 6, in <module> from turbogears.controllers import expose, flash, validate, redirect, \ File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/controllers.py", line 12, in <module> from turbogears import view, database, errorhandling, config File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/view/__init__.py", line 1, in <module> from turbogears.view.base import * File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/view/base.py", line 17, in <module> from turbogears.i18n import i18n_filter, get_locale File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/i18n/__init__.py", line 5, in <module> from turbogears.i18n.tg_gettext import gettext, ngettext, install, is_locale_supported, \ File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2- py2.5.egg/turbogears/i18n/tg_gettext.py", line 4, in <module> from turbojson.jsonify import jsonify File "/usr/local/lib/python2.5/site-packages/TurboJson-1.0-py2.5.egg/ turbojson/jsonify.py", line 26, in <module> 'isinstance(obj, datetime.datetime) or ' File "/var/lib/python-support/python2.5/dispatch/functions.py", line 690, in when return self._decorate(cond) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 577, in _decorate cond = self.parseRule(cond,frame=frame) or cond File "<string>", line 10, in parseRule File "/var/lib/python-support/python2.5/dispatch/functions.py", line 440, in parseRule return self.parse(rule, frame.f_locals, frame.f_globals) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 323, in parse from dispatch.predicates import CriteriaBuilder File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 708, in <module> "expr in Call and expr.function is isinstance" File "/var/lib/python-support/python2.5/dispatch/functions.py", line 690, in when return self._decorate(cond) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 577, in _decorate cond = self.parseRule(cond,frame=frame) or cond File "<string>", line 10, in parseRule File "/var/lib/python-support/python2.5/dispatch/functions.py", line 440, in parseRule return self.parse(rule, frame.f_locals, frame.f_globals) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 326, in parse return parse_expr(expr_string,builder) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 383, in parse_expr return build(builder, parser.expr(expr).totuple(1)[1]) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 378, in build return production[nodelist[0]](builder,nodelist) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 51, in com_binary return getattr(builder,opname)(items) File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 609, in And return reduce(operator.and_,[build(self,expr) for expr in items]) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 378, in build return production[nodelist[0]](builder,nodelist) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 111, in comparison return builder.Compare(nodelist[1], results) File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 595, in Compare right = ICriterion(Pointer(right.value)) File "/var/lib/python-support/python2.5/dispatch/strategy.py", line 541, in __new__ self = int.__new__(cls,id(ob)) OverflowError: long int too large to convert to int Problem: seems to be that a module called " sre " would be deprecated: What is " sre " ???? In Kubuntu there is currently a "python-tubojson" version 0.9.5-1 see the advice of Florent AIDE on 2 July 2007: " easy_install -UZ turbojson " ( NB: Upgrade and unZip options ) Result = installation of turbojson version 1.1 [EMAIL PROTECTED]:~$ sudo easy_install -UZ turbojson Password: Searching for turbojson Reading http://cheeseshop.python.org/pypi/turbojson/ Couldn't retrieve index page for 'turbojson' Scanning index of all packages (this may take a while) Reading http://cheeseshop.python.org/pypi/ Reading http://cheeseshop.python.org/pypi/TurboJson/1.1 Reading http://www.turbogears.org/docs/plugins/template.html Reading http://www.turbogears.org/download/ Best match: TurboJson 1.1 Processing TurboJson-1.1-py2.5.egg TurboJson 1.1 is already the active version in easy-install.pth Using /usr/lib/python2.5/site-packages/TurboJson-1.1-py2.5.egg Processing dependencies for turbojson But " tg-admin info " give still the same " OverFlowError " Installation and versions : previous situation on 6 aug 2007 : Desktop es01 Laptop es04 Environment 2007-07-60 = Kubuntu 7.04 and updated 2007-07-60 = Kubuntu 7.04 and updated Python 2007-07-30 = 2.5.1, May 2 2007 version 2.4 also still available 2007-07-30 = 2.5.1, May 2 2007 gcc 4:4.1.2.-1ubuntu1 4:4.1.2.-1ubuntu1 lib6-dev 2.5-0ubuntu14 2.5-0ubuntu14 build-essential 11.3 11.3 python-dev 2.5.1-0ubuntu3 2.5.1-0ubuntu3 python-setuptools 0.6c5-1ubuntu1 0.6c5-1ubuntu1 python-profiler = different on the 2 machines 2.5.1-0ubuntu1 2.4.4.4-3 python-cheetah 2007-07-30 = 2.0~rc7-1 2007-07-30 = 2.0~rc7-1 Apache 2007-07-30 = 2.2.3-3.2build1 2007-07-30 = 2.2.3-3.2build1 libapache-mod-python 2007-07-30 = 2.2.7.11-2 2.5.1 /usr/lib/python2.5/site-packages = not the same TuboGears-1.0.3.2-py2.5.egg Turbojson-1.1-py2.5.egg TurboGears-1.0.2.2-py2.5.egg Turbojson-1.0-py2.5.egg /usr/local/lib/python2.5/site-packages TurboGears-1.0.2.2-py2.5.egg Turbojson-1.0-py2.5.egg ( empty directory ) Turbogears via kubuntu python-turbogears 1.0-1 ( python-turnogears is not installed, version 1.0-1 is proposed ) /usr/lib/python2.5 /site-packages/easy_install.pth import sys; sys.__plen = len(sys.path) ./TurboJson-1.1-py2.5.egg ./TurboGears-1.0.3.2-py2.5.egg ./TurboKid-1.0.2-py2.5.egg ./kid-0.9.6-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new) import sys; sys.__plen = len(sys.path) ./TurboGears-1.0.2.2-py2.5.egg ./Cheetah-2.0rc8-py2.5-linux-i686.egg ./configobj-4.4.0-py2.5.egg ./DecoratorTools-1.4-py2.5.egg ./RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg ./FormEncode-0.7.1-py2.5.egg ./PasteScript-1.3.4-py2.5.egg ./elementtree-1.2.6_20050316-py2.5.egg ./simplejson-1.7.1-py2.5.egg ./CherryPy-2.2.1-py2.5.egg ./TurboKid-1.0.1-py2.5.egg ./TurboCheetah-0.9.5-py2.5.egg ./TurboJson-1.0-py2.5.egg ./PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg ./PasteDeploy-1.3-py2.5.egg ./Paste-1.3-py2.5.egg ./kid-0.9.5-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new) /usr/local/lib/python2.5 /site-packages/easy_install.pth import sys; sys.__plen = len(sys.path) ./TurboGears-1.0.2.2-py2.5.egg ./SQLObject-0.9.0-py2.5.egg ./DecoratorTools-1.4-py2.5.egg ./FormEncode-0.7.1-py2.5.egg ./TurboKid-1.0.1-py2.5.egg ./TurboCheetah-0.9.5-py2.5.egg ./TurboJson-1.0-py2.5.egg ./kid-0.9.5-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new) ( empty : no file easy_install.pth ) /usr/bin/tg-admin #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.3.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.3.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.3.2', 'console_scripts', 'tg- admin')() ) ( many files but no tg-admin ) /usr/local/bin/tg-admin #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.2.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.2.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg- admin')() ) #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.2.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.2.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg- admin')() ) as well several other related files as " cheetah ", "kid ", ..... /usr/local/lib/python2.5 /site-packages/python-support.pth /var/lib/python-support/python2.5 gtk-2.0 /var/lib/python-support/python2.5/gtk-2.0 /var/lib/python-support/python2.5 gtk-2.0 /var/lib/python-support/python2.5/gtk-2.0 /usr/local/lib/python2.5 /site-packages/setuptools.pth setuptools-0.6c5.egg-info setuptols-0.6c5.egg-info /usr/share/pycentral/ python-setuptools/site-packages/setuptools.pth setuptools-0.6c5.egg-info setuptols-0.6c5.egg-info tg-admin info OverFlowError = OK python-turbojson (via kubuntu-7.04) 2007-07-30 = 0.9.5-1 2007-07-30 = 0.9.5-1 python-tubokid (via kubuntu-7.04) 2007-07-30 = 0.9.9-1 2007-07-30 = 0.9.9-1 python-cherrypy 2007-07-30 = 2.2.1-3unbuntu1 2007-07-30 = 2.2.1-3unbuntu1 sqlite 2007-07-30 = 2.8.17-1build2 --- python-sqlite 2007-07-30 = 1.0.1-5ubuntu2 2007-07-30 = 1.0.1-5ubuntu2 python-psycopg 2007-07-30 = 1.1.21-13ubuntu1 2007-07-30 = 1.1.21-13ubuntu1 python-pygresql 2007-07-30 = 1:3.8.1-1ubuntu1 2007-07-30 = 1:3.8.1-1ubuntu1 History : 24 Jul 2007 Alex.schenkman: tg-admin quickstart failure: Cheetah parser error 29 Jul 2007 Christopher Arndt: look at the version of tg-admin: [EMAIL PROTECTED]:~$ which -a tg-admin /usr/local/bin/tg-admin # (the first occurence in the current path) /usr/bin/tg-admin Content of tg-admin: /usr/local/bin/tg-admin: ( = the current one): #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.2.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.2.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg- admin')() ) /usr/bin/tg-admin: ( = the good one) #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.3.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.3.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.3.2', 'console_scripts', 'tg- admin')() ) Locate TurboGears-1.0.3.2: in " /usr/lib/python2.5/site-packages/TurboGears-1.0.3.2-py2.5.egg/ turbogears " The same directory that contains the TurboGears egg for that version should contain an egg for " Cheetah >= 2.0rc7 " If it doesn't, be sure to install TurboGears with the instructions from " http://docs.turbogears.org/1.0/InstallUbuntu " 6 Aug 2007 Chris shadowfox : ... 8 Aug 2007 new installation on "Desktop es01": Save the previous version of this report as Old/index-Installation- Turbogears-V3.5.html Remove unecessary files: The egg in " /usr/lib/python2.5/site-packages/ " and in " /usr/local/ lib/python2.5/site-packages/ " Both easy-install.pth New installation with the --prefix /usr/local: Install essential packages: [EMAIL PROTECTED]:~$ sudo apt-get install gcc libc6-dev build-essential python-dev python-setuptools python-profiler Password: Reading package lists... Done Building dependency tree Reading state information... Done gcc is already the newest version. libc6-dev is already the newest version. build-essential is already the newest version. python-dev is already the newest version. python-dev set to manual installed. python-setuptools is already the newest version. python-setuptools set to manual installed. python-profiler is already the newest version. The following packages were automatically installed and are no longer required: apache2 apache2.2-common apache2-mpm-worker Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. easy_install : [EMAIL PROTECTED]:~$ sudo easy_install --prefix /usr/local -f http://www.turbogears.org/download/index.html TurboGears[standard] Searching for TurboGears[standard] Reading http://www.turbogears.org/download/index.html Best match: TurboGears 1.0.3.2 Downloading http://files.turbogears.org/eggs/TurboGears-1.0.3.2-py2.5.egg Processing TurboGears-1.0.3.2-py2.5.egg creating /usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg Extracting TurboGears-1.0.3.2-py2.5.egg to /usr/local/lib/python2.5/ site-packages Adding TurboGears 1.0.3.2 to easy-install.pth file Installing tg-admin script to /usr/local/bin Installed /usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg Reading http://files.turbogears.org/eggs/ Processing dependencies for TurboGears[standard] Searching for SQLObject>=0.8,<0.10dev Reading http://cheeseshop.python.org/pypi/SQLObject/ Reading http://cheeseshop.python.org/pypi/SQLObject/0.9.1 Reading http://sqlobject.org/devel/ Reading http://cheeseshop.python.org/pypi/SQLObject/0.8.5 Reading http://sqlobject.org/ Reading http://cheeseshop.python.org/pypi/SQLObject/0.7.8 Reading http://sqlobject.org Best match: SQLObject 0.9.1 Downloading http://pypi.python.org/packages/2.5/S/SQLObject/SQLObject-0.9.1-py2.5.egg#md5=5c52b70a222ba25004cec265ffef2d12 Processing SQLObject-0.9.1-py2.5.egg creating /usr/local/lib/python2.5/site-packages/SQLObject-0.9.1- py2.5.egg Extracting SQLObject-0.9.1-py2.5.egg to /usr/local/lib/python2.5/site- packages Adding SQLObject 0.9.1 to easy-install.pth file Installing sqlobject-admin script to /usr/local/bin Installed /usr/local/lib/python2.5/site-packages/SQLObject-0.9.1- py2.5.egg Searching for DecoratorTools>=1.4 Reading http://cheeseshop.python.org/pypi/DecoratorTools/ Reading http://cheeseshop.python.org/pypi/DecoratorTools Reading http://cheeseshop.python.org/pypi/DecoratorTools/1.5 Best match: DecoratorTools 1.5 Downloading http://pypi.python.org/packages/2.5/D/DecoratorTools/DecoratorTools-1.5-py2.5.egg#md5=c3b9e99b6a42de79b49fb1b19f64a4b6 Processing DecoratorTools-1.5-py2.5.egg Moving DecoratorTools-1.5-py2.5.egg to /usr/local/lib/python2.5/site- packages Adding DecoratorTools 1.5 to easy-install.pth file Installed /usr/local/lib/python2.5/site-packages/DecoratorTools-1.5- py2.5.egg Searching for FormEncode>=0.7.1 Reading http://cheeseshop.python.org/pypi/FormEncode/ Reading http://formencode.org Reading http://cheeseshop.python.org/pypi/FormEncode/0.7.1 Best match: FormEncode 0.7.1 Downloading http://pypi.python.org/packages/source/F/FormEncode/FormEncode-0.7.1.tar.gz#md5=86ee82f7e808d2b7973b13a96bb740cc Processing FormEncode-0.7.1.tar.gz Running FormEncode-0.7.1/setup.py -q bdist_egg --dist-dir /tmp/ easy_install-HUbRiL/FormEncode-0.7.1/egg-dist-tmp-nXgpFd warning: no files found matching '*.py' under directory '.' warning: no files found matching '*.html' under directory 'docs' no previously-included directories found matching '**/.svn' zip_safe flag not set; analyzing archive contents... formencode.fields: module references __file__ formencode.util.doctest24: module references __file__ formencode.util.doctest24: module MAY be using inspect.getsourcefile Adding FormEncode 0.7.1 to easy-install.pth file Installed /usr/local/lib/python2.5/site-packages/FormEncode-0.7.1- py2.5.egg Searching for TurboKid>=1.0.2 Best match: TurboKid 1.0.2 Downloading http://files.turbogears.org/eggs/TurboKid-1.0.2-py2.5.egg Processing TurboKid-1.0.2-py2.5.egg creating /usr/local/lib/python2.5/site-packages/TurboKid-1.0.2- py2.5.egg Extracting TurboKid-1.0.2-py2.5.egg to /usr/local/lib/python2.5/site- packages Adding TurboKid 1.0.2 to easy-install.pth file Installed /usr/local/lib/python2.5/site-packages/TurboKid-1.0.2- py2.5.egg Searching for TurboCheetah>=0.9.5 Reading http://cheeseshop.python.org/pypi/TurboCheetah/ Reading http://www.turbogears.org/docs/plugins/template.html Reading http://www.turbogears.org/download/ Reading http://cheeseshop.python.org/pypi/TurboCheetah/0.9.5 Best match: TurboCheetah 0.9.5 Downloading http://pypi.python.org/packages/source/T/TurboCheetah/TurboCheetah-0.9.5.tar.gz#md5=52e12130302a218a8e3b925447041be4 Processing TurboCheetah-0.9.5.tar.gz Running TurboCheetah-0.9.5/setup.py -q bdist_egg --dist-dir /tmp/ easy_install-KNsNAw/TurboCheetah-0.9.5/egg-dist-tmp-kRi_Av Adding TurboCheetah 0.9.5 to easy-install.pth file Installed /usr/local/lib/python2.5/site-packages/TurboCheetah-0.9.5- py2.5.egg Searching for TurboJson>=0.9.9 Best match: TurboJson 1.0 Downloading http://files.turbogears.org/eggs/TurboJson-1.0.tar.gz Processing TurboJson-1.0.tar.gz Running TurboJson-1.0/setup.py -q bdist_egg --dist-dir /tmp/ easy_install-S8ojOh/TurboJson-1.0/egg-dist-tmp-i82Xhp Adding TurboJson 1.0 to easy-install.pth file Installed /usr/local/lib/python2.5/site-packages/TurboJson-1.0- py2.5.egg Searching for kid>=0.9.6 Reading http://cheeseshop.python.org/pypi/kid/ Reading http://cheeseshop.python.org/pypi/kid/0.9.6 Best match: kid 0.9.6 Downloading http://pypi.python.org/packages/2.5/k/kid/kid-0.9.6-py2.5.egg#md5=3fc089344a884e7fc954b239a32c649f Processing kid-0.9.6-py2.5.egg creating /usr/local/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg Extracting kid-0.9.6-py2.5.egg to /usr/local/lib/python2.5/site- packages Adding kid 0.9.6 to easy-install.pth file Installing kidc script to /usr/local/bin Installing kid script to /usr/local/bin Installed /usr/local/lib/python2.5/site-packages/kid-0.9.6-py2.5.egg tg-admin info : [EMAIL PROTECTED]:~$ tg-admin info /var/lib/python-support/python2.5/simplejson/scanner.py:6: DeprecationWarning: The sre module is deprecated, please import re. from sre import VERBOSE, MULTILINE, DOTALL Traceback (most recent call last): File "/usr/local/bin/tg-admin", line 8, in <module> load_entry_point('TurboGears==1.0.3.2', 'console_scripts', 'tg- admin')() File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 236, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2097, in load_entry_point return ep.load() File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1830, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/__init__.py", line 6, in <module> from turbogears.controllers import expose, flash, validate, redirect, \ File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/controllers.py", line 12, in <module> from turbogears import view, database, errorhandling, config File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/view/__init__.py", line 1, in <module> from turbogears.view.base import * File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/view/base.py", line 15, in <module> from turbogears.i18n import i18n_filter, get_locale File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/i18n/__init__.py", line 5, in <module> from turbogears.i18n.tg_gettext import gettext, ngettext, install, \ File "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.3.2- py2.5.egg/turbogears/i18n/tg_gettext.py", line 4, in <module> from turbojson.jsonify import jsonify File "/usr/local/lib/python2.5/site-packages/TurboJson-1.0-py2.5.egg/ turbojson/jsonify.py", line 26, in <module> 'isinstance(obj, datetime.datetime) or ' File "/var/lib/python-support/python2.5/dispatch/functions.py", line 690, in when return self._decorate(cond) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 577, in _decorate cond = self.parseRule(cond,frame=frame) or cond File "<string>", line 10, in parseRule File "/var/lib/python-support/python2.5/dispatch/functions.py", line 440, in parseRule return self.parse(rule, frame.f_locals, frame.f_globals) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 323, in parse from dispatch.predicates import CriteriaBuilder File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 708, in <module> "expr in Call and expr.function is isinstance" File "/var/lib/python-support/python2.5/dispatch/functions.py", line 690, in when return self._decorate(cond) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 577, in _decorate cond = self.parseRule(cond,frame=frame) or cond File "<string>", line 10, in parseRule File "/var/lib/python-support/python2.5/dispatch/functions.py", line 440, in parseRule return self.parse(rule, frame.f_locals, frame.f_globals) File "/var/lib/python-support/python2.5/dispatch/functions.py", line 326, in parse return parse_expr(expr_string,builder) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 383, in parse_expr return build(builder, parser.expr(expr).totuple(1)[1]) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 378, in build return production[nodelist[0]](builder,nodelist) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 51, in com_binary return getattr(builder,opname)(items) File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 609, in And return reduce(operator.and_,[build(self,expr) for expr in items]) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 378, in build return production[nodelist[0]](builder,nodelist) File "/var/lib/python-support/python2.5/dispatch/ast_builder.py", line 111, in comparison return builder.Compare(nodelist[1], results) File "/var/lib/python-support/python2.5/dispatch/predicates.py", line 595, in Compare right = ICriterion(Pointer(right.value)) File "/var/lib/python-support/python2.5/dispatch/strategy.py", line 541, in __new__ self = int.__new__(cls,id(ob)) OverflowError: long int too large to convert to int Again the same OverFlowError: New situation after the second installation: Installation and versions : previous situation on 6 aug 2007 : Desktop es01 Laptop es04 Environment Kubuntu 7.04 and updated each time as proposed 2007-07-60 = Kubuntu 7.04 and updated Python 2.5.1, May 2 2007 version 2.4 also still available 2007-07-30 = 2.5.1, May 2 2007 gcc (found via adept of kubuntu) 4:4.1.2.-1ubuntu1 4:4.1.2.-1ubuntu1 lib6-dev (found via adept of kubuntu) 2.5-0ubuntu14 2.5-0ubuntu14 build-essential (found via adept of kubuntu) 11.3 11.3 python-dev (found via adept of kubuntu) 2.5.1-0ubuntu3 2.5.1-0ubuntu3 python-setuptools (found via adept of kubuntu) 0.6c5-1ubuntu1 0.6c5-1ubuntu1 python-profiler (found via adept of kubuntu) = different on the 2 machines 2.5.1-0ubuntu1 2.4.4.4-3 python-cheetah (found via adept of kubuntu) 2.0~rc7-1 2007-07-30 = 2.0~rc7-1 apache2 (found via adept of kubuntu) 2.2.3-3.2build1 2007-07-30 = 2.2.3-3.2build1 libapache-mod-python (found via adept of kubuntu) 2.2.7.11-2 2.5.1 /usr/lib/python2.5/site-packages = not the same ( no TuboGears ) ( no Turbojson ) TurboGears-1.0.2.2-py2.5.egg Turbojson-1.0-py2.5.egg /usr/local/lib/python2.5/site-packages FormEncode-0.7.1-py2.5.egg kid-0.9.6-py2.5.egg SQLObject-0.9.1-py2.5.egg TurboCheetah-0.9.5-py2.5.egg TurboGears-1.0.3.2-py2.5.egg Turbojson-1.0-py2.5.egg TurboKid-1.0.2-py2.5.egg DecoratorTools-1.5-py2.5.egg (in Archive Zip format ) easy_install.pth ( empty directory ) Turbogears (found via adept of kubuntu) python-turbogears 1.0-1 python-turbojson 0.9.5-1 python-turbokid 0.9.9-1 ( python-turnogears is not installed, version 1.0-1 is proposed ) /usr/lib/python2.5 /site-packages/easy_install.pth ( no file easy_install.pth ) import sys; sys.__plen = len(sys.path) ./TurboGears-1.0.2.2-py2.5.egg ./Cheetah-2.0rc8-py2.5-linux-i686.egg ./configobj-4.4.0-py2.5.egg ./DecoratorTools-1.4-py2.5.egg ./RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg ./FormEncode-0.7.1-py2.5.egg ./PasteScript-1.3.4-py2.5.egg ./elementtree-1.2.6_20050316-py2.5.egg ./simplejson-1.7.1-py2.5.egg ./CherryPy-2.2.1-py2.5.egg ./TurboKid-1.0.1-py2.5.egg ./TurboCheetah-0.9.5-py2.5.egg ./TurboJson-1.0-py2.5.egg ./PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg ./PasteDeploy-1.3-py2.5.egg ./Paste-1.3-py2.5.egg ./kid-0.9.5-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new) /usr/local/lib/python2.5 /site-packages/easy_install.pth import sys; sys.__plen = len(sys.path) ./TurboGears-1.0.3.2-py2.5.egg ./SQLObject-0.9.1-py2.5.egg ./DecoratorTools-1.5-py2.5.egg ./FormEncode-0.7.1-py2.5.egg ./TurboKid-1.0.2-py2.5.egg ./TurboCheetah-0.9.5-py2.5.egg ./TurboJson-1.0-py2.5.egg ./kid-0.9.6-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p +len(new) ( empty : no file easy_install.pth ) /usr/bin/tg-admin ( many files but no tg-admin ) ( many files but no tg-admin ) /usr/local/bin/tg-admin #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.3.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.3.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.3.2', 'console_scripts', 'tg- admin')() ) and well in the good path : [EMAIL PROTECTED]:~$ which tg-admin /usr/local/bin/tg-admin [EMAIL PROTECTED]:~$ #!/usr/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'TurboGears==1.0.2.2','console_scripts','tg-admin' __requires__ = 'TurboGears==1.0.2.2' import sys from pkg_resources import load_entry_point sys.exit( load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg- admin')() ) as well several other related files as " cheetah ", "kid ", ..... /usr/local/lib/python2.5 /site-packages/python-support.pth ( no file python-support.pth ) /var/lib/python-support/python2.5 gtk-2.0 /var/lib/python-support/python2.5/gtk-2.0 /usr/local/lib/python2.5 /site-packages/setuptools.pth ( no file setuptools.pth ) setuptols-0.6c5.egg-info /usr/share/pycentral/ python-setuptools/site-packages/setuptools.pth setuptools/ setuptools.egg-info/ setuptols-0.6c5.egg-info setuptols-0.6c5.egg-info tg-admin info OverFlowError = OK Create a project: Creation of a SVN environment: ............. " tg-admin quickstart " project name, package name, need identity ? port if necessary, in " dev.csg " : " server.socket_port=3000 " Database: Database location in in " dev.csg ": If SQLite: ' sqlobject.dburi="sqlite:///home/etienne/TBG/project/project.db" ' or Create first the Class and let make the database Edit database class in the "model.py " file: " class MyClass(SQLObject): user_name = StringCol( ) ......... " Create the database: " tg-admin sql create " inside the directory where model.py is located. or Start from an existing database and let make the class: ........... or save and retrieve Python Objects: .... Test the database using "tg-admin shell " Controller in the file "controllers.py ": " class Root(controllers.RootController): @expose(template="project_name.templates.index) def index(self, ....): ...... return ..... " Edit the templates: see " templates/xxxxxx.kid ". kid telplates are XML documents with special namaspaces attributes. Use the server: Start the service: " python start-projectxxxx.py " inside the project directory. Use: " http://localhost:3000/definedcommand " tg-admin: info : tg-admin toolbox: This open Firefox on port 7654. CatWalk: Model Browser and update SQLObjects instances: see exame page 63 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

