domenkozar / g-pypi

g-pypi manages ebuilds for Gentoo Linux using information in PyPi (Python Package Index)
Other
17 stars 2 forks source link

"pkg_resources.DistributionNotFound: argparse" w/Python 2.7 #13

Open equaeghe opened 11 years ago

equaeghe commented 11 years ago

I've just installed g-pypi on my mostly stable Gentoo installation. My Python version is 2.7.3-r3, which as far as I know includes argparse (i.e., an external module is not needed). Nevertheless, when trying to create an ebuild (gpypi create IMAPClient) I get the following:

Traceback (most recent call last):
  File "/usr/bin/gpypi-2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 2808, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 691, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 589, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: argparse
freeyoung commented 11 years ago

Also got this error message on Gentoo with Python 2.7.3.