nosetests can't find packages?

2008-08-19 Thread Phredward

I'm trying to run nosetests, and I keep getting package not found
errors.  I tried just making the sample blog app from
http://wiki.pylonshq.com/display/pylonscookbook/Making+a+Pylons+Blog
and started following the instructions for testing it at
http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing.

When I run nosetests --with-pylons=test.ini I get an error that ends
with:

  File /usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/
paste/deploy/loadwsgi.py, line 542, in get_context
object_type, name=name)
  File /usr/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/
paste/deploy/loadwsgi.py, line 562, in find_egg_entry_point
pkg_resources.require(self.spec)
  File /usr/lib/python2.5/site-packages/pkg_resources.py, line 626,
in require
needed = self.resolve(parse_requirements(requirements))
  File /usr/lib/python2.5/site-packages/pkg_resources.py, line 524,
in resolve
raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: MyBlog


This seems like the kind of stupid pilot-error that I should be able
to spot, but I'm stumped.

Phred

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: nosetests can't find packages?

2008-08-19 Thread Philip Jenvey


On Aug 19, 2008, at 12:24 PM, Phredward wrote:


 I'm trying to run nosetests, and I keep getting package not found
 errors.  I tried just making the sample blog app from
 http://wiki.pylonshq.com/display/pylonscookbook/Making+a+Pylons+Blog
 and started following the instructions for testing it at
 http://wiki.pylonshq.com/display/pylonsdocs/Unit+Testing.

 When I run nosetests --with-pylons=test.ini I get an error that ends
 with:


  File /usr/lib/python2.5/site-packages/pkg_resources.py, line 524,
 in resolve
raise DistributionNotFound(req)  # XXX put more info here
 pkg_resources.DistributionNotFound: MyBlog


Is your project's egg-info directory still intact? If not, try running  
'python setup.py egg_info' before nosetests.

If that's the solution, we may need to make the with-pylons nose  
plugin run egg_info every time, or maybe only if it notices a  
DistributionNotFound exception.

--
Philip Jenvey



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---