Thanks for your quick feedback and for the helpful link to the [github repository][1]. I tried pip install pyspatialite (as instructed from site) from a virtual environment and quickly became unstuck (see error below). I've since upgrade my pip version with no success. Here is the error:
You are using pip version 6.0.8, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyspatialite
Using cached pyspatialite-3.0.1-alpha-0.tar.gz
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:283: UserWarning: The version specified requires normalization, consider using '3.0.1a0' instead of '3.0.1-alpha-0'.
self.metadata.version,
Installing collected packages: pyspatialite
Running setup.py install for pyspatialite
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:283: UserWarning: The version specified requires normalization, consider using '3.0.1a0' instead of '3.0.1-alpha-0'.
self.metadata.version,
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 309, in <module>
main()
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 306, in main
setup(**get_setup_args())
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/build_ext.py", line 50, in run
_build_ext.run(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 175, in build_extension
self.check_header(ext,"proj_api.h")
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 154, in check_header
raise HeaderNotFoundException("cannot find %s, bailing out" % header)
__main__.HeaderNotFoundException: cannot find proj_api.h, bailing out
Complete output from command /usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-kBbqxo/pyspatialite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r2YI0s-record/install-record.txt --single-version-externally-managed --compile:
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:283: UserWarning: The version specified requires normalization, consider using '3.0.1a0' instead of '3.0.1-alpha-0'.
self.metadata.version,
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pyspatialite
copying lib/pyspatialite/dbapi2.py -> build/lib.linux-x86_64-2.7/pyspatialite
copying lib/pyspatialite/__init__.py -> build/lib.linux-x86_64-2.7/pyspatialite
copying lib/pyspatialite/dump.py -> build/lib.linux-x86_64-2.7/pyspatialite
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 309, in <module>
main()
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 306, in main
setup(**get_setup_args())
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/build_ext.py", line 50, in run
_build_ext.run(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 175, in build_extension
self.check_header(ext,"proj_api.h")
File "/tmp/pip-build-kBbqxo/pyspatialite/setup.py", line 154, in check_header
raise HeaderNotFoundException("cannot find %s, bailing out" % header)
__main__.HeaderNotFoundException: cannot find proj_api.h, bailing out
----------------------------------------
Command "/usr/local/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-kBbqxo/pyspatialite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-r2YI0s-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-kBbqxo/pyspatialite
Any insight would be greatly appreciated. Thanks in advance!