CKAN Install: paster error

后端 未结 2 1254
耶瑟儿~
耶瑟儿~ 2021-02-10 09:42

Installing CKAN locally on OSX 10.9, based on http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html.

I\'ve created and activated the python virt

相关标签:
2条回答
  • 2021-02-10 09:56

    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.

    0 讨论(0)
  • 2021-02-10 10:02

    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
    0 讨论(0)
提交回复
热议问题