Skip to content

Instantly share code, notes, and snippets.

@chrisarusso
Created July 23, 2015 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisarusso/8c19d0b9bf84d0472861 to your computer and use it in GitHub Desktop.
Save chrisarusso/8c19d0b9bf84d0472861 to your computer and use it in GitHub Desktop.
MacBook-Pro:durhamatletico.github.io chris$ pip install csvkit --user
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting csvkit
Downloading csvkit-0.9.1.tar.gz
Collecting xlrd>=0.7.1 (from csvkit)
Downloading xlrd-0.9.4.tar.gz (322kB)
100% |████████████████████████████████| 323kB 215kB/s
Collecting sqlalchemy>=0.6.6 (from csvkit)
Downloading SQLAlchemy-1.0.8.tar.gz (4.6MB)
100% |████████████████████████████████| 4.6MB 77kB/s
Collecting openpyxl==2.2.0-b1 (from csvkit)
Downloading openpyxl-2.2.0-b1.tar.gz (108kB)
100% |████████████████████████████████| 110kB 249kB/s
Collecting six>=1.6.1 (from csvkit)
Using cached six-1.9.0-py2.py3-none-any.whl
Collecting python-dateutil==2.2 (from csvkit)
Downloading python-dateutil-2.2.tar.gz (259kB)
100% |████████████████████████████████| 262kB 215kB/s
Collecting dbf==0.94.003 (from csvkit)
Downloading dbf-0.94.003.tar.gz (79kB)
100% |████████████████████████████████| 81kB 227kB/s
Collecting jdcal (from openpyxl==2.2.0-b1->csvkit)
Downloading jdcal-1.0.tar.gz
Installing collected packages: xlrd, sqlalchemy, jdcal, openpyxl, six, python-dateutil, dbf, csvkit
Running setup.py install for xlrd
Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/6l/5vl2d4xx2gb9p_cbnbwngq_00000gn/T/pip-build-MMo0pi/xlrd/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6l/5vl2d4xx2gb9p_cbnbwngq_00000gn/T/pip-UqeHKl-record/install-record.txt --single-version-externally-managed --compile --user:
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/6l/5vl2d4xx2gb9p_cbnbwngq_00000gn/T/pip-build-MMo0pi/xlrd/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6l/5vl2d4xx2gb9p_cbnbwngq_00000gn/T/pip-UqeHKl-record/install-record.txt --single-version-externally-managed --compile --user" failed with error code 1 in /private/var/folders/6l/5vl2d4xx2gb9p_cbnbwngq_00000gn/T/pip-build-MMo0pi/xlrd
MacBook-Pro:durhamatletico.github.io chris$ _scripts/build.sh
_scripts/build.sh: line 5: csv2json: command not found
_scripts/build.sh: line 5: csvgrep: command not found
_scripts/build.sh: line 7: csvgrep: command not found
_scripts/build.sh: line 7: csv2json: command not found
_scripts/build.sh: line 9: csvgrep: command not found
_scripts/build.sh: line 9: csv2json: command not found
_scripts/build.sh: line 11: csvgrep: command not found
_scripts/build.sh: line 11: csv2json: command not found
Traceback (most recent call last):
File "_scripts/process.py", line 6, in <module>
matches = json.load(open("_data/2015/summer/matches.json", 'r'))
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
**kw)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
MacBook-Pro:durhamatletico.github.io chris$ pip install csvkit --userpip install --upgrade pip
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --userpip
MacBook-Pro:durhamatletico.github.io chris$ pip install --upgrade pip
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 155kB/s
Installing collected packages: pip
Found existing installation: pip 7.0.3
Uninstalling pip-7.0.3:
Successfully uninstalled pip-7.0.3
Successfully installed pip-7.1.0
MacBook-Pro:durhamatletico.github.io chris$ pip install csvkit --user
Collecting csvkit
Using cached csvkit-0.9.1.tar.gz
Collecting xlrd>=0.7.1 (from csvkit)
Using cached xlrd-0.9.4.tar.gz
Collecting sqlalchemy>=0.6.6 (from csvkit)
Using cached SQLAlchemy-1.0.8.tar.gz
Collecting openpyxl==2.2.0-b1 (from csvkit)
Using cached openpyxl-2.2.0-b1.tar.gz
Collecting six>=1.6.1 (from csvkit)
Using cached six-1.9.0-py2.py3-none-any.whl
Collecting python-dateutil==2.2 (from csvkit)
Using cached python-dateutil-2.2.tar.gz
Collecting dbf==0.94.003 (from csvkit)
Using cached dbf-0.94.003.tar.gz
Collecting jdcal (from openpyxl==2.2.0-b1->csvkit)
Using cached jdcal-1.0.tar.gz
Installing collected packages: xlrd, sqlalchemy, jdcal, openpyxl, six, python-dateutil, dbf, csvkit
Running setup.py install for xlrd
Running setup.py install for sqlalchemy
Running setup.py install for jdcal
Running setup.py install for openpyxl
Running setup.py install for python-dateutil
Running setup.py install for dbf
Running setup.py install for csvkit
Successfully installed csvkit dbf jdcal openpyxl python-dateutil six sqlalchemy xlrd
MacBook-Pro:durhamatletico.github.io chris$ _scripts/build.sh
_scripts/build.sh: line 5: csv2json: command not found
_scripts/build.sh: line 5: csvgrep: command not found
_scripts/build.sh: line 7: csvgrep: command not found
_scripts/build.sh: line 7: csv2json: command not found
_scripts/build.sh: line 9: csvgrep: command not found
_scripts/build.sh: line 9: csv2json: command not found
_scripts/build.sh: line 11: csvgrep: command not found
_scripts/build.sh: line 11: csv2json: command not found
Traceback (most recent call last):
File "_scripts/process.py", line 6, in <module>
matches = json.load(open("_data/2015/summer/matches.json", 'r'))
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
**kw)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
MacBook-Pro:durhamatletico.github.io chris$ pip install --upgrade pip
MacBook-Pro:durhamatletico.github.io chris$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: _data/2015/summer/matches.json
modified: _data/2015/summer/past.json
modified: _data/2015/summer/schedule.json
modified: _data/2015/summer/week.json
no changes added to commit (use "git add" and/or "git commit -a")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment