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

Strange import behaviour with Python 3.12.3 during debugging #1192

Closed
ArVar opened this issue May 22, 2024 · 2 comments
Closed

Strange import behaviour with Python 3.12.3 during debugging #1192

ArVar opened this issue May 22, 2024 · 2 comments

Comments

@ArVar
Copy link
Contributor

ArVar commented May 22, 2024

Apperently something has changen with how imports are processed in python when debugging.
In datamodel.py the import function iterates throgh all key-value-pairs of the variables in frequency.py on import (!).
This leads to an incredible long import time when running in debugger. (VSCode Python Debugger)

I've checked the changelog for python 3.12.x and a lot of other ressources and did not find any hint. Maybe replacing import with importlib.import_module can help.

Has anyone else a similar issue?

@ArVar
Copy link
Contributor Author

ArVar commented May 22, 2024

I think, this is adressed here as well: microsoft/debugpy#1496

@fgregg
Copy link
Contributor

fgregg commented Jun 27, 2024

looks like it was fixed upstream python/cpython#119118

@fgregg fgregg closed this as completed Jun 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants