Vairoj writes

Correctly install pyspatialite

You need pyspatialite to use spatialite with Python code. If you install it with easy_install, probably you will run into an error, symbol not found: _iconv, when importing the module. The tarball at pyspatialite website has the problem fixed though. Apparently, the version available at easy_install repository is not up-to-date.

Therefore, in the meantime, don’t use easy_install and download the tarball directly from the website. Note that it is not necessary to install libspatialite separately as pyspatialite includes the library and will build it as part of python setup.py install process. Also, if pyspatialite has already been installed through easy_install, you need to uninstall it first, otherwise; that version will still get picked up when importing the module.

blog comments powered by Disqus