Problem with install with Python 2.5.1c1 on Ubuntu

14 views
Skip to first unread message

writeson

unread,
May 12, 2007, 2:49:10 PM5/12/07
to TurboGears
Hi,
I'm running Ubunut Fiesty Fawn and tried to install TurboGears with
the Python.2.5.1c1 version of Python that is the default on Ubunto.
The install seemed to go fine, but when I ran tg-admin info it gave me
a long exception trace, which I include here:

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

Florent Aide

unread,
May 12, 2007, 3:22:01 PM5/12/07
to turbo...@googlegroups.com
Le samedi 12 mai 2007 à 11:49 -0700, writeson a écrit :
> Hi,
> I'm running Ubunut Fiesty Fawn and tried to install TurboGears with
> the Python.2.5.1c1 version of Python that is the default on Ubunto.
> The install seemed to go fine, but when I ran tg-admin info it gave me
> a long exception trace, which I include here:

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.

writeson

unread,
May 14, 2007, 10:43:32 AM5/14/07
to TurboGears
Florent,

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

unread,
May 15, 2007, 8:00:40 AM5/15/07
to TurboGears
Ensure you have the Python-dev package installed


Paulino

Paulino

unread,
May 14, 2007, 7:36:52 PM5/14/07
to TurboGears
Ensure you have the python-dev package installed

Paulino

unread,
May 15, 2007, 8:00:40 AM5/15/07
to TurboGears

julien.s...@gmail.com

unread,
May 17, 2007, 8:46:56 AM5/17/07
to TurboGears
I run the tgsetup couple of times, reinstalled python-dev package.
But I still have the same error.

I used before TG previous version on Ubuntu previous version without
problems.

Any help ?

thks,

julien

Florent Aide

unread,
May 18, 2007, 4:22:28 PM5/18/07
to turbo...@googlegroups.com
Le jeudi 17 mai 2007 à 12:46 +0000, julien.s...@gmail.com a
écrit :

> I run the tgsetup couple of times, reinstalled python-dev package.
> But I still have the same error.

try to remove RuleDispatch and to fetch & install the one from the D/L
page.

Florent.

julien.s...@gmail.com

unread,
May 18, 2007, 5:52:31 PM5/18/07
to TurboGears
Thks for your answer.
But can you tell me what is RuleDispatch ?
DL it form the TG DL page ?
thks

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

julien.s...@gmail.com

unread,
May 18, 2007, 6:02:55 PM5/18/07
to TurboGears
Thks, sorry I've been a little bit lazy.
Thks for you answer it fixes my problem.
After the commande :
easy_install http://files.turbogears.org/eggs/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg

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

Florent Aide

unread,
May 19, 2007, 9:15:14 AM5/19/07
to turbo...@googlegroups.com
Le vendredi 18 mai 2007 à 22:02 +0000, julien.s...@gmail.com a
écrit :

> Thks, sorry I've been a little bit lazy.
> Thks for you answer it fixes my problem.

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.

AK@SYD

unread,
May 20, 2007, 1:45:22 PM5/20/07
to TurboGears
Hi, all,

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

julien.s...@gmail.com

unread,
May 23, 2007, 5:28:36 PM5/23/07
to TurboGears
Hi,

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

Florent Aide

unread,
May 23, 2007, 6:36:51 PM5/23/07
to turbo...@googlegroups.com
Le mercredi 23 mai 2007 à 21:28 +0000, julien.s...@gmail.com a
écrit :

> Hi,
>
> I use * simplejson 1.4
>

hummm... I use simplejson-1.7.1

you should try to:

easy_install -UZ simplejson

cheers,

Florent.

julien.s...@gmail.com

unread,
May 23, 2007, 6:44:03 PM5/23/07
to TurboGears
Formidable,

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

Florent Aide

unread,
May 23, 2007, 7:03:25 PM5/23/07
to turbo...@googlegroups.com
Le mercredi 23 mai 2007 à 22:44 +0000, julien.s...@gmail.com a
écrit :

> Formidable,
>
> For me this help solves everything.
> Merci beaucoup,
>
> julien
>
> ps: existe-il un groupe d'utilisateur de TG en France/Paris ?
>

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.

Hoskeu

unread,
Jun 10, 2007, 7:25:26 AM6/10/07
to TurboGears
On 18 mei, 22:22, Florent Aide <florent.a...@gmail.com> wrote:
> Le jeudi 17 mai 2007 à 12:46 +0000, julien.silvers...@gmail.com a
> écrit :

>
> try to remove RuleDispatch and to fetch & install the one from the D/L
> page.
>
> 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...

Florent Aide

unread,
Jun 12, 2007, 5:06:09 PM6/12/07
to turbo...@googlegroups.com
Le dimanche 10 juin 2007 à 04:25 -0700, Hoskeu a écrit :

>
> 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.

de...@chargedmultimedia.com

unread,
Jul 4, 2007, 11:07:58 PM7/4/07
to TurboGears
I had a very similar problem that could not be resolved with a simple
install of RuleDispatch. It turned out that removing and re-installing
in the site-packages was not enough. When I deleted the folder:
/var/lib/python-support/python2.5/dispatch
the problem resolved itself. Strange huh? I think it may have come
from running a dev version of ruledispatch, but I am not sure.

Christopher Arndt

unread,
Jul 5, 2007, 11:16:47 AM7/5/07
to turbo...@googlegroups.com
de...@chargedmultimedia.com schrieb:

> I had a very similar problem that could not be resolved with a simple
> install of RuleDispatch. It turned out that removing and re-installing
> in the site-packages was not enough. When I deleted the folder:
> /var/lib/python-support/python2.5/dispatch
> the problem resolved itself. Strange huh? I think it may have come
> from running a dev version of ruledispatch, but I am not sure.

/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

Reply all
Reply to author
Forward
0 new messages