Skip to content
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

Catch arcpy import failing to get a license #63

Open
jacobdadams opened this issue Oct 27, 2021 · 2 comments
Open

Catch arcpy import failing to get a license #63

jacobdadams opened this issue Oct 27, 2021 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@jacobdadams
Copy link
Member

On line 32 in cli.py, from .auditor import Auditor, credentials, auditor.py then imports arcpy. If arcpy can't get a license, it raises a RuntimeError or ValueError (don't remember which).

Because these imports happen before our supervisor object is set up, it appears to bomb out silently.

Either create the supervisor before the rest of the imports, or move the imports that result in the arcpy import after the supervisor has been created.

@jacobdadams jacobdadams added bug Something isn't working enhancement New feature or request labels Oct 27, 2021
@jacobdadams jacobdadams self-assigned this Oct 27, 2021
@stdavis
Copy link
Member

stdavis commented Oct 27, 2021

@jacobdadams
Copy link
Member Author

Thanks, I was just looking at that. I'm also investigating whether __init__.py is a good place for this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants