繁体   English   中英

CKAN datapusher错误500 datapusher.wsgi无法作为python模块加载

[英]CKAN datapusher error 500 datapusher.wsgi cannot be loaded as python module

我正在使用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的了解很少,所以我无法解决此问题。

其他人是否遇到了这个问题并找到了解决方法,或者知道如何解决?

安装它时,我遇到了同样的问题。 在我的情况下,因为第一次未正确安装requirements.txt。

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

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

希望它对您有帮助:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM