我正在尝试通过 Pythonscript 连接到 IBM TM1。但是我不确定如何在下面配置我的脚本的地址和端口部分。
我在工作电脑上运行 python。我确实创建了一个带有代理地址的文件以安装 python 包。
有谁知道如何找到地址和端口?
from TM1py.Services import TM1Service
with TM1Service(address='localhost', port=8001, user='excelguy', password='WordPass', ssl=True) as tm1:
content = tm1.cubes.cells.get_view_content(cube_name='Stack', view_name='OverFlow', private=False)
print(content)
我收到错误消息:
ConnectionError: HTTPSConnectionPool(host='localhost', port=8001): Max retries exceeded with url: /api/v1/Configuration/ProductVersion/$value (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000263C25C7A88>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
我想我越来越近了,在从管理员那里获得地址和端口后收到一个新的错误消息。
SSLError: HTTPSConnectionPool(host='host', port=port): Max retries exceeded with url: /api/v1/Configuration/ProductVersion/$value (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')")))