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

Open
ArVar opened this issue May 22, 2024 · 1 comment
Open

Strange import behaviour with Python 3.12.3 during debugging #1192

ArVar opened this issue May 22, 2024 · 1 comment

Comments

@ArVar
Copy link

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
Author

ArVar commented May 22, 2024

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

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

1 participant