Skip to content

Importing created package fails with ImportError: DLL load failed (Fortran90) #595

Closed Answered by rgommers
RubendeBruin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @RubendeBruin, thanks for the nice reproducer and README questions. My immediate two thoughts:

  1. If you want to distribute a wheel (i.e., run on a different machine than it was built, like you are doing here), you should run delvewheel over it first in CI. That will vendor the libgfortran.dll runtime you need and make the binary portable.
    • On Windows specifically, this may even be needed on the same machine, because Windows is missing RPATH functionality and hence pip install . is usually broken if a DLL from outside the package is needed and not on the library search path.
    • On Linux/macOS, the same holds for distribution - there the relevant tools are auditwheel/delocate. (or maybe repa…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rgommers
Comment options

@dnicolodi
Comment options

@rgommers
Comment options

Answer selected by RubendeBruin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants