I'm rewriting a working COM object and upgrading it from boto to boto3 because older version was unable to connect properly with newer regional endpoints. I've worked around the problem where boto3 needs to know where some external files:aws_data_files = [('data', ['data/_endpoints.json',
'data/_retry.json',
'data/cacert.pem']),
('data/s3/2006-03-01', ['data/s3/2006-03-01/service-2.json',
'data/s3/2006-03-01/paginators-1.json',
'data/s3/2006-03-01/waiters-2.json'])
]
are located when the program is frozen with py2exe and for normal program this works fine. I've spent about 8 hours trying to figure out where these files should be located when you are using boto3 from inside a Windows COM object. It is unclear where the "data" folder should be placed when you are running inside a COM object and I can't find a workaround that would allow me to explicitly include these files.I keep getting the following traceback:Python COM server Internal Error: Unexpected Python Error: Traceback(most recent call last):File: "win32com\server\policy.pyc", line 277, in InvokeFile: "winrecom\server\policy.pyc", line 282, in invokeFile: "winrecom\server\policy.pyc", line 585, in invokeexFile: "verifyIAMCOM.pyc", line 103, in validateFile: "boto3\session.pyc", line 263 in clientFile: "botocore\session.pyc", line 816 in create_clientFile: "botocore\session.pyc", line 691, in get_componentFile: "botocore\session.pyc", line 885, in get_componentFile: "botocore\session.pyc", line 184, in create_default_resolverFile: "botocore\loaders.pyc", line 123, in _wrapperFile: "botocore\loaders.pyc", line 382, in load_dataDataNotFoundError: Unable to load data for: endpointsAny help would be greatly appreciated.Larry Bates