[英]CKAN datapusher error 500 datapusher.wsgi cannot be loaded as python module
Im using ckan and want to activate the datapusher plugin. 我正在使用ckan并想要激活datapusher插件。 So I followed the few steps on the ckan page.
因此,我遵循了ckan页面上的几个步骤。 But after the installation I got a 500 error on the port and got this error in the logs:
但是在安装后,我在端口上收到了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'
So it seems to be a problem with the datapusher.wsgi But caused by my tiny knowledge in python and apache I'm not able to solve this problem. 所以这似乎是datapusher.wsgi的问题,但是由于我对python和apache的了解很少,所以我无法解决此问题。
Does someone else experienced this problem and got a workaround for that or knows how to solve it? 其他人是否遇到了这个问题并找到了解决方法,或者知道如何解决?
I had the same problem when I installed it. 安装它时,我遇到了同样的问题。 In my case was because requirements.txt were not installed correctly at the first time.
在我的情况下,因为第一次未正确安装requirements.txt。
I would also suggest to check the configuration in /etc/apache2/sites-available/datapusher and by the way see if /var/log/apache2/datapusher.error.log gives any more clue about it. 我还建议检查/ etc / apache2 / sites-available / datapusher中的配置,并顺便看看/var/log/apache2/datapusher.error.log是否提供了更多有关它的线索。
Be sure that you also have added the configuration of datapusher (ckan.datapusher.url and ckan.site_url) in the .ini file. 请确保您还已在.ini文件中添加了datapusher的配置(ckan.datapusher.url和ckan.site_url)。
Hope it helps to you :) 希望它对您有帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.