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/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/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/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/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/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/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/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/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
If anyone has any ideas I'd like to hear them as I'd like to use the
latest Python for other projects.
Thanks,
Doug Farrell
You certainly need to upgrade RuleDispatch using the latest one provided
on this page:
http://turbogears.org/download/filelist.html
Normally if you used http://turbogears.org/download/tgsetup.py to
install turbogears it should have installed this...
Regards,
Florent Aide.
Thanks for the advice, I'll give that a try this week and report back
with how it went. I did actually install TurboGears with the
tgsetup.py script, and running tg-admin info after that generated the
error I included in my original post.
Thanks again for your reply,
Doug
Paulino
I used before TG previous version on Ubuntu previous version without
problems.
Any help ?
thks,
julien
try to remove RuleDispatch and to fetch & install the one from the D/L
page.
Florent.
On May 18, 10:22 pm, Florent Aide <florent.a...@gmail.com> wrote:
> Le jeudi 17 mai 2007 à 12:46 +0000, julien.silvers...@gmail.com a
the command tg-admin info responds fine.
But I've still this message :
/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
Merci
julien
On May 18, 10:22 pm, Florent Aide <florent.a...@gmail.com> wrote:
> Le jeudi 17 mai 2007 à 12:46 +0000, julien.silvers...@gmail.com a
Excellent :)
[...]
> But I've still this message :
>
> /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
I don't see this message myself, could you give us the simplejson
version you are using ?
Regards,
Florent.
I had the same problem and followed the suggested solutions. At the
end I encountered the exactly identical warning message in Julien's
post. Besides when I used "tg-admin quickstart" and after provided all
answer to its simple questions, I got all these error messages (lots
of):
File "/usr/lib/python2.5/site-packages/paste/script/copydir.py",
line 315, in __getitem__
value = eval(options[-1], dict(self))
File "/usr/lib/python2.5/site-packages/paste/script/copydir.py",
line 315, in __getitem__
value = eval(options[-1], dict(self))
File "/usr/lib/python2.5/site-packages/paste/script/copydir.py",
line 315, in __getitem__
value = eval(options[-1], dict(self))
File "/usr/lib/python2.5/site-packages/paste/script/copydir.py",
line 315, in __getitem__
value = eval(options[-1], dict(self))
File "/usr/lib/python2.5/site-packages/paste/script/copydir.py",
line 315, in __getitem__
value = eval(options[-1], dict(self))
At last I fixed it by:
1) Build my own python (Download the python 2.5.1 source tarball.
Enable zlib in the config and then build)
2) Download the tgsetup.py and run it to install Turbogears
3) For some reason, simplejson is not installed. If so, run
"easy_install simplejson"
Sounds like extreme measures? :-)
Cheers, Anthony
I use * simplejson 1.4
I still have the same warning :
$ 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
thks for your help
julien
On 19 mai, 15:15, Florent Aide <florent.a...@gmail.com> wrote:
> Le vendredi 18 mai 2007 à 22:02 +0000, julien.silvers...@gmail.com a
hummm... I use simplejson-1.7.1
you should try to:
easy_install -UZ simplejson
cheers,
Florent.
For me this help solves everything.
Merci beaucoup,
julien
ps: existe-il un groupe d'utilisateur de TG en France/Paris ?
On 24 mai, 00:36, Florent Aide <florent.a...@gmail.com> wrote:
> Le mercredi 23 mai 2007 à 21:28 +0000, julien.silvers...@gmail.com a
No there is no TG User Group in France (to my knowledge) but what do you
thing of creating one ? I'd gladely participate and why not do some
presentations and hand's on...
If the idea interests you please contact me off-list and we'll set
something up :-)
Cheers,
Florent.
Hello,
I'm having the same problem on Ubuntu Feisty...
I uses the " http://turbogears.org/download/tgsetup.py " installation
script...
Removed the RuleDispatch files and dir's and ran the script again...
Now I get this code:
[code]
$ tg-admin info
[/code]
Am I doing somthing wrong or missing somthing here??...
Thx in advance...
>
> Am I doing somthing wrong or missing somthing here??...
>
> Thx in advance...
Not sure what the problem is but could you try to:
easy_install -UZ simplejson
Cheers,
Florent.
/var/lib/python-support/python2.5/ is the directory where Ubuntu
installs Python modules from deb packages, so this must have been left
over from a distribution package. easy_install will normally not install
there but in /usr/lib/python2.X/site-packages or
/usr/local/lib/python2.X/site-packages.
Chris