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: argparse #115

Closed
jakirkham opened this issue Apr 8, 2015 · 0 comments
Closed

DistributionNotFound: argparse #115

jakirkham opened this issue Apr 8, 2015 · 0 comments

Comments

@jakirkham
Copy link
Contributor

Shouldn't happen (as it is included in Python 2.7, which I'm using), but does. If you aren't supporting anything before Python 2.7, maybe requiring argparse can be dropped altogether. Thoughts from other people, who have ran into this issue and tried to address it ( ros-infrastructure/bloom#194 ).

---------------------------------------------------------------------------
DistributionNotFound                      Traceback (most recent call last)
<ipython-input-3-1e82e0be488d> in <module>()
----> 1 pkg_resources.get_distribution('argparse')

/xopt_ilastik/local/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.pyc in get_distribution(dist)
    309     """Return a current distribution object for a Requirement or string"""
    310     if isinstance(dist,basestring): dist = Requirement.parse(dist)
--> 311     if isinstance(dist,Requirement): dist = get_provider(dist)
    312     if not isinstance(dist,Distribution):
    313         raise TypeError("Expected string, Requirement, or Distribution", dist)

/xopt_ilastik/local/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.pyc in get_provider(moduleOrReq)
    195     """Return an IResourceProvider for the named module or requirement"""
    196     if isinstance(moduleOrReq,Requirement):
--> 197         return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
    198     try:
    199         module = sys.modules[moduleOrReq]

/xopt_ilastik/local/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.pyc in require(self, *requirements)
    664         included, even if they were already activated in this working set.
    665         """
--> 666         needed = self.resolve(parse_requirements(requirements))
    667 
    668         for dist in needed:

/xopt_ilastik/local/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.pyc in resolve(self, requirements, env, installer)
    563                     dist = best[req.key] = env.best_match(req, self, installer)
    564                     if dist is None:
--> 565                         raise DistributionNotFound(req)  # XXX put more info here
    566                 to_activate.append(dist)
    567             if dist not in req:

DistributionNotFound: argparse
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

2 participants