
尝试 "全流程AI" 中的 "PLPython Fenced模式" 时,我编译opengauss(版本3.1.1)时已经加了 --with-python选项: ./configure --gcc-version=7.3.0 CC=g++ CFLAGS="-O2 -g3" --prefix=/mnt/disk01/OpenGauss/release-opengauss-server --3rd=/mnt/disk01/OpenGauss/openGauss-third_party_binarylibs_3.1.0 --enable-thread-safety --with-readline --without-zlib --enable-mot --with-python 然后也配置了 unix_socket_directory 启动后也看到了 ”gaussdb fenced UDF master process“ 使用python是从源码编译的3.8.2 ,安装了opengauss的3.1.1的psycopg2 但是尝试create extension时,报下面的错误,编译opengauss时,没有指定plpython为python2还是python3,也不知道怎么指定 请问是还有哪一步我没做吗? [postgres@qinh154 hadb-opengauss]$ ps -ef|grep gaussdb postgres 22400 1 3 15:27 ? 00:00:18 /mnt/disk01/hadb-opengauss/opengauss/bin/gaussdb -D _pg_root postgres 22448 22400 0 15:27 ? 00:00:00 gaussdb fenced UDF master process postgres 24957 19062 0 15:36 pts/0 00:00:00 grep --color=auto gaussdb [postgres@qinh154 hadb-opengauss]$ gsql -p5432 -h127.0.0.1 -WPostgres123 -r gsql ((openGauss 3.1.1 build 6eeaae6b) compiled at 2023-02-13 19:26:56 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# create extension plpython3u; ERROR: new language is not yet supported. openGauss=# create extension plpythonu; ERROR: could not open extension control file: No such file or directory openGauss=# 新大陆软件 秦浩 mobile: 17625988619 e-mail:qinhao@newland.com.cn

openGauss社区代码在PL/Python 加载这块的逻辑被修改,已提交 issue, 通过下列 issue 跟踪该问题。 https://gitee.com/opengauss/openGauss-server/issues/I6F2JZ?from=project-issu... -----邮件原件----- 发件人: qinhao@newland.com.cn [mailto:qinhao@newland.com.cn] 发送时间: 2023年2月14日 15:56 收件人: ai <ai@opengauss.org> 主题: [AI] fence模式配置 plpython 报错 尝试 "全流程AI" 中的 "PLPython Fenced模式" 时,我编译opengauss(版本3.1.1)时已经加了 --with-python选项: ./configure --gcc-version=7.3.0 CC=g++ CFLAGS="-O2 -g3" --prefix=/mnt/disk01/OpenGauss/release-opengauss-server --3rd=/mnt/disk01/OpenGauss/openGauss-third_party_binarylibs_3.1.0 --enable-thread-safety --with-readline --without-zlib --enable-mot --with-python 然后也配置了 unix_socket_directory 启动后也看到了 ”gaussdb fenced UDF master process“ 使用python是从源码编译的3.8.2 ,安装了opengauss的3.1.1的psycopg2 但是尝试create extension时,报下面的错误,编译opengauss时,没有指定plpython为python2还是python3,也不知道怎么指定 请问是还有哪一步我没做吗? [postgres@qinh154 hadb-opengauss]$ ps -ef|grep gaussdb postgres 22400 1 3 15:27 ? 00:00:18 /mnt/disk01/hadb-opengauss/opengauss/bin/gaussdb -D _pg_root postgres 22448 22400 0 15:27 ? 00:00:00 gaussdb fenced UDF master process postgres 24957 19062 0 15:36 pts/0 00:00:00 grep --color=auto gaussdb [postgres@qinh154 hadb-opengauss]$ gsql -p5432 -h127.0.0.1 -WPostgres123 -r gsql ((openGauss 3.1.1 build 6eeaae6b) compiled at 2023-02-13 19:26:56 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# create extension plpython3u; ERROR: new language is not yet supported. openGauss=# create extension plpythonu; ERROR: could not open extension control file: No such file or directory openGauss=# 新大陆软件 秦浩 mobile: 17625988619 e-mail:qinhao@newland.com.cn _______________________________________________ AI mailing list -- ai@opengauss.org To unsubscribe send an email to ai-leave@opengauss.org
participants (2)
-
qinhao@newland.com.cn
-
Wangtianqing (Tianqing Wang, Gauss Lab)