0

当我尝试从基于 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
4

1 回答 1

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)

我们可以知道这是import pygresql的错误(安装与否,版本是否正确?)。如果pygresql安装正确,python版本或PATH是否正确?请检查它们。

于 2017-03-10T03:24:27.583 回答