[ckan-dev] Smoke test on Ubuntu 12.04
Haq, Salman
Salman.Haq at neustar.biz
Thu Apr 26 20:20:03 UTC 2012
So I followed the instructions on [1] to install the CKAN package on
Ubuntu 12.04.
Here are my findings:
1. Postgres dependency must be increased to 9.1
2. Add explicit dependency on openjdk-6-jdk
3. Set JAVA_HOME path correctly in /etc/default/jetty prior to running
ckan-setup-solr
4. Fix import statement in ckan/model/package.py:
File "/usr/lib/pymodules/python2.7/ckan/model/package.py", line 10, in
<module>
from pylons import config, session, c, request
ImportError: cannot import name c
The import error actually causes wsgi.py to crash so the web application
cannot actually be run by Apache. Consequently it returns a 500 error when
loading the page in the browser.
Should the correct import be `from pylons import tmpl_context as c`? There
are a handful of occurrences of this import statement.
Thanks,
Shaq
[1]
http://docs.ckan.org/en/latest/install-from-package.html#run-the-package-in
staller
More information about the ckan-dev
mailing list