Closed jmliando closed 4 days ago
Please try to run the simplest possible tm1py script in your pycharm environment. Like this:
from TM1py import TM1Service
tm1_params = {
"address": "localhost",
"port": 12354,
"user": "admin",
"password": "apple",
"ssl": True,
}
with TM1Service(**tm1_params) as tm1:
print(tm1.server.get_product_version())
print(tm1.server.get_server_name())
Does that work?
It is hang.
If the Python never completes, it typically indicates an issue with the connection to the TM1 server. Here are some potential causes and their solutions:
ping
or telnet
to test connectivity to the server.address
, port
, user
, password
, or ssl
are incorrect.tm1s.cfg
).UseSSL
setting in tm1s.cfg
).timeout
parameter to TM1Service
initialization (e.g., timeout=60
for a 60-second timeout).TM1py
may cause compatibility issues with the TM1 server.TM1py
.verify=False
in the parameters.ssl
parameter matches the server's SSL configuration.admin
user may be locked out or disabled, or the authentication method is misconfigured.TM1py
connection configuration (e.g., CAM, LDAP, or native authentication).
import logging
logging.basicConfig(level=logging.DEBUG)
Hi Marius
I tried to run samples_setup.py but had an issue with connectionpool.py as you can see in this screenshot. Can you please help me? Thank you
Version
I also try to use the check.py to check the connection but it is hanging after I put TM1 User.