CKAN Install: paster error

不问归期 提交于 2019-12-03 09:19:44

ImportError: No module named pylons.util looks like Python cannot find the Pylons package, one of the Python packages that CKAN depends on. Two possibilities come to mind:

  1. Did you activate your CKAN virtualenv, before running the paster command? ~/ckan/default/bin/activate.

  2. Have you installed the Python packages that CKAN depends on into your virtualenv? With the virtualenv activated run pip install -r ~/ckan/default/src/ckan/requirements.txt

If you activate your CKAN virtual environment and then run pip freeze | grep pylons, this should tell you whether pylons is installed in the virtualenv.

The Distribution already installed: at the top of your terminal output is strange.

I had the same error and a slightly different solution:

  1. got the error only after using sudo, so I went out of it (sudo -k)
  2. then I got the following error: IOError: [Errno 13] Permission denied: '/etc/ckan/default/development.ini'
  3. after digging around a lot, I finally found out that while the /etc/ckan had correct permissions, it was actually a symlink to ~/ckan/etc and that folder did not have correct permissions
  4. I ran sudo chown -R `whoami` ~/ckan/etc and followed up with paster make-config ckan /etc/ckan/default/development.ini
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!