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

Bug #562433 reported by Dooitze de Jong
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
Critical
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

Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

Probably a dupe.

Revision history for this message
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
Revision history for this message
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>
    command.run()
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 218, in run
    result = self.command()
  File "/usr/lib/pymodules/python2.6/paste/script/serve.py", line 274, in command
    relative_to=base, global_conf=vars)
  File "/usr/lib/pymodules/python2.6/paste/script/serve.py", line 308, in loadserver
    relative_to=relative_to, **kw)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 210, in loadserver
    return loadobj(SERVER, uri, name=name, **kw)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 224, in loadobj
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 409, in get_context
    section)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 431, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 361, in get_context
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 285, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 561, in get_context
    object_type, name=name)
  File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 581, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute

Revision history for this message
Piotr Ożarowski (piotr) wrote :

install python-setuptools >= 0.6.4-1

Revision history for this message
Dooitze de Jong (dooitze) wrote :

So there was an wrong depencies document?

Revision history for this message
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
Revision history for this message
Dooitze de Jong (dooitze) wrote :

I doesn't help

Revision history for this message
Gediminas Paulauskas (menesis) wrote : Re: [Bug 562433] Re: After installing in Lucid I can't go to the homepage

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

Revision history for this message
Dooitze de Jong (dooitze) wrote : Re: After installing in Lucid I can't go to the homepage

Now, it works
With pythone-setuptools

Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

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

Works for me.

Revision history for this message
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.

Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.