Problem on installation - Unpacking argparse>=1.2.1
Hey, I'm having this error on the installation with pip: Is it me or the compile of csv? Thanks
MacBook-Air-de-Jose:python josenogueira$ sudo pip install csvkit Downloading/unpacking csvkit Downloading csvkit-0.7.2.tar.gz Running setup.py (path:/private/tmp/pip_build_root/csvkit/setup.py) egg_info for package csvkit
Downloading/unpacking argparse>=1.2.1 (from csvkit) Could not find a version that satisfies the requirement argparse>=1.2.1 (from csvkit) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 1.0.1, 1.0, 1.1) Some externally hosted files were ignored (use --allow-external to allow). Cleaning up... No distributions matching the version for argparse>=1.2.1 (from csvkit) Storing debug log for failure in /Users/josenogueira/Library/Logs/pip.log
PIP.log: No distributions matching the version for argparse>=1.2.1 (from csvkit) Exception information: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/Library/Python/2.7/site-packages/pip/req.py", line 1177, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "/Library/Python/2.7/site-packages/pip/index.py", line 322, in find_requirement raise DistributionNotFound('No distributions matching the version for %s' % req) DistributionNotFound: No distributions matching the version for argparse>=1.2.1 (from csvkit)
By allowing external file, I was able to upgrade argparse:
sudo pip install argparse --allow-external argparse --upgrade
Ref: http://stackoverflow.com/questions/21868684/pip-doesnt-install-latest-available-version-from-pypi-argparse-in-this-case
However, while executing csvkit I still get errors as the following:
Traceback (most recent call last): File "/usr/local/bin/csvgrep", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: openpyxl>=1.8.4
The weird part is I do have the latest openpyxl installed (1.8.5), as pip suggests:
openpyxl - A Python library to read/write Excel 2007 xlsx/xlsm files INSTALLED: 1.8.5 (latest)
That seems to have solved it for me, even though I had a few errors at the end of the installation. (unfortunately I ended up clearing the terminal screen)
I got the information that it had installed properly.
csvkit seems to be working now..
I still have to test it further, though.
This is an issue with some breaking-ish changes made in pip 1.5, not with csvkit itself. Many libraries are gonna experience some growing pains due to that. This probably should be closed.
BACKWARD INCOMPATIBLE pip no longer will scrape insecure external urls by default nor will it install externally hosted files by default. Users may opt into installing externally hosted or insecure files or urls using
--allow-external PROJECTand--allow-unverified PROJECT. (Pull #1055)
Yeah, I can't seem to replicate this even after upgrading to the latest pip. If it is the issue Ryan described there isn't much I can do about it. The development docs may need to be updated, but without being able to replicate it I'm not sure what they should say.
Actually, as Noah points out in #224, this should be fixed now that that's merged. Closing.
Nope, Ryan was right. Now I've replicated the bug. Sigh.