Skip to content

Error in: AzElPolarPlot_comtypes.ipynb #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elenzing opened this issue Jan 16, 2022 · 2 comments
Closed

Error in: AzElPolarPlot_comtypes.ipynb #174

elenzing opened this issue Jan 16, 2022 · 2 comments
Assignees

Comments

@elenzing
Copy link

COMError Traceback (most recent call last)
C:\Users\HPZ620~1\AppData\Local\Temp/ipykernel_7984/280915811.py in
36 #Get all the access interval start and stop times
37 accessReport = access.DataProviders.Item("Access Data").QueryInterface(STKObjects.IAgDataPrvInterval)
---> 38 accessIntervals = accessReport.ExecElements(scenario2.StartTime, scenario2.Stoptime, ["Access Number","Start Time", "Stop Time"])
39 accessIntervals = list(accessIntervals.DataSets.ToArray())
40 #Get Az El data for each access interval

COMError: (-2147417851, 'The server threw an exception.', (None, None, None, 0, None))

@arogersagi arogersagi reopened this Jan 18, 2022
@arogersagi arogersagi self-assigned this Jan 18, 2022
@arogersagi
Copy link
Contributor

Hi there - this seems to be a problem with Python 3.8's compatibility with the comtypes library, which is documented in the comtypes repo here. I would recommend trying this script again with Python 3.7 or creating a new script using the new Python API.

@arogersagi
Copy link
Contributor

Closing for now, will reopen if additional comments are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants