[ckan-discuss] Problem installing ckanext-spatial
Adrià Mercader
adria.mercader at okfn.org
Fri Jun 28 11:06:11 BST 2013
Hi Florence,
libxml2 is the system library, but it seems like the error is
complaining about lxml, which is the python library that uses. This is
generally caused by not having installed the python requirements for
the extension.
Did you do point 2 in the "Install Python" section [1]? Make sure you
have your virtualenv activated.
(pyenv) $ pip install -r pip-requirements.txt
Hope this helps.
Adrià
[1] https://github.com/okfn/ckanext-spatial/blob/master/README.rst#install-python
On 28 June 2013 10:04, <Florence.Tan at csiro.au> wrote:
> Hi List,
>
>
>
> I’m new to ckan and trying to install ckan spatial extension to linux
> (debian) machine. Follow guide from
> https://github.com/okfn/ckanext-spatial/blob/master/README.rst, managed to
> setup PostGIS for my ckan database and installed libxml2 from base on guide
> from
> https://github.com/okfn/ckanext-spatial/blob/master/README.rst#setting-up-postgis.
> However, when run the following command to create some DB tables for spatial
> search :
>
>
>
> (pyenv) $ paster --plugin=ckanext-spatial spatial initdb [srid]
> --config=mysite.ini
>
>
>
> I keep getting the following error :
>
>
>
> Traceback (most recent call last):
>
> File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
>
> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
>
> File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
> line 103, in run
>
> command = commands[command_name].load()
>
> File
> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
> line 1989, in load
>
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>
> File
> "/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/commands/spatial.py",
> line 8, in <module>
>
> from ckanext.spatial.lib import save_package_extent
>
> File
> "/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/lib/__init__.py",
> line 7, in <module>
>
> from ckanext.spatial.model import PackageExtent
>
> File
> "/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/model/__init__.py",
> line 10, in <module>
>
> from harvested_metadata import *
>
> File
> "/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/model/harvested_metadata.py",
> line 1, in <module>
>
> from lxml import etree
>
> ImportError: No module named lxml
>
>
>
>
>
> Not sure what I have missed ?!?! Hope to get some pointer from the list.
>
>
>
>
>
>
>
> Regards,
>
> Florence Tan
> Research Projects Officer
> CSIRO Earth Science and Resource Engineering
>
> Phone: +61 8 6436 8802 | Fax: +61 8 6436 8555
> florence.tan at csiro.au | www.csiro.au
> Address: Australian Resources Research Centre, 26 Dick Perry Avenue,
> Kensington WA 6151
>
> PLEASE NOTE
> The information contained in this email may be confidential or privileged.
> Any unauthorised use or disclosure is prohibited. If you have received this
> email in error, please delete it immediately and notify the sender by return
> email. Thank you. To the extent permitted by law, CSIRO does not represent,
> warrant and/or guarantee that the integrity of this communication has been
> maintained or that the communication is free of errors, virus, interception
> or interference.
>
> Please consider the environment before printing this email.
>
>
>
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-discuss
>
More information about the ckan-discuss
mailing list