简体   繁体   English

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

[英]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.

相关问题 在 CKAN 中上传文件但收到“无法连接到 DataPusher”错误 - Uploading files in CKAN but received 'Could not connect to DataPusher' error WSGI脚本无法作为Python模块加载— 500内部服务器错误 - WSGI Script Cannot Be Loaded as Python Module — 500 Internal Server Error CKAN安装错误:站点ckan_default和datapusher不存在 - CKAN installation errors: Sites ckan_default and datapusher do not exist WSGI无法作为Python模块加载 - WSGI cannot be loaded as Python module ckan datapusher / api / 3 / action / resource_show(由...引起) <class 'socket.error'> :[Errno 111]连接拒绝)错误 - ckan datapusher /api/3/action/resource_show (Caused by <class 'socket.error'>: [Errno 111] Connection refused) error 目标 WSGI 脚本不能作为 python 模块加载 - Target WSGI script cannot be loaded as a python module 无法将目标 WSGI 脚本加载为 Python 模块 - Target WSGI script cannot be loaded as Python module mod_wsgi目标WSGI脚本无法作为Python模块加载 - mod_wsgi Target WSGI script cannot be loaded as Python module 目标WSGI脚本wsgi.py&#39;无法作为Python模块加载 - Target WSGI script wsgi.py' cannot be loaded as Python module 无法解决“wsgi.py无法作为Python模块加载”错误,即使在django中创建一个新项目时也是如此 - Cannot resolve “wsgi.py cannot be loaded as a Python module” error, even when making a fresh project in django
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM