26 July 2007: tg-admin not working in Kubuntu 7.04 environment :
Turbogears Installation via Kubuntu 7.04 Adept procedure,
including Python version 2.5.1
" easy_install -UZ turbojson " has been installed in admin mode, but
not improvement of the situation.
" tg-admin quickstart " give an error :
" OverflowError: long int too large to convert to int "
Here the full message :
=================================================
[EMAIL PROTECTED]:~/TBG$ tg-admin quickstart
/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
[EMAIL PROTECTED]:~/TBG$
=================================================
On Jul 2, 10:44 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> Could you try to update TurboJson like this:
>
> easy_install -UZ turbojson
>
> this should solve your issue if I remember correctly...
>
> Regards,
> Florent.
>
> On 6/30/07, saliez <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am a beginner trying to isntall Turbogears in aKubuntuversion 7.04
> > environment.
>
> > "tg-admin info" gives an error :
> > /var/lib/python-support/python2.5/simplejson/scanner.py:6:
> > DeprecationWarning: The sre module is deprecated, please import re.
>
> > If I good understand " sre " should be replaced be " re ", but I have
> > no idea of what it is, where I could find it nor how to install ?
>
> > Whichinstallationmode is working ?
>
> > - By means ofKUBUNTUadept installations.
> > Could be better for the future automatic upgrades managed byKubuntu?
>
> > - By means of instrations in "http://docs.turbogears.org/1.0/InstallUbuntu
> > "
> > Could be better for issues related to versions and dependecies
> > management ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---