您好,iObjects Python 组件包解压后可从 iobjectspy 目录下看到目前支持的 python 版本,如下图所示:
关于 iObjects Java 组件的导入问题,请详细描述具体遇到了什么问题,以便我们根据具体的问题情况和异常信息分析问题原因;
关于 iObjects 组件的许可配置说明,建议参考 iObjects 组件 help 目录下的帮助文档,里面有详细说明,如下图所示:
希望可以帮到您。
好的,我这里iobjectspy安装是正常的,但是设置iobjectspy.set_iobjects_java_path之后,会出现报错,执行iobjectspy.Workspace()后,报错为
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\_gateway.py", line 115, in run File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "/usr/local/lib/python3.7/subprocess.py", line 1567, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'java': 'java'
配置好JDK环境后还是会报错,信息为:
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/py4j/java_gateway.py", line 985, in send_command response = connection.send_command(command) File "/usr/local/lib/python3.7/site-packages/py4j/java_gateway.py", line 1164, in send_command "Error while receiving", e, proto.ERROR_ON_RECEIVE) py4j.protocol.Py4JNetworkError: Error while receiving Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\data\ws.py", line 382, in __new__ File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\data\_jvm.py", line 6, in __init__ File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\_gateway.py", line 280, in get_jvm File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\_gateway.py", line 227, in gateway File "D:\BuildAgent\work\test_master/iobjectspy/_jsuperpy\env.py", line 235, in _set_all_to_java File "/usr/local/lib/python3.7/site-packages/py4j/java_gateway.py", line 1598, in __getattr__ raise Py4JError("{0} does not exist in the JVM".format(new_fqn)) py4j.protocol.Py4JError: com.supermap.data.Environment does not exist in the JVM