cubewise-code / tm1py

TM1py is a Python package that wraps the TM1 REST API in a simple to use library.
http://tm1py.readthedocs.io/en/latest/
MIT License
187 stars 107 forks source link

Attribute Error #1082

Closed gdbanks closed 5 months ago

gdbanks commented 5 months ago

I am using TM1py 1.11.1, and I am getting the below error message. Traceback (most recent call last): File "D:/Projects/PCC/file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

This is the line of code, which is causing the error

def copy_to_data_folder(file, file_path, target, tm1_inst): with open(file_path, "rb") as file_to_transfer: tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) logging.info(f"file: {file} has been copied to target instance {target}")

MariusWirtz-cubewise commented 5 months ago

I think it should say tm1.files instead of tm1.file

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: gdbanks @.> Sent: Thursday, March 28, 2024 5:59:03 PM To: cubewise-code/tm1py @.> Cc: Subscribed @.***> Subject: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I am using TM1py 1.11.1, and I am getting the below error message. Traceback (most recent call last): File "D:/Projects/PCC/file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

This is the line of code, which is causing the error

def copy_to_data_folder(file, file_path, target, tm1_inst): with open(file_path, "rb") as file_to_transfer: tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) logging.info(f"file: {file} has been copied to target instance {target}")

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

gdbanks commented 5 months ago

Marius, I get the same error message when I change it to 'Files'.

Traceback (most recent call last): File "D:\Projects\PCC\file_transfer_v2.py", line 158, in main() File "D:\Projects\PCC\file_transfer_v2.py", line 126, in main copy_to_data_folder(file, file_path, target, tar_tm1) File "D:\Projects\PCC\file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.files.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'files'

Glen Banks 714-255-5447

[cid:fd7e10b8-9c8f-46c7-8f38-35ec55c389a7]


From: Marius Wirtz @.> Sent: Thursday, March 28, 2024 10:47 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Author @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

I think it should say tm1.files instead of tm1.file

Get Outlook for Androidhttps://aka.ms/AAb9ysghttps://urldefense.com/v3/__https://aka.ms/AAb9ysg*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI-LDTG9Xw$


From: gdbanks @.> Sent: Thursday, March 28, 2024 5:59:03 PM To: cubewise-code/tm1py @.> Cc: Subscribed @.***> Subject: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I am using TM1py 1.11.1, and I am getting the below error message. Traceback (most recent call last): File "D:/Projects/PCC/file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

This is the line of code, which is causing the error

def copy_to_data_folder(file, file_path, target, tm1_inst): with open(file_path, "rb") as file_to_transfer: tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) logging.info(f"file: {file} has been copied to target instance {target}")

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI8rKD0Q4g$, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMIhttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_Odzb7yA$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2025785397__;Iw!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_KJfM0vQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXVBTBFTV6RHRY3ZBMDY2RJR7AVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVG44DKMZZG4__;!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_nDcPgBg$. You are receiving this because you authored the thread.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

MariusWirtz-cubewise commented 5 months ago

Please try to upgrade TM1py

pip install TM1py --upgrade

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: gdbanks @.> Sent: Thursday, March 28, 2024 10:03:12 PM To: cubewise-code/tm1py @.> Cc: Marius Wirtz @.>; Comment @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Marius, I get the same error message when I change it to 'Files'.

Traceback (most recent call last): File "D:\Projects\PCC\file_transfer_v2.py", line 158, in main() File "D:\Projects\PCC\file_transfer_v2.py", line 126, in main copy_to_data_folder(file, file_path, target, tar_tm1) File "D:\Projects\PCC\file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.files.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'files'

Glen Banks 714-255-5447

[cid:fd7e10b8-9c8f-46c7-8f38-35ec55c389a7]


From: Marius Wirtz @.> Sent: Thursday, March 28, 2024 10:47 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Author @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

I think it should say tm1.files instead of tm1.file

Get Outlook for Androidhttps://aka.ms/AAb9ysghttps://urldefense.com/v3/__https://aka.ms/AAb9ysg*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI-LDTG9Xw$


From: gdbanks @.> Sent: Thursday, March 28, 2024 5:59:03 PM To: cubewise-code/tm1py @.> Cc: Subscribed @.***> Subject: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I am using TM1py 1.11.1, and I am getting the below error message. Traceback (most recent call last): File "D:/Projects/PCC/file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

This is the line of code, which is causing the error

def copy_to_data_folder(file, file_path, target, tm1_inst): with open(file_path, "rb") as file_to_transfer: tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) logging.info(f"file: {file} has been copied to target instance {target}")

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI8rKD0Q4g$, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMIhttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_Odzb7yA$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2025785397__;Iw!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_KJfM0vQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXVBTBFTV6RHRY3ZBMDY2RJR7AVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVG44DKMZZG4__;!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_nDcPgBg$. You are receiving this because you authored the thread.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082#issuecomment-2026112969, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJFFPHMBDW6QMET5MN3Y2SARBAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGEYTEOJWHE. You are receiving this because you commented.Message ID: @.***>

gdbanks commented 5 months ago

Marius, I got the following error message when attempting to upgrade TM1py.

C:\Users\GBanks>pip install TM1py --upgrade Requirement already satisfied: TM1py in d:\python39\lib\site-packages (1.9.1) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ Requirement already satisfied: ijson in d:\python39\lib\site-packages (from TM1py) (3.1.4) Requirement already satisfied: requests in d:\python39\lib\site-packages (from TM1py) (2.28.1) Requirement already satisfied: pytz in d:\python39\lib\site-packages (from TM1py) (2022.1) Requirement already satisfied: mdxpy in d:\python39\lib\site-packages (from TM1py) (0.3) Requirement already satisfied: requests_negotiate_sspi in d:\python39\lib\site-packages (from TM1py) (0.5.2) Requirement already satisfied: charset-normalizer<3,>=2 in d:\python39\lib\site-packages (from requests->TM1py) (2.1.0) Requirement already satisfied: idna<4,>=2.5 in d:\python39\lib\site-packages (from requests->TM1py) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\python39\lib\site-packages (from requests->TM1py) (1.26.10) Requirement already satisfied: certifi>=2017.4.17 in d:\python39\lib\site-packages (from requests->TM1py) (2022.6.15) Requirement already satisfied: pypiwin32>=223 in d:\python39\lib\site-packages (from requests_negotiate_sspi->TM1py) (223) Requirement already satisfied: pywin32>=223 in d:\python39\lib\site-packages (from pypiwin32>=223->requests_negotiate_sspi->TM1py) (304)

Glen Banks 714-255-5447

[cid:66a3e402-a11c-422c-82d3-1d25221fbc88]


From: Marius Wirtz @.> Sent: Thursday, March 28, 2024 2:16 PM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Author @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

Please try to upgrade TM1py

pip install TM1py --upgrade

Get Outlook for Androidhttps://aka.ms/AAb9ysghttps://urldefense.com/v3/__https://aka.ms/AAb9ysg*3E__;JQ!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvBPKQfq8A$


From: gdbanks @.> Sent: Thursday, March 28, 2024 10:03:12 PM To: cubewise-code/tm1py @.> Cc: Marius Wirtz @.>; Comment @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Marius, I get the same error message when I change it to 'Files'.

Traceback (most recent call last): File "D:\Projects\PCC\file_transfer_v2.py", line 158, in main() File "D:\Projects\PCC\file_transfer_v2.py", line 126, in main copy_to_data_folder(file, file_path, target, tar_tm1) File "D:\Projects\PCC\file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.files.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'files'

Glen Banks 714-255-5447

[cid:fd7e10b8-9c8f-46c7-8f38-35ec55c389a7]


From: Marius Wirtz @.> Sent: Thursday, March 28, 2024 10:47 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Author @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

I think it should say tm1.files instead of tm1.file

Get Outlook for Androidhttps://aka.ms/AAb9ysghttps://urldefense.com/v3/__https://aka.ms/AAb9ysg*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI-LDTG9Xw$https://urldefense.com/v3/__https://aka.ms/AAb9ysg*3E*3Chttps:/*urldefense.com/v3/__https:/*aka.ms/AAb9ysg*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI-LDTG9Xw$*3E__;JSUvLyol!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvCFVe7qFQ$


From: gdbanks @.> Sent: Thursday, March 28, 2024 5:59:03 PM To: cubewise-code/tm1py @.> Cc: Subscribed @.***> Subject: [cubewise-code/tm1py] Attribute Error (Issue #1082)

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I am using TM1py 1.11.1, and I am getting the below error message. Traceback (most recent call last): File "D:/Projects/PCC/file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

This is the line of code, which is causing the error

def copy_to_data_folder(file, file_path, target, tm1_inst): with open(file_path, "rb") as file_to_transfer: tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) logging.info(f"file: {file} has been copied to target instance {target}")

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI8rKD0Q4g$https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*3E*3Chttps:/*urldefense.com/v3/__https:/*github.com/cubewise-code/tm1py/issues/1082*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI8rKD0Q4g$*3E__;JSUvLyol!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvDNsKfhWQ$, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMIhttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_Odzb7yA$https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI*3E*3Chttps:/*urldefense.com/v3/__https:/*github.com/notifications/unsubscribe-auth/AHLDPJAWUFVKYPOZBAH54DLY2RD5PAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZQGY3TKMI*3E__;JQ!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_Odzb7yA$*3E__;JSUvLyol!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvC2m4hPOA$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2025785397__;Iw!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_KJfM0vQ$%3E, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXVBTBFTV6RHRY3ZBMDY2RJR7AVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVG44DKMZZG4__;!!Fat92My4sJ5u0kQe!x-n8bmiubYiOdnoObYrJ4vJCRrkZpgcV3uMiCU_nILijkCcglJ5QGwS9a2vVNvZE7-5es2HNqmAmaCYivJb0jI_nDcPgBg$%3E. You are receiving this because you authored the thread.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

— Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/1082#issuecomment-2026112969https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2026112969*3E__;IyU!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvCD_D9geQ$, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHLDPJFFPHMBDW6QMET5MN3Y2SARBAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGEYTEOJWHEhttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHLDPJFFPHMBDW6QMET5MN3Y2SARBAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGEYTEOJWHE*3E__;JQ!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvAymNrSdw$. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2026141964__;Iw!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvDRQZtECg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXU6LZCPFGNFGLMJTLLY2SCBTAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGE2DCOJWGQ__;!!Fat92My4sJ5u0kQe!x9iO-TU49AivCSmedbDanp-3yV4f1EykXOsqHFXSptautA4TJjq-qU7HlF_L-0c3LQNBoRevMJrAIn5Yy0ArUvAm9kYxhg$. You are receiving this because you authored the thread.Message ID: @.***>

MariusWirtz commented 5 months ago

@gdbanks, were you able to resolve this?

gdbanks commented 5 months ago

Marius, Not yet. I am working with our IT to resolve the issue with installing the upgrade.

Glen Banks 714-255-5447

[cid:50afaa39-7e49-44e5-965a-5a9a616e84e3]


From: Marius Wirtz @.> Sent: Thursday, April 4, 2024 9:12 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

@gdbankshttps://urldefense.com/v3/__https://github.com/gdbanks__;!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbSh39VAQ$, were you able to resolve this?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2037634808__;Iw!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbW6UV6Mw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXS7KILY5KQHDWA7STLY3V3XPAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGYZTIOBQHA__;!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbTa60Y3A$. You are receiving this because you were mentioned.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

gdbanks commented 5 months ago

Marius, IT has been able to resolve the installation issue. Also, I do not know why it is looking at python39 instead of python 311.

C:\Users\GBanks>pip install tm1py --upgrade Requirement already satisfied: tm1py in d:\python39\lib\site-packages (1.9.1) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/tm1py/ Requirement already satisfied: ijson in d:\python39\lib\site-packages (from tm1py) (3.1.4) Requirement already satisfied: requests in d:\python39\lib\site-packages (from tm1py) (2.28.1) Requirement already satisfied: pytz in d:\python39\lib\site-packages (from tm1py) (2022.1) Requirement already satisfied: mdxpy in d:\python39\lib\site-packages (from tm1py) (0.3) Requirement already satisfied: requests_negotiate_sspi in d:\python39\lib\site-packages (from tm1py) (0.5.2) Requirement already satisfied: charset-normalizer<3,>=2 in d:\python39\lib\site-packages (from requests->tm1py) (2.1.0) Requirement already satisfied: idna<4,>=2.5 in d:\python39\lib\site-packages (from requests->tm1py) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\python39\lib\site-packages (from requests->tm1py) (1.26.10) Requirement already satisfied: certifi>=2017.4.17 in d:\python39\lib\site-packages (from requests->tm1py) (2022.6.15) Requirement already satisfied: pypiwin32>=223 in d:\python39\lib\site-packages (from requests_negotiate_sspi->tm1py) (223) Requirement already satisfied: pywin32>=223 in d:\python39\lib\site-packages (from pypiwin32>=223->requests_negotiate_sspi->tm1py) (304) Glen Banks 714-255-5447

[cid:ac78e025-9155-41fb-8a03-66f4e1b82da3]


From: Glen Banks @.> Sent: Thursday, April 4, 2024 9:13 AM To: cubewise-code/tm1py @.>; cubewise-code/tm1py @.> Cc: Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

Marius, Not yet. I am working with our IT to resolve the issue with installing the upgrade.

Glen Banks 714-255-5447

[cid:50afaa39-7e49-44e5-965a-5a9a616e84e3]


From: Marius Wirtz @.> Sent: Thursday, April 4, 2024 9:12 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

@gdbankshttps://urldefense.com/v3/__https://github.com/gdbanks__;!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbSh39VAQ$, were you able to resolve this?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*issuecomment-2037634808__;Iw!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbW6UV6Mw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXS7KILY5KQHDWA7STLY3V3XPAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGYZTIOBQHA__;!!Fat92My4sJ5u0kQe!yb_E213JKXtCO1DzBTQo61K3GOiaZ3vUd0X2NBLiZ7EjNs80bqWq7GNL7QoD3613WMkqn8NBDnY6OJae2vDYAqbTa60Y3A$. You are receiving this because you were mentioned.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

gdbanks commented 5 months ago

Marius, I am sorry, I meant to say IT was unable to resolve the issue. The error message below is what I am seeing now.

How do I install the upgrade without running a pip command?

Glen Banks 714-255-5447

[cid:195c79a2-6af9-4848-bd5b-a462b488baca]


From: Marius Wirtz @.> Sent: Friday, April 5, 2024 12:44 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

Closed #1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqUjVFboQ$ as completed.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*event-12369446941__;Iw!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqi0tUrsg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXR3NSZIIAXHUUPVY2DY3ZI5NAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGM3DSNBUGY4TIMI__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffrW1z_ytg$. You are receiving this because you were mentioned.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

gdbanks commented 5 months ago

MArius, I upgraded to tm1py, but I am still seeing the error message below. I have attached the python script.

D:\Python39\python.exe D:/Projects/PCC/file_transfer_v2.py Starting File Transfer from Directory... Connected to the PythonControlCenter instance Looking for files in ..{('1002',): ['FinancialReporting', 'D:\Projects\PCC\file_transfer\financialreporting']} directories target is FinancialReporting instance connecting to target instance FinancialReporting Traceback (most recent call last): File "D:\Projects\PCC\file_transfer_v2.py", line 158, in main() File "D:\Projects\PCC\file_transfer_v2.py", line 126, in main copy_to_data_folder(file, file_path, target, tar_tm1) File "D:\Projects\PCC\file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

Process finished with exit code 1

Glen Banks 714-255-5447

[cid:601dacae-0316-4fcb-b571-233e97895e0e]


From: Glen Banks @.> Sent: Friday, April 5, 2024 7:28 AM To: cubewise-code/tm1py @.>; cubewise-code/tm1py @.> Cc: Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

Marius, I am sorry, I meant to say IT was unable to resolve the issue. The error message below is what I am seeing now.

How do I install the upgrade without running a pip command?

Glen Banks 714-255-5447

[cid:195c79a2-6af9-4848-bd5b-a462b488baca]


From: Marius Wirtz @.> Sent: Friday, April 5, 2024 12:44 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

Closed #1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqUjVFboQ$ as completed.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*event-12369446941__;Iw!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqi0tUrsg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXR3NSZIIAXHUUPVY2DY3ZI5NAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGM3DSNBUGY4TIMI__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffrW1z_ytg$. You are receiving this because you were mentioned.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.

gdbanks commented 5 months ago

Marius, The ticket can be closed. I found out that I was using the wrong Python interpreter, once I changed it from python39 to python311 the code ran without issue.

Glen Banks 714-255-5447

[cid:cf5ecbe2-2450-4f28-9a08-c31e209701ae]


From: Glen Banks @.> Sent: Friday, April 5, 2024 10:38 AM To: cubewise-code/tm1py @.>; cubewise-code/tm1py @.> Cc: Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

MArius, I upgraded to tm1py, but I am still seeing the error message below. I have attached the python script.

D:\Python39\python.exe D:/Projects/PCC/file_transfer_v2.py Starting File Transfer from Directory... Connected to the PythonControlCenter instance Looking for files in ..{('1002',): ['FinancialReporting', 'D:\Projects\PCC\file_transfer\financialreporting']} directories target is FinancialReporting instance connecting to target instance FinancialReporting Traceback (most recent call last): File "D:\Projects\PCC\file_transfer_v2.py", line 158, in main() File "D:\Projects\PCC\file_transfer_v2.py", line 126, in main copy_to_data_folder(file, file_path, target, tar_tm1) File "D:\Projects\PCC\file_transfer_v2.py", line 139, in copy_to_data_folder tm1_inst.file.update_or_create(file, file_content=file_to_transfer.read()) AttributeError: 'TM1Service' object has no attribute 'file'

Process finished with exit code 1

Glen Banks 714-255-5447

[cid:601dacae-0316-4fcb-b571-233e97895e0e]


From: Glen Banks @.> Sent: Friday, April 5, 2024 7:28 AM To: cubewise-code/tm1py @.>; cubewise-code/tm1py @.> Cc: Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

Marius, I am sorry, I meant to say IT was unable to resolve the issue. The error message below is what I am seeing now.

How do I install the upgrade without running a pip command?

Glen Banks 714-255-5447

[cid:195c79a2-6af9-4848-bd5b-a462b488baca]


From: Marius Wirtz @.> Sent: Friday, April 5, 2024 12:44 AM To: cubewise-code/tm1py @.> Cc: Glen Banks @.>; Mention @.> Subject: Re: [cubewise-code/tm1py] Attribute Error (Issue #1082)

External eMail: Do not open attachments or click on links unless you expected to receive them from a trusted sender.

Closed #1082https://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqUjVFboQ$ as completed.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/cubewise-code/tm1py/issues/1082*event-12369446941__;Iw!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffqi0tUrsg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVAUYXR3NSZIIAXHUUPVY2DY3ZI5NAVCNFSM6AAAAABFNEUSHKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGM3DSNBUGY4TIMI__;!!Fat92My4sJ5u0kQe!yfvgUT9oEgfGaLrnZBx0MVV5SqfhTMU66kKk35WB36maI-c_3L_U93zGt3y8xFh7PTatKHZnqIo9i1-2cUgWffrW1z_ytg$. You are receiving this because you were mentioned.Message ID: @.***>


This e-mail message, including any attachments, is for the sole use of the intended recipient, and may contain material that is privileged or confidential and legally protected from disclosure. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments.