【问题标题】:CKAN datapusher error 500 datapusher.wsgi cannot be loaded as python moduleCKAN datapusher 错误 500 datapusher.wsgi 无法加载为 python 模块
【发布时间】:2015-04-08 10:05:08
【问题描述】:

我正在使用 ckan 并想激活 datapusher 插件。所以我按照ckan页面上的几个步骤进行操作。但安装后我在端口上收到 500 错误,并在日志中收到此错误:

 mod_wsgi (pid=536): Target WSGI script '/etc/ckan/datapusher.wsgi' cannot be loaded as Python module.
 mod_wsgi (pid=536): Exception occurred processing WSGI script '/etc/ckan/datapusher.wsgi'.
 Traceback (most recent call last):
 File "/etc/ckan/datapusher.wsgi", line 10, in <module>
 web.init()
 AttributeError: 'module' object has no attribute 'init'

看来datapusher.wsgi有问题 但是由于我对python和apache的了解很少,我无法解决这个问题。

其他人是否遇到过此问题并找到解决方法或知道如何解决?

【问题讨论】:

    标签: python apache wsgi ckan


    【解决方案1】:

    我在安装时遇到了同样的问题。就我而言,是因为第一次没有正确安装 requirements.txt。

    我还建议检查 /etc/apache2/sites-available/datapusher 中的配置,顺便看看 /var/log/apache2/datapusher.error.log 是否提供更多线索。

    请确保您在 .ini 文件中也添加了 datapusher 的配置(ckan.datapusher.url 和 ckan.site_url)。

    希望对你有帮助:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-11
      • 1970-01-01
      • 2014-05-19
      • 2020-10-31
      • 2020-03-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多