Ticket #2399 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

Model cleanup in CKAN core has broken ckanext-spatial

Reported by: seanh Owned by: amercader
Priority: awaiting triage Milestone: ckan-v1.8
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

[email protected]:/usr/local/feature-2375-demo-theme/pyenv/src/ckan# sudo -u www-data /usr/local/feature-2375-demo-theme/pyenv/bin/paster --plugin=ckanext-spatial spatial initdb 4326 --config=/usr/local/feature-2375-demo-theme/pyenv/src/ckan/development.ini Traceback (most recent call last):

File "/usr/local/feature-2375-demo-theme/pyenv/bin/paster", line 9, in <module>

load_entry_point('PasteScript?==1.7.3', 'console_scripts', 'paster')()

File "/usr/local/feature-2375-demo-theme/pyenv/lib/python2.6/site-packages/paste/script/command.py", line 84, in run

invoke(command, command_name, options, args[1:])

File "/usr/local/feature-2375-demo-theme/pyenv/lib/python2.6/site-packages/paste/script/command.py", line 123, in invoke

exit_code = runner.run(args)

File "/usr/local/feature-2375-demo-theme/pyenv/lib/python2.6/site-packages/paste/script/command.py", line 218, in run

result = self.command()

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckanext-spatial/ckanext/spatial/commands/spatial.py", line 38, in command

self._load_config()

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckan/ckan/lib/cli.py", line 53, in _load_config

load_environment(conf.global_conf, conf.local_conf)

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckan/ckan/config/environment.py", line 204, in load_environment

plugin.configure(config)

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckanext-spatial/ckanext/spatial/plugin.py", line 60, in configure

setup_model()

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckanext-spatial/ckanext/spatial/model.py", line 20, in setup

define_spatial_tables(srid)

File "/usr/local/feature-2375-demo-theme/pyenv/src/ckanext-spatial/ckanext/spatial/model.py", line 66, in define_spatial_tables

package_extent_table = Table('package_extent', metadata,

NameError?: global name 'metadata' is not defined

Change History

comment:1 Changed 2 years ago by seanh

  • Owner changed from amercader to Adria
  • Status changed from new to assigned

comment:2 Changed 2 years ago by amercader

  • Owner changed from Adria to amercader

comment:3 Changed 2 years ago by amercader

  • Milestone changed from current-ckan-sprint-2012-05-29 to current-ckan-sprint-2012-06-25

comment:4 Changed 23 months ago by amercader

  • Milestone changed from current-ckan-sprint-2012-06-25 to ckan-v1.8

comment:5 Changed 23 months ago by amercader

  • Status changed from assigned to accepted

comment:6 Changed 22 months ago by amercader

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in 493589aaf

Note: See TracTickets for help on using tickets.