Error on submodal

5 views
Skip to first unread message

GinTon

unread,
Apr 12, 2007, 3:08:35 PM4/12/07
to tblog
I've well installed TG ( tg-admin info ) works correct but when I
trying to install tblog I get an error in submodal

easy_install --script-dir /usr/local/bin -UZ turboblog

-----------------------------

Using /usr/lib/python2.4/site-packages/turboblog-1.0.2rc5-py2.4.egg
Processing dependencies for turboblog
Searching for submodal>=1.4-2
Reading http://www.python.org/pypi/submodal/
Reading http://gabrito.com/post/enhancements-to-submodal
Reading http://www.python.org/pypi/submodal/1.5
Best match: submodal 1.5
Downloading http://cheeseshop.python.org/packages/source/s/submodal/submodal-1.5.tar.gz#md5=4e08adf4b4275723c69288c0c6e0aa19
Processing submodal-1.5.tar.gz
Running submodal-1.5/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-7ymdRG/submodal-1.5/egg-dist-tmp-d0bFvK
Traceback (most recent call last):
File "/usr/bin/easy_install", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 1588, in main
with_ei_usage(lambda:
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 1577, in with_ei_usage
return f()
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 1592, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "distutils/core.py", line 149, in setup
File "distutils/dist.py", line 946, in run_commands
File "distutils/dist.py", line 966, in run_command
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 476, in install_item
self.process_distribution(spec, dists[0], deps, "Using")
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 518, in process_distribution
distros = WorkingSet([]).resolve(
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 481,
in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 717,
in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 729,
in obtain
return installer(requirement)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 471, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.4/site-packages/setuptools/command/
easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line
26, in run_setup
DirectorySandbox(setup_dir).run(
File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line
63, in run
return func()
File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line
29, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 2, in ?
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/__init__.py", line 6, in ?
from turbogears.controllers import expose, flash, validate,
redirect, \
File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
turbogears/controllers.py", line 8, in ?
from dispatch import generic, strategy, functions
ImportError: No module named dispatch

-----------------------------

floren...@gmail.com

unread,
Apr 12, 2007, 4:21:49 PM4/12/07
to tblog
Hi,

jorge did some upgrade to submodal and bumped version to 1.5 and it
seems this version is not ready for prime time yet. I'll see with him
to fix the problem ASAP.

In the mean time try downloading http://cheeseshop.python.org/packages/source/s/submodal/submodal-1.4.tar.gz
manually and just :

easy_install ./submodal-1.4.tar.gz

it should work around the problem and let you use TB.

Cheers,

Florent.

On Apr 12, 9:08 pm, "GinTon" <jonas....@googlemail.com> wrote:
> I've well installed TG ( tg-admin info ) works correct but when I
> trying to install tblog I get an error in submodal
>
> easy_install --script-dir /usr/local/bin -UZ turboblog
>
> -----------------------------
>
> Using /usr/lib/python2.4/site-packages/turboblog-1.0.2rc5-py2.4.egg
> Processing dependencies for turboblog
> Searching for submodal>=1.4-2

[...]

GinTon

unread,
Apr 12, 2007, 4:43:11 PM4/12/07
to tblog
I get the same error with submodal-1.4:

ImportError: No module named dispatch


On 12 abr, 21:21, "florent.a...@gmail.com" <florent.a...@gmail.com>
wrote:


> Hi,
>
> jorge did some upgrade to submodal and bumped version to 1.5 and it
> seems this version is not ready for prime time yet. I'll see with him
> to fix the problem ASAP.
>

> In the mean time try downloadinghttp://cheeseshop.python.org/packages/source/s/submodal/submodal-1.4....

Florent Aide

unread,
Apr 13, 2007, 3:52:23 AM4/13/07
to tb-di...@googlegroups.com
Ok,

it seems you are missing the dispatch module from ruledispatch in your
python distribution. Did you use
http://www.turbogears.org/download/tgsetup.py to install TurboGears ?

Regards,
Florent.

GinTon

unread,
Apr 13, 2007, 7:29:05 AM4/13/07
to tblog
Thanks Florent. It was solved and has been installed with
submodal-1.5.
It looks that the problem was by using the setuptools package from
Ubuntu. I downloaded directly from http://peak.telecommunity.com/dist/ez_setup.py

Now I'm going to playing with tblog. It's a pain that there is a
little community about this project because it seems very interesting.

On 13 abr, 08:52, "Florent Aide" <florent.a...@gmail.com> wrote:
> Ok,
>
> it seems you are missing the dispatch module from ruledispatch in your

> python distribution. Did you usehttp://www.turbogears.org/download/tgsetup.pyto install TurboGears ?
>
> Regards,
> Florent.

Florent Aide

unread,
Apr 13, 2007, 12:17:34 PM4/13/07
to tb-di...@googlegroups.com
On 4/13/07, GinTon <jona...@googlemail.com> wrote:
>
> Thanks Florent. It was solved and has been installed with
> submodal-1.5.
> It looks that the problem was by using the setuptools package from
> Ubuntu. I downloaded directly from http://peak.telecommunity.com/dist/ez_setup.py

Great I should do some tests and specify this in the installation
documentation then :)

It is to note that Jorge also posted some python 2.4 eggs for submodal
following my emails I sent about your issue. I'll definitely need to
test this new submodal 1.5 because Jorge tells its even more beautiful
and it promises to reduce some annoyances from 1.4

I'll look into this during this week-end :)

>
> Now I'm going to playing with tblog. It's a pain that there is a
> little community about this project because it seems very interesting.

Yes indeed. Eli tried in his time to gather people around it but he
was some kind of a precursor. I am trying to gather some small
community around this project and I already encountered some
interested/interesting people out there.

From my counter there has already been some 99 d/l of the eggs since
1.0.2rc5 release which is quite impressive for me! I don't have enough
information to know how many persons use it but it clearly interests
people enough that they'll download and try it at least.

Here is the page were you can look at the d/l counter :

http://www.python.org/pypi/turboblog/1.0.2rc5

I'll release a final 1.0.2 version soon with some more improvements
and fixes and then my main concern is to provide some "plugin based"
skin system.

At the moment there is some stub skin substitution system but it takes
a lot of effort to rewrite each template file just to have a new skin.

The first step is to remove as much python code as possible from the
kid templates (mainly by using widgets)

The next step will be some way to use templates provided by some egg
file or zip file (I am not really clear on this yet, I'll see when I
feel that my cleaning work is nearly done)

I currently have one more big change pending which would enable to
save files to the filesystem instead of the database. (Thanks to Luca
for the patch and argumentation in favor of this solution)

I hope you'll like TB and feel free to look into the svn version and
propose patches ;) I'll welcome any kind of participation with real
interest.

Best regards,
Florent.

Reply all
Reply to author
Forward
0 new messages