abourget/pyramid_socketio — Issue #3: <Greenlet at 0xa1183ec: main> failed with DistributionNotFound
Author: brunoqc
Created: 2012-02-06 16:52:08+00:00
State: open

I got a `DistributionNotFound` error. Any idea?

$ sudo socketio-serve-reload development.ini
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.6/dist-packages/pyramid_socketio/serve.py", line 48, in main
app = loadapp('config:%s' % cfgfile, relative_to='.')
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
global_conf=global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
section)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
global_conf=global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
object_type, name=name)
File "/usr/local/lib/python2.6/dist-packages/paste/deploy/loadwsgi.py", line 640, 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)
DistributionNotFound: test-pyramid-socketio
failed with DistributionNotFound

Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.6/dist-packages/pyramid_socketio/serve.py", line 60, in reloader
from paste import reloader
ImportError: cannot import name reloader
failed with ImportError

Here's how I created the project :

virtualenv --no-site-packages env
cd env
source bin/activate
pip install pyramid_socketio
bin/pcreate -s alchemy test-pyramid-socketio

cd test-pyramid-socketio

../bin/python setup.py develop
../bin/python setup.py test -q
../bin/populate_test-pyramid-socketio development.ini

../bin/pserve development.ini