SchoolTool in Lucid fails to start with pkg_resources.DistributionNotFound: distribute

Bug #562433 reported by Dooitze de Jong on 2010-04-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gediminas Paulauskas
Nominated for 1.7 by Dooitze de Jong

Bug Description

Hello Developers,

I have a problem, after I installed schooltool, it doesn't work on port 7080

Tom Hoffman (tom-hoffman) wrote :

Probably a dupe.

Gediminas Paulauskas (menesis) wrote :

Sorry, that bug is not related at all. But I need a traceback to see why SchoolTool does not start.

please attach part of /var/log/schooltool/paste.log after it stopped working.

Changed in schooltool:
assignee: nobody → Gediminas Paulauskas (menesis)
importance: Undecided → Critical
milestone: none → 1.4.0
status: New → Incomplete
Tom Hoffman (tom-hoffman) wrote :

Sorry about the other spurious bug... I was trying out the new bug reporting functionality in Lucid and played the role of the noob a bit too well.

Traceback: Traceback (most recent call last):
  File "/usr/bin/paster", line 18, in <module>
  File "/usr/lib/pymodules/python2.6/paste/script/", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/pymodules/python2.6/paste/script/", line 123, in invoke
    exit_code =
  File "/usr/lib/pymodules/python2.6/paste/script/", line 218, in run
    result = self.command()
  File "/usr/lib/pymodules/python2.6/paste/script/", line 274, in command
    relative_to=base, global_conf=vars)
  File "/usr/lib/pymodules/python2.6/paste/script/", line 308, in loadserver
    relative_to=relative_to, **kw)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 210, in loadserver
    return loadobj(SERVER, uri, name=name, **kw)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 224, in loadobj
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 248, in loadcontext
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 409, in get_context
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 431, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 361, in get_context
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 248, in loadcontext
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 285, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 561, in get_context
    object_type, name=name)
  File "/usr/lib/pymodules/python2.6/paste/deploy/", line 581, in find_egg_entry_point
  File "/usr/lib/python2.6/dist-packages/", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute

Piotr Ożarowski (piotr) wrote :

install python-setuptools >= 0.6.4-1

Dooitze de Jong (dooitze) wrote :

So there was an wrong depencies document?

Gediminas Paulauskas (menesis) wrote :

OK so the same traceback. This is, I believe, a bug in python-pkg-resources package, see LP: #563060

A solution is
sudo apt-get install python-setuptools

And I will see where do I add this as dependency if the mentioned bug is not fixed.

Changed in schooltool:
status: Incomplete → In Progress
Dooitze de Jong (dooitze) wrote :

I doesn't help

2010/4/14 Dooitze de Jong <email address hidden>:
> I doesn't help

Have you started schooltool again?
sudo /etc/init.d/schooltool-2009 start

Now, it works
With pythone-setuptools

Tom Hoffman (tom-hoffman) wrote :

Remember to start the server: sudo /etc/init.d/schooltool-2009 start

Works for me.

Tom Hoffman (tom-hoffman) wrote :

Also, if this bug is going to hang around waiting for a fix in another package, we should send out an email to the schooltoolers list and put a note in the book about it.

Gediminas Paulauskas (menesis) wrote :

This bug was fixed by

schooltool-common (6.2) lucid; urgency=low

  * Add python-setuptools dependency (LP: #562433)

 -- Gediminas Paulauskas <email address hidden> Thu, 15 Apr 2010 00:22:54 +0300

This is a workaround for bug #563060

Changed in schooltool:
status: In Progress → Fix Released
summary: - After installing in Lucid I can't go to the homepage
+ SchoolTool in Lucid fails to start with
+ pkg_resources.DistributionNotFound: distribute
Changed in schooltool:
milestone: 1.4.0 → 1.3.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Related blueprints