-
Notifications
You must be signed in to change notification settings - Fork 0
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
AttributeError: module 'importlib' has no attribute 'util' #108
Comments
I spent some time trying to reproduce this locally on the command line and wasn't able to do so. Running the following on my local machine with Python 3.11 was fine:
In some examples of people using find_spec, I see that they typically import the following:
So perhaps that is necessary on some systems? I also took a look through the python code base to see if perhaps importing just importlib would not include So I'll put together a little PR that adds the second import importlib.util statement and we can see if that fixes things. |
Closed the PR that was associated with this issue since it's not clear that it's actually addressing the root cause. Will reopen the PR (or close this issue) after I have a chance to do a little more investigation with @maxwest-uw in the coming weeks. |
I haven't had a chance to review this with @maxwest-uw, will try to do that before Jan 10 |
I've been working with kbmod_ml for several days now and haven't been able to reproduce this error. Going to close as won't do. |
Max is still encountering this issue, so reopening and will fix shortly. |
FWIW, this only seems to crop up when running on the Baldur machine. |
One final note - I was watching over Max's shoulder when I saw this error pop up. When I attempted to reproduce this in my baldur account in the default python 3.7 environment, it worked fine, but when I switched to an environment with kbmod, it failed. In default python 9.7 environment
In kbmod python 9.11 environment
|
Bug report
@maxwest-uw is working with fibad and kbmod-ml, and ran into this error when trying to push changes. It's clearly lines in Fibad that are causing this:
The text was updated successfully, but these errors were encountered: