基于Windows测试gpload时出错

时间:2017-03-02 05:33:47

标签: python greenplum hawq

当我尝试从基于Windows的ETL主机执行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

1 个答案:

答案 0 :(得分: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是否正确?请检查一下。

相关问题