[英]Uploading files in CKAN but received 'Could not connect to DataPusher' error
[英]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.