Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DistributionNotFound error with new starter scaffold #1059

Closed
extesy opened this issue Jul 31, 2013 · 4 comments
Closed

DistributionNotFound error with new starter scaffold #1059

extesy opened this issue Jul 31, 2013 · 4 comments

Comments

@extesy
Copy link

extesy commented Jul 31, 2013

I'm trying out pyramid and have created new project using pcreate -s starter pyramid_test. Immediately after new project is created, without making any changes to it, I run pserve development.ini command and get the following error:

Traceback (most recent call last):
  File "C:\Python33\Scripts\pserve-script.py", line 9, in <module>
    load_entry_point('pyramid==1.4.3', 'console_scripts', 'pserve')()
  File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 50, in main
    return command.run()
  File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 304, in run
    global_conf=vars)
  File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 328, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 271, in loadobj
    global_conf=global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 454, in get_context
    section)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 406, in get_context
    global_conf=global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 620, in get_context
    object_type, name=name)
  File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 640, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "C:\Python33\lib\site-packages\distribute-0.6.39-py3.3.egg\pkg_resources.py", line 696, in require
    needed = self.resolve(parse_requirements(requirements))
  File "C:\Python33\lib\site-packages\distribute-0.6.39-py3.3.egg\pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyramid-test

I'm using Python 3.3 win32.

@mcdonc
Copy link
Member

mcdonc commented Jul 31, 2013

On Tue, 2013-07-30 at 17:16 -0700, Oleg Anashkin wrote:

I'm trying out pyramid and have created new project using pcreate -s
starter pyramid_test. Immediately after new project is created,
without making any changes to it, I run pserve development.ini command
and get the following error:

Traceback (most recent call last):
File "C:\Python33\Scripts\pserve-script.py", line 9, in
load_entry_point('pyramid==1.4.3', 'console_scripts', 'pserve')()
File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 50, in main
return command.run()
File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 304, in run
global_conf=vars)
File "C:\Python33\lib\site-packages\pyramid\scripts\pserve.py", line 328, in loadapp
return loadapp(app_spec, name=name, relative_to=relative_to, *_kw)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, *_kw)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 271, in loadobj
global_conf=global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 454, in get_context
section)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 476, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 406, in get_context
global_conf=global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 328, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 620, in get_context
object_type, name=name)
File "C:\Python33\lib\site-packages\paste\deploy\loadwsgi.py", line 640, in find_egg_entry_point
pkg_resources.require(self.spec)
File "C:\Python33\lib\site-packages\distribute-0.6.39-py3.3.egg\pkg_resources.py", line 696, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Python33\lib\site-packages\distribute-0.6.39-py3.3.egg\pkg_resources.py", line 594, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyramid-test

I'm using Python 3.3 win32.

You forgot to run setup.py develop.

  • C


Reply to this email directly or view it on GitHub.

@extesy
Copy link
Author

extesy commented Jul 31, 2013

You are right, somehow I've missed this step. Thanks for a quick response!

@extesy extesy closed this as completed Jul 31, 2013
@abhimittal13
Copy link

I am having a same problem and i have also run the python setup.py develop command and it again giving me the same error. Please tell me what to do.
Thanks in advance

@mcdonc
Copy link
Member

mcdonc commented Aug 5, 2014

You may have run python setup.py develop using a different Python than the one you've installed pyramid into. Follow the pyramid docs install instructions carefully, they're correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants