2017-03-02 609 views
0

當我嘗試從基於Windows的ETL主機執行gpload時。當基於Windows測試gpload時出錯

在Windows環境下使用gpload產生以下錯誤:

錯誤我得到:

gpload.py -f gpload.yml

gpload was unable to import The PyGreSQL Python module (pg.py) - DLL load failed with error code 193 
+0

嘗試安裝Python 2.5的32位版本而不是64位版本。 –

+0

謝謝喬恩。我安裝了它,它爲我工作。立即獲取此錯誤代碼-hpp響應代碼404 from gpfdist – NEO

+0

嘗試直接運行gpfdist.exe並查看是否能夠啓動該進程。這可能是一個簡單的端口衝突或反病毒程序停止的過程。 –

回答

1

您應該檢查是否正確或沒有安裝pygresql。因爲從gpload代碼

try: 
    from pygresql import pg 
except Exception, e: 
    errorMsg = "gpload was unable to import The PyGreSQL Python module (pg.py) - %s\n" % str(e) 
    sys.stderr.write(str(errorMsg)) 
    sys.exit(2) 

我們可以知道,這是關於進口pygresql錯誤(或不安裝,版本是吧?)。如果pygresql安裝正確,python版本或PATH是否正確?請檢查它們。

+0

解決此錯誤。但是,gpload插入不能從Windows工作。 – NEO

+0

當我試圖從Windows命令提示符執行。 gpload工作正常。但是,當嘗試使用tgreenplumGPload無法正常工作時自動化進程。 – NEO