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

imp removed in Python 3.12 causing crash on start up #114

Open
cguess opened this issue May 16, 2024 · 2 comments
Open

imp removed in Python 3.12 causing crash on start up #114

cguess opened this issue May 16, 2024 · 2 comments

Comments

@cguess
Copy link

cguess commented May 16, 2024

Running Python 3.12.3 gives the following response

python3 pagekite.py
Traceback (most recent call last):
  File "/Users/christopher/pagekite.py", line 36, in <module>
    from imp import new_module
ModuleNotFoundError: No module named 'imp'

imp seems to have been deprecated since 3.4 and finally removed in 3.12 https://docs.python.org/3.11/library/imp.html
According to the docs https://docs.python.org/3.11/library/importlib.html#module-importlib is the preferred replacement.

Downgrading to 3.11.9 fixes this.

@alopix
Copy link

alopix commented Nov 15, 2024

Are there any plans on supporting Python 3.12+? Sadly do not have the possibility of downgrading from 3.12.

@cstork
Copy link

cstork commented Nov 23, 2024

@alopix Install uv, make sure it can provide e.g. python3.11, and try uv run python3.11 pagekite.py 80 ...pagekite.me.

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

3 participants