PyCharm error #711
Replies: 13 comments 10 replies
-
Did you import if not do so,
|
Beta Was this translation helpful? Give feedback.
-
I added “from TM1py import TM1Service”. It’s failing now in the RestService.py script.
Get_Product_Version.py test code.
***@***.***
***@***.***
From: Vinoth Kumar Ravi ***@***.***>
Sent: Thursday, April 7, 2022 12:24 AM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Did you import TM1Service?
if not do so,
from TM1py import TM1Service
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYFVIQVNG5N3RC25DGTVDZPMTANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
CAM without SSO
Kind Regards,
Rick Stevenson
Managing Director
908-399-5158
On Apr 7, 2022, at 5:49 PM, Josh.R ***@***.***> wrote:
How do you actually connect to model, i.e. what security model do you use?
—
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYDPHAFCQL2GAWWAK3LVD5J7HANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have tried that, I try it again. It works in Postman with the domain prefix.
From: Josh.R ***@***.***>
Sent: Thursday, April 7, 2022 6:15 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Have you tried dropping the namespace reference from the username? i.e. just 'rstevenson'
—
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYH5YBCUQ274XEV55FDVD5M5XANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
I have the decode_b64 commented out, so password not encoded.
Is the user specified correctly with the r to handle the backspace character?
user=r'ForQuest\rstevenson',
What else can I try?
From: Josh.R ***@***.***>
Sent: Thursday, April 7, 2022 6:56 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Dumb question but assume you have encoded your password in base64 given you are using the decode_b64=True?
—
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYB5AJXC7PGDNBJQZC3VD5RXPANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Can you please provide more information on the exception you are seeing. Copy and Paste the exception if you can.
From: "Josh.R" ***@***.***>
Reply-To: cubewise-code/tm1py ***@***.***>
Date: Thursday, April 7, 2022 at 4:10 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
user=r'ForQuest\rstevenson'
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZSIGBJMHHNDWTHHMMTVD5TMHANCNFSM5SX35UJA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Let me know if this helps and you can see the 2 images.
***@***.***
***@***.***
From: Ryan Clapp ***@***.***>
Sent: Thursday, April 7, 2022 7:11 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Can you please provide more information on the exception you are seeing. Copy and Paste the exception if you can.
From: "Josh.R" ***@***.***<mailto:***@***.***>>
Reply-To: cubewise-code/tm1py ***@***.***<mailto:***@***.***>>
Date: Thursday, April 7, 2022 at 4:10 PM
To: cubewise-code/tm1py ***@***.***<mailto:***@***.***>>
Cc: Subscribed ***@***.***<mailto:***@***.***>>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
user=r'ForQuest\rstevenson'
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZSIGBJMHHNDWTHHMMTVD5TMHANCNFSM5SX35UJA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYDDRHTM7XZS437L2P3VD5TQ3ANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
No sorry images are not coming through
…Sent from my mobile device
On Apr 7, 2022 5:25 PM, Rick ***@***.***> wrote:
Let me know if this helps and you can see the 2 images.
***@***.***
***@***.***
From: Ryan Clapp ***@***.***>
Sent: Thursday, April 7, 2022 7:11 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Can you please provide more information on the exception you are seeing. Copy and Paste the exception if you can.
From: "Josh.R" ***@***.***<mailto:***@***.***>>
Reply-To: cubewise-code/tm1py ***@***.***<mailto:***@***.***>>
Date: Thursday, April 7, 2022 at 4:10 PM
To: cubewise-code/tm1py ***@***.***<mailto:***@***.***>>
Cc: Subscribed ***@***.***<mailto:***@***.***>>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
user=r'ForQuest\rstevenson'
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZSIGBJMHHNDWTHHMMTVD5TMHANCNFSM5SX35UJA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***<mailto:***@***.***>>
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYDDRHTM7XZS437L2P3VD5TQ3ANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZWES7TSTVG4OS66UE3VD54DBANCNFSM5SX35UJA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I posted the images directly, let me know if that worked.
From: Ryan Clapp ***@***.***>
Sent: Thursday, April 7, 2022 8:47 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
No sorry images are not coming through
…Sent from my mobile device
On Apr 7, 2022 5:25 PM, Rick ***@***.***<mailto:***@***.***>> wrote:
Let me know if this helps and you can see the 2 images.
***@***.***<mailto:***@***.***>
***@***.***<mailto:***@***.***>
From: Ryan Clapp ***@***.***<mailto:***@***.***>>
Sent: Thursday, April 7, 2022 7:11 PM
To: cubewise-code/tm1py ***@***.***<mailto:***@***.***>>
Cc: Rick Stevenson ***@***.***<mailto:***@***.***>>; Author ***@***.***<mailto:***@***.***>>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Can you please provide more information on the exception you are seeing. Copy and Paste the exception if you can.
From: "Josh.R" ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
Reply-To: cubewise-code/tm1py ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
Date: Thursday, April 7, 2022 at 4:10 PM
To: cubewise-code/tm1py ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
Cc: Subscribed ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
user=r'ForQuest\rstevenson'
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZSIGBJMHHNDWTHHMMTVD5TMHANCNFSM5SX35UJA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***<mailto:***@***.***<mailto:***@***.***%3cmailto:***@***.***>>>
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYDDRHTM7XZS437L2P3VD5TQ3ANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***<mailto:***@***.******@***.***>>>
-
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZWES7TSTVG4OS66UE3VD54DBANCNFSM5SX35UJA>.
You are receiving this because you commented.Message ID: ***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYGUXTNKCX4ARMHDVADVD56WRANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Check.py to FOR works.
Kind Regards,
Rick Stevenson
Managing Director
908-399-5158
On Apr 7, 2022, at 9:34 PM, nswan ***@***.***> wrote:
You could also see if the check.py works for you in the samples. (https://code.cubewise.com/tm1py-help-content/check-connectivity-with-tm1 )
—
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYG4XZ6ZXFOKWQAYEVDVD6EIPANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just remove base url and you should be okay
…Sent from my mobile device
On Apr 7, 2022 8:51 PM, nswan ***@***.***> wrote:
Hi Rick, this is a good sign. In the TM1Service connection (image you posted earlier), please only include the following parameters/arguments
* address
* port
* user
* password
* ssl
* gateway
* namespace
-
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZQOFP4NV57CXD4YVVDVD6UKRANCNFSM5SX35UJA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That worked, thanks!
From: Ryan Clapp ***@***.***>
Sent: Thursday, April 7, 2022 11:58 PM
To: cubewise-code/tm1py ***@***.***>
Cc: Rick Stevenson ***@***.***>; Author ***@***.***>
Subject: Re: [cubewise-code/tm1py] PyCharm error (Discussion #711)
Just remove base url and you should be okay
…Sent from my mobile device
On Apr 7, 2022 8:51 PM, nswan ***@***.***<mailto:***@***.***>> wrote:
Hi Rick, this is a good sign. In the TM1Service connection (image you posted earlier), please only include the following parameters/arguments
* address
* port
* user
* password
* ssl
* gateway
* namespace
-
Reply to this email directly, view it on GitHub<#711 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEK7GZQOFP4NV57CXD4YVVDVD6UKRANCNFSM5SX35UJA>.
You are receiving this because you commented.Message ID: ***@***.***<mailto:***@***.***>>
—
Reply to this email directly, view it on GitHub<#711 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHZMYCW4B736LSLD2LPGCDVD6VFBANCNFSM5SX35UJA>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Getting an error: {NameError}name 'TM1Service' is not defined
Python Code:
with TM1Service(
Is the use of the 'r' character correct to handle the backslash \ ?
Beta Was this translation helpful? Give feedback.
All reactions