You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 ).The text was updated successfully, but these errors were encountered: