Skip to content

Instantly share code, notes, and snippets.

@dwcaraway
Created November 20, 2013 03:19
Show Gist options
  • Save dwcaraway/7557113 to your computer and use it in GitHub Desktop.
Save dwcaraway/7557113 to your computer and use it in GitHub Desktop.
trying to help debug weird error with ckan spatial extension.
import ckanext.spatial.validation.validation as v
from lxml import etree
TEST_FILE = 'satellite-systems_dscovr.xml'
with open(TEST_FILE, 'r') as f:
xmlobj = etree.XML(f.read())
validator = v.ISO19139NGDCSchema()
print(validator.is_valid(xmlobj))
# (True, [])
@dwcaraway
Copy link
Author

My pip dependencies:
apachemiddleware (0.1.1)
argparse (1.2.1)
Babel (0.9.6)
Beaker (1.6.4)
ckan (2.1a)
ckanext-harvest (0.2)
ckanext-spatial (0.2 )
decorator (3.4.0)
fanstatic (0.12)
FormAlchemy (1.4.2)
FormEncode (1.2.6)
Genshi (0.6)
GeoAlchemy (0.7.2)
Jinja2 (2.6)
lxml (3.2.4)
Mako (0.9.0)
MarkupSafe (0.15)
nose (1.3.0)
ofs (0.4.1)
OWSLib (0.8.2)
Pairtree (0.7.1-T)
Paste (1.7.5.1)
PasteDeploy (1.5.0)
PasteScript (1.7.5)
pika (0.9.8)
pip (1.4.1)
psycopg2 (2.4.5)
Pygments (1.6)
Pylons (0.9.7)
pyparsing (1.5.6)
python-dateutil (1.5)
python-openid (2.2.5)
pytz (2013.8)
pyutilib.component.core (4.5.3)
repoze.lru (0.6)
repoze.who (1.0.19)
repoze.who-friendlyform (1.0.8)
repoze.who.plugins.openid (0.5.3)
requests (1.1.0)
Routes (1.13)
setuptools (0.9.8)
Shapely (1.2.18)
simplejson (3.3.1)
solrpy (0.9.5)
SQLAlchemy (0.7.8)
sqlalchemy-migrate (0.7.2)
Tempita (0.5.1)
vdm (0.11)
WebError (0.10.3)
WebHelpers (1.3)
WebOb (1.0.8)
WebTest (1.4.3)
wsgiref (0.1.2)
zope.interface (4.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment