Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created September 6, 2013 15:42
Show Gist options
  • Save wboykinm/6465688 to your computer and use it in GitHub Desktop.
Save wboykinm/6465688 to your computer and use it in GitHub Desktop.
CartoDB install: Error on python dependencies
ubuntu@ip-10-184-16-152:~/cartodb20$ sudo pip install -r python_requirements.txt
Downloading/unpacking chardet==1.0.1 (from -r python_requirements.txt (line 1))
Downloading chardet-1.0.1.tar.gz (156kB): 156kB downloaded
Running setup.py egg_info for package chardet
Requirement already satisfied (use --upgrade to upgrade): argparse==1.2.1 in /usr/lib/python2.7 (from -r python_requirements.txt (line 2))
Downloading/unpacking brewery==0.6 (from -r python_requirements.txt (line 3))
Downloading brewery-0.6.0.tar.gz (50kB): 50kB downloaded
Running setup.py egg_info for package brewery
Downloading/unpacking redis==2.4.9 (from -r python_requirements.txt (line 4))
Downloading redis-2.4.9.tar.gz
Running setup.py egg_info for package redis
Downloading/unpacking python-varnish==0.1.2 (from -r python_requirements.txt (line 5))
Downloading python-varnish-0.1.2.tar.gz
Running setup.py egg_info for package python-varnish
Downloading/unpacking gdal==1.10.0 (from -r python_requirements.txt (line 6))
Downloading GDAL-1.10.0.tar.gz (449kB): 449kB downloaded
Running setup.py egg_info for package gdal
Installing collected packages: chardet, brewery, redis, python-varnish, gdal
Found existing installation: chardet 2.0.1
Uninstalling chardet:
Successfully uninstalled chardet
Running setup.py install for chardet
Running setup.py install for brewery
changing mode of build/scripts-2.7/mongoaudit from 644 to 755
changing mode of build/scripts-2.7/brewery from 644 to 755
changing mode of /usr/local/bin/brewery to 755
changing mode of /usr/local/bin/mongoaudit to 755
Running setup.py install for redis
Running setup.py install for python-varnish
changing mode of build/scripts-2.7/varnish_manager from 644 to 755
changing mode of /usr/local/bin/varnish_manager to 755
Running setup.py install for gdal
building 'osgeo._gdal' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.7 -I. -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
extensions/gdal_wrap.cpp:149:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/gdal/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-itvZzF-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying gdal.py -> build/lib.linux-x86_64-2.7
copying ogr.py -> build/lib.linux-x86_64-2.7
copying osr.py -> build/lib.linux-x86_64-2.7
copying gdalconst.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/osgeo
copying osgeo/__init__.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/gdalconst.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/ogr.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/gdal_array.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/gdal.py -> build/lib.linux-x86_64-2.7/osgeo
copying osgeo/osr.py -> build/lib.linux-x86_64-2.7/osgeo
running build_ext
building 'osgeo._gdal' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/extensions
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.7 -I. -I/usr/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.7/extensions/gdal_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
extensions/gdal_wrap.cpp:149:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/gdal/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-itvZzF-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/gdal
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/dist-packages/pip-1.4.1-py2.7.egg/pip/__init__.py", line 148, in main
return command.main(args[1:], options)
File "/usr/local/lib/python2.7/dist-packages/pip-1.4.1-py2.7.egg/pip/basecommand.py", line 169, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)
ubuntu@ip-10-184-16-152:~/cartodb20$ vi python_requirements.txt
@vlasvlasvlas
Copy link

same here
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment