[ckan-discuss] Problem installing ckanext-spatial

Florence.Tan at csiro.au Florence.Tan at csiro.au
Fri Jun 28 10:04:44 BST 2013


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<mailto: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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130628/941a00b2/attachment-0001.htm>


More information about the ckan-discuss mailing list