Here I have more detailed error messages:
> > Which method did you use? tgsetup.py or plain easy_install? What was the
> > exact install command you used?
>
> On my first try, I installed turbogears using synaptic from ubuntu
> repositories.
> tg-admin info gave that error.
First I Installed turbogears in Feisty via synaptic
Errors after
[EMAIL PROTECTED]:~/tg$ tg-admin
/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/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0', '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 "/var/lib/python-support/python2.5/turbogears/__init__.py",
line 6, in <module>
from turbogears.controllers import expose, flash, validate, redirect, \
File "/var/lib/python-support/python2.5/turbogears/controllers.py",
line 12, in <module>
from turbogears import view, database, errorhandling, config
File "/var/lib/python-support/python2.5/turbogears/view/__init__.py",
line 1, in <module>
from turbogears.view.base import *
File "/var/lib/python-support/python2.5/turbogears/view/base.py",
line 17, in <module>
from turbogears.i18n import i18n_filter, get_locale
File "/var/lib/python-support/python2.5/turbogears/i18n/__init__.py",
line 5, in <module>
from turbogears.i18n.tg_gettext import gettext, ngettext, install,
is_locale_supported, \
File "/var/lib/python-support/python2.5/turbogears/i18n/tg_gettext.py",
line 4, in <module>
from turbojson.jsonify import jsonify
File "/var/lib/python-support/python2.5/turbojson/jsonify.py", line
27, 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
>
> Then I uninstalled TG (again using Synaptic - I am no commandline guru :-)
> and installed exactly following TG docs using easy_install.
> No luck either - same bug.
Somewhere I found suggestion to reinstall RuleDispatch. I tried:
[EMAIL PROTECTED]:~$ sudo easy_install -m RuleDispatch
Searching for RuleDispatch
Reading http://cheeseshop.python.org/pypi/RuleDispatch/
Couldn't find index page for 'RuleDispatch' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for RuleDispatch
error: Could not find suitable distribution for
Requirement.parse('RuleDispatch')
Does it help?
Even if is not easy to find where exactly the bug is, can you please
post workaround?
I mean
sudo easy_install
http://files.turbogears.org/eggs/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg
Thanks!
----
Peter
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---