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

Add explicit import importlib.machinery #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RusselWebber
Copy link

My Python 3.12 code would not run unless importlib.machinery was explicitly imported.

The error was:
...\httpimport.py", line 343, in find_spec
return importlib.machinery.ModuleSpec(
builtins.AttributeError: module 'importlib' has no attribute 'machinery'

After adding an explicit import importlib.machinery the code runs fine in Python 3.7 to 3.12

My Python 3.12 code would not run unless importlib.machinery was explicitly imported.

The error was:
...\httpimport.py", line 343, in find_spec
    return importlib.machinery.ModuleSpec(
builtins.AttributeError: module 'importlib' has no attribute 'machinery'
@operatorequals
Copy link
Owner

The code passed the CI tests, as it should.
Yet, the 1.4.0 release did not fail either, they all passed as well.

Do you have any clue on why this is the case?

@RusselWebber
Copy link
Author

RusselWebber commented Oct 11, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants