Skip to content

fixed failing imports in Python version 3.13#40

Merged
alexnick83 merged 1 commit intospcl:mainfrom
alexanderfluck:fix-failing-imports
Jan 28, 2026
Merged

fixed failing imports in Python version 3.13#40
alexnick83 merged 1 commit intospcl:mainfrom
alexanderfluck:fix-failing-imports

Conversation

@alexanderfluck
Copy link
Contributor

Because from Python 3.12 to 3.13, the scope where exec() and eval() statements take effect has changed (as described here), one would get NameErrors when trying to run the benchmarks.

Screenshot from 2025-09-06 11-41-57

I fixed this by replacing the imports done with an exec() or eval() statement by calls to importlib.

Copy link
Contributor

@alexnick83 alexnick83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexnick83 alexnick83 linked an issue Jan 28, 2026 that may be closed by this pull request
@alexnick83 alexnick83 merged commit f2d7f27 into spcl:main Jan 28, 2026
1 check passed
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.

DaCe Framework Failing with Python 3.13

2 participants