Skip to content

ImportError: DLL load failed while importing when libgcc 15.1.0 is installed #1398

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

Closed
jessegrabowski opened this issue May 11, 2025 · 8 comments · Fixed by #1400
Closed

ImportError: DLL load failed while importing when libgcc 15.1.0 is installed #1398

jessegrabowski opened this issue May 11, 2025 · 8 comments · Fixed by #1400
Labels
bug Something isn't working C-backend compilation

Comments

@jessegrabowski
Copy link
Member

jessegrabowski commented May 11, 2025

Description

An update to the libgcc package is causing windows users to be unable to compile pytensor functions. Issue was reported and debugged by user DrEntropy here.

We should do a release ASAP with a version pin. This is also breaking tests on downstream packages (pymc-extras and pytensor-ml)

@jessegrabowski jessegrabowski added bug Something isn't working C-backend compilation labels May 11, 2025
@jessegrabowski
Copy link
Member Author

This also made me realize we don't actually test on windows, which seems wrong?

@jessegrabowski jessegrabowski changed the title Pin libgcc<15 in requirements Pytensor finds wrong compiler on windows when libgcc>15 is installed May 12, 2025
@jessegrabowski
Copy link
Member Author

Updated this title to reflect what @maresb reported in #1399

@maresb
Copy link
Contributor

maresb commented May 12, 2025

Making some progress towards figuring out what's going on: #general > random cmake test failures all of a sudden

@maresb maresb changed the title Pytensor finds wrong compiler on windows when libgcc>15 is installed ImportError: DLL load failed while importing when libgcc 15.1.0 is installed May 12, 2025
@maresb
Copy link
Contributor

maresb commented May 12, 2025

The issue we're hitting: conda-forge/ctng-compilers-feedstock#174

Should be fixed in the latest build by conda-forge/pytensor-suite-feedstock#158

Retroactive fix is incoming

@maresb
Copy link
Contributor

maresb commented May 12, 2025

Retroactive fix is awaiting review in conda-forge/conda-forge-repodata-patches-feedstock#1024

@maresb
Copy link
Contributor

maresb commented May 12, 2025

This should alternatively be resolved for future versions by #1400.

@maresb
Copy link
Contributor

maresb commented May 13, 2025

@DrEntropy, the retroactive fix has been merged, so your original environment specification should now work.

@maresb maresb closed this as completed May 13, 2025
@DrEntropy
Copy link

@DrEntropy, the retroactive fix has been merged, so your original environment specification should now work.

Can confirm, working !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C-backend compilation
Projects
None yet
3 participants