Skip to content

DistributionNotFound: argparse #3

@jakirkham

Description

@jakirkham

Shouldn't happen, but does. Look at this for a solution ( 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions