未验证 提交 4d386383 编写于 作者: R Ryan Zhang 提交者: GitHub

removed wrong errormsg which shows on Windows in gpload.py (#9867)

Co-authored-by: NRyan <ryan@chapterx.com>
上级 88d85449
......@@ -38,14 +38,7 @@ import platform
try:
from pygresql import pg
except Exception, e:
from struct import calcsize
sysWordSize = calcsize("P") * 8
if (platform.system()) in ['Windows', 'Microsoft'] and (sysWordSize == 64):
errorMsg = "gpload appears to be running in 64-bit Python under Windows.\n"
errorMsg = errorMsg + "Currently only 32-bit Python is supported. Please \n"
errorMsg = errorMsg + "reinstall a 32-bit Python interpreter.\n"
else:
errorMsg = "gpload was unable to import The PyGreSQL Python module (pg.py) - %s\n" % str(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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册