[ckan-changes] commit/ckan: 5 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 12 11:45:57 UTC 2011
5 new changesets in ckan:
http://bitbucket.org/okfn/ckan/changeset/6f27828a4621/
changeset: 6f27828a4621
user: dread
date: 2011-10-12 12:10:32
summary: [doc]: Add some hints for getting tests passing and installing from source.
affected #: 2 files (-1 bytes)
--- a/doc/install-from-source.rst Mon Oct 10 17:07:11 2011 +0200
+++ b/doc/install-from-source.rst Wed Oct 12 11:10:32 2011 +0100
@@ -118,7 +118,7 @@
::
sudo apt-get install python-psycopg2 python-lxml python-sphinx
- sudo apt-get install python-pylons python-formalchemy python-repoze.who
+ sudo apt-get install python-pylons python-repoze.who python-pybabel
sudo apt-get install python-repoze.who-plugins python-tempita python-zope.interface
If you are not using Ubuntu Lucid you'll still need to install all the
@@ -147,7 +147,7 @@
::
- psql -l
+ sudo -u postgres psql -l
It is advisable to ensure that the encoding of databases is 'UTF8', or
internationalisation may be a problem. Since changing the encoding of PostgreSQL
@@ -250,13 +250,12 @@
JETTY_HOST=127.0.0.1 # (line 15)
JETTY_PORT=8983 # (line 18)
- Then create a symlink from the schema.xml file in your ckan config
- directory to the Solr config directory:
+ Then replace Solr's schema.xml file with a symlink to the one in the CKAN source:
Note: The path ``~/pyenv/src/ckan/ckan/config/schema.xml`` will probably need to be to be adjusted for your system. Also ensure it is an absolute path.
::
-
+ sudo mv /usr/share/solr/conf/schema.xml /usr/share/solr/conf/schema.xml.bak
sudo ln -s ~/pyenv/src/ckan/ckan/config/schema.xml /usr/share/solr/conf/schema.xml
Set appropriate values for the ``ckan.site_id`` and ``solr_url`` config variables in your CKAN config file:
--- a/doc/test.rst Mon Oct 10 17:07:11 2011 +0200
+++ b/doc/test.rst Wed Oct 12 11:10:32 2011 +0100
@@ -126,4 +126,39 @@
This can be caused by an out of date pyc file. Delete all your pyc files and start again::
- find . -name "*.pyc" | xargs rm
\ No newline at end of file
+ find . -name "*.pyc" | xargs rm
+
+* `ImportError: cannot import name UnicodeMultiDict`
+
+ This is caused by using a version of WebOb that is too new (it has deprecated UnicodeMultiDict). Check the version like this (ensure you have activated your python environment first)::
+
+ pip freeze | grep -i webob
+
+ Now install the version specified in requires/lucid_present.txt. e.g.::
+
+ pip install webob==1.0.8
+
+* `nosetests: error: no such option: --ckan`
+
+ Nose is either unable to find ckan/ckan_nose_plugin.py in the python environment it is running in, or there is an error loading it. If there is an error, this will surface it::
+
+ nosetests --version
+
+ There are a few things to try to remedy this:
+
+ Commonly this is because the nosetests isn't running in the python environment. You need to have nose actually installed in the python environment. To see which you are running, do this::
+
+ which nosetests
+
+ If you have activated the environment and this still reports ``/usr/bin/nosetests`` then you need to::
+
+ pip install --ignore-installed nose
+
+ If ``nose --version`` still fails, ensure that ckan is installed in your environment::
+
+ cd pyenv/src/ckan
+ python setup.py develop
+
+ One final check - the version of nose should be at least 1.0. Check with::
+
+ pip freeze | grep -i nose
\ No newline at end of file
http://bitbucket.org/okfn/ckan/changeset/3a9f67e4f6d7/
changeset: 3a9f67e4f6d7
user: dread
date: 2011-10-12 13:24:09
summary: [config]: Database user must match up with the install_from_source documentation.
affected #: 1 file (-1 bytes)
--- a/ckan/config/deployment.ini_tmpl Wed Oct 12 11:10:32 2011 +0100
+++ b/ckan/config/deployment.ini_tmpl Wed Oct 12 12:24:09 2011 +0100
@@ -40,7 +40,7 @@
# Specify the database for SQLAlchemy to use:
# * Postgres is currently required for a production CKAN deployment
# * Sqlite (memory or file) can be used as a quick alternative for testing
-sqlalchemy.url = postgresql://ckantest:pass@localhost/ckantest
+sqlalchemy.url = postgresql://ckanuser:pass@localhost/ckantest
#sqlalchemy.url = sqlite:///
#sqlalchemy.url = sqlite:///%(here)s/somedb.db
http://bitbucket.org/okfn/ckan/changeset/a29ccc540991/
changeset: a29ccc540991
branch: release-v1.4.3.2
user: dread
date: 2011-10-12 13:38:11
summary: [packaging]: Fix version number for repoze openid - 0.5.4 is not currently released.
affected #: 1 file (-1 bytes)
--- a/requires/lucid_present.txt Fri Sep 30 17:20:58 2011 +0100
+++ b/requires/lucid_present.txt Wed Oct 12 12:38:11 2011 +0100
@@ -18,7 +18,7 @@
tempita==0.4
zope.interface==3.5.3
# These are both combined into the python-repoze.who-plugins package
-repoze.who.plugins.openid==0.5.4
+repoze.who.plugins.openid==0.5.3
# Actually from python-repoze.who-plugins but the openid plugin in the same
# package is too old
repoze.who-friendlyform==1.0.8
http://bitbucket.org/okfn/ckan/changeset/0ae336c5a582/
changeset: 0ae336c5a582
branch: release-v1.4.3.2
user: dread
date: 2011-10-12 13:43:33
summary: [release]: branch.
affected #: 2 files (-1 bytes)
--- a/ckan/__init__.py Wed Oct 12 12:38:11 2011 +0100
+++ b/ckan/__init__.py Wed Oct 12 12:43:33 2011 +0100
@@ -1,4 +1,4 @@
-__version__ = '1.4.3.1'
+__version__ = '1.4.3.2b'
__description__ = 'Comprehensive Knowledge Archive Network (CKAN) Software'
__long_description__ = \
'''The CKAN software is used to run the Comprehensive Knowledge Archive
--- a/pip-requirements.txt Wed Oct 12 12:38:11 2011 +0100
+++ b/pip-requirements.txt Wed Oct 12 12:43:33 2011 +0100
@@ -5,11 +5,11 @@
#
# pip install --ignore-installed -r pip-requirements.txt
--e hg+https://bitbucket.org/okfn/ckan@release-v1.4.3.1#egg=ckan
+-e hg+https://bitbucket.org/okfn/ckan@release-v1.4.3.2#egg=ckan
# CKAN dependencies
--r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.1/requires/lucid_conflict.txt
--r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.1/requires/lucid_present.txt
--r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.1/requires/lucid_missing.txt
+-r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.2/requires/lucid_conflict.txt
+-r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.2/requires/lucid_present.txt
+-r https://bitbucket.org/okfn/ckan/raw/release-v1.4.3.2/requires/lucid_missing.txt
# NOTE: Developers, please do not edit this file. Changes should go in the
# appropriate files in the `requires' directory.
http://bitbucket.org/okfn/ckan/changeset/cb3b08c79ada/
changeset: cb3b08c79ada
user: dread
date: 2011-10-12 13:44:55
summary: [merge] from release-v1.4.3.2
affected #: 3 files (-1 bytes)
--- a/requires/lucid_present.txt Wed Oct 12 12:24:09 2011 +0100
+++ b/requires/lucid_present.txt Wed Oct 12 12:44:55 2011 +0100
@@ -18,7 +18,7 @@
tempita==0.4
zope.interface==3.5.3
# These are both combined into the python-repoze.who-plugins package
-repoze.who.plugins.openid==0.5.4
+repoze.who.plugins.openid==0.5.3
# Actually from python-repoze.who-plugins but the openid plugin in the same
# package is too old
repoze.who-friendlyform==1.0.8
Repository URL: https://bitbucket.org/okfn/ckan/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list