Replies: 2 comments 2 replies
-
What is the error?
From: PaulS-TM1 ***@***.***>
Reply-To: cubewise-code/tm1py ***@***.***>
Date: Friday, January 24, 2025 at 11:56 AM
To: cubewise-code/tm1py ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [cubewise-code/tm1py] Import get_error_log_file_content (Discussion #1220)
I'm attempting to read the contents of an error log by using get_error_log_file_content, but can't find the correct syntax to get it loaded - I've tried from TM1py.Services.ProcessService import get_error_log_file_content amongst others, but I'm still getting an error. I have looked for an example, but can't find anything. Any help would be appreciated.
TIA
Paul
—
Reply to this email directly, view it on GitHub<#1220>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZWQCXW2KRTVCMHUO6D2MJWFFAVCNFSM6AAAAABV2CY6R6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXHA3DOMJSGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
You don’t need to import the function. The only thing that needs importing is the TM1Service
import TM1py
from TM1py import TM1Service
with TM1Service(address="myhost", port="8010", user="admin", password="apple", ssl=True) as tm1:
#get a list of logs
logs = tm1.processes.get_processerrorlogs('myprocessname')
log_content = tm1.processes.get_error_log_file_content('log_file_name')
From: PaulS-TM1 ***@***.***>
Reply-To: cubewise-code/tm1py ***@***.***>
Date: Friday, January 24, 2025 at 12:02 PM
To: cubewise-code/tm1py ***@***.***>
Cc: "Clapp, Ryan" ***@***.***>, Comment ***@***.***>
Subject: Re: [cubewise-code/tm1py] Import get_error_log_file_content (Discussion #1220)
`Traceback (most recent call last):
File "C:\Python312\tb1.py", line 22, in
from TM1py.Services.ProcessService import get_error_log_file_content
ImportError: cannot import name 'get_error_log_file_content' from 'TM1py.Services.ProcessService' (C:\Python312\Lib\site-packages\TM1py\Services\ProcessService.py)
`
—
Reply to this email directly, view it on GitHub<#1220 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZVR4TAEDK5H7334J732MJWXHAVCNFSM6AAAAABV2CY6R6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJUGU2TSOI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to read the contents of an error log by using get_error_log_file_content, but can't find the correct syntax to get it loaded - I've tried
from TM1py.Services.ProcessService import get_error_log_file_content
amongst others, but I'm still getting an error. I have looked for an example, but can't find anything. Any help would be appreciated.TIA
Paul
Beta Was this translation helpful? Give feedback.
All reactions