[ckan-dev] problem initializing the database

Hildegard Gerlach hildegard.gerlach at jrc.ec.europa.eu
Tue Nov 5 11:21:45 UTC 2013


Hello,

we are installing CKAN 2.1 on Redhat 6 and have the following problem:

paster db init -c /etc/ckan/production.ini
Traceback (most recent call last):
   File "/usr/local/ckan/pyenv/bin/paster", line 9, in <module>
     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/script/command.py", 
line 103, in run
     command = commands[command_name].load()
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/pkg_resources.py", 
line 2108, in load
     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
   File "/usr/local/ckan/pyenv/bin/ckan.py", line 11, in <module>
     application = loadapp('config:%s' % config_filepath)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 247, in loadapp
     return loadobj(APP, uri, name=name, **kw)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 271, in loadobj
     global_conf=global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 296, in loadcontext
     global_conf=global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 320, in _loadconfig
     return loader.get_context(object_type, name, global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 454, in get_context
     section)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 476, in _context_from_use
     object_type, name=use, global_conf=global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 406, in get_context
     global_conf=global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 296, in loadcontext
     global_conf=global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 328, in _loadegg
     return loader.get_context(object_type, name, global_conf)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 620, in get_context
     object_type, name=name)
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", 
line 646, in find_egg_entry_point
     possible.append((entry.load(), protocol, entry.name))
   File 
"/usr/local/ckan/pyenv/lib/python2.6/site-packages/pkg_resources.py", 
line 2108, in load
     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named config.middleware

We have tried to rerun

pip install --ignore-installed -r requirements.txt

but nothing changed.

Any help ?

Thanks

Hilde





More information about the ckan-dev mailing list