PyCSW Installation

 

Installation

Set up Python Environment

Create and activate the conda virtual environment for PyCSW:

conda create --name py364_pycsw python=3.6.4
source activate py364_pycsw

In this case, we use Python 3.6.4 as the base version of Python. The environment is located at: ~/anaconda3/envs/py364_pycsw

Install PyCSW

git clone git@github.com:geopython/pycsw.git && cd pycsw
pip install -e . && pip install -r requirements.txt
cp default-sample.cfg default.cfg
nano default.cfg
# adjust paths in
# - server.home
# - repository.database
# set server.url to http://localhost:8000/

$ python csw.wsgi
$ curl http://localhost:8000/?service=CSW&version=2.0.2&request=GetCapabilities

FAQ

Incompatible library version: etree.cpython-36m-darwin.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

Solution:

conda install libxml2