Closed hmenda closed 4 years ago
I am using Pycharm for TM1py. I am getting below error while running a samples provided in the https://github.com/cubewise-code/TM1py-samples
Script I ran: from TM1py import TM1Service
ADDRESS = "localhost" PORT = 8111 USER = "admin" PASSWORD = "apple" SSL = True
with TM1Service(address=ADDRESS, port=PORT, user=USER, password=PASSWORD) as tm1: c = tm1.cubes.get('PNLCube') print(c) print(c.dimensions) if c.has_rules: print(c.rules)
d_names = tm1.dimensions.get('account1') print(d_names)
Error screenshot
Note: The above script is working in other text editors like Sublime and atom.
I tried installing Pycharm again and selected my base interpreter as my installed version. It's working now.
I am using Pycharm for TM1py. I am getting below error while running a samples provided in the https://github.com/cubewise-code/TM1py-samples
Script I ran: from TM1py import TM1Service
ADDRESS = "localhost" PORT = 8111 USER = "admin" PASSWORD = "apple" SSL = True
with TM1Service(address=ADDRESS, port=PORT, user=USER, password=PASSWORD) as tm1: c = tm1.cubes.get('PNLCube') print(c) print(c.dimensions) if c.has_rules: print(c.rules)
Error screenshot
Note: The above script is working in other text editors like Sublime and atom.