question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

delocate.delocating.DelocationError: .dylibs/libgfortran.5.dylib already exists

See original GitHub issue

This worked in the past but suddenly I get an error when running delocate-path on a folder where multiple executables rely on the same dependency (I’m assuming that’s what the error is about): “delocate.delocating.DelocationError: .dylibs/libgfortran.5.dylib already exists”. Am I doing something wrong?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
letmaikcommented, Jul 3, 2019

OK, I found the issue.

libgfortran.5.dylib was a direct dependency of the executables listed above, but also an indirect dependency via libnetcdff.6.1.1.dylib (which is not listed in delocate-listdeps). The catch was that the direct dependency came from /usr/local/Cellar/gcc@8/8.3.0/lib/gcc/8/libgfortran.5.dylib and the indirect one from /usr/local/Cellar/gcc@9/9.1.0/lib/gcc/9/libgfortran.5.dylib. delocate then couldn’t handle the situation of different absolute paths with the same filename. I changed my build to use the same gfortran for everything which solved the issue.

There are two things that should be improved I think:

  • Show indirect dependencies in delocate-listdeps.
  • Improve the error message for this situation and include the absolute paths of the two conflicting dylibs.
0reactions
HexDecimalcommented, Sep 23, 2021

PR #94 should have improved situations with indirect dependencies. Can you test your wheel with the latest version of delocate?

delocate-listdeps also shows indirect dependencies since #118 was merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · matthew-brett/delocate - GitHub
delocate-wheel sets invalid relative paths to delocated dylibs (related to "purelib" ... DelocationError: .dylibs/libgfortran.5.dylib already exists bug.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found