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.

`Reason: image not found` for macOS packages

See original GitHub issue

Recently we’ve seen tests begin to fail on macOS for a few independent project in the Dask ecosystem, all of which are failing with Reason: image not found. For example, over in https://github.com/dask/dask/pull/8472 we’re getting (see this CI build):

py.test dask --runslow --cov=dask --cov-report=xml -n4 
ImportError while loading conftest '/Users/runner/work/dask/dask/conftest.py'.
conftest.py:43: in <module>
    import tiledb  # noqa: F401
../../../miniconda3/envs/test-environment/lib/python3.7/site-packages/tiledb/__init__.py:34: in <module>
    ctypes.CDLL(lib_name)
../../../miniconda3/envs/test-environment/lib/python3.7/ctypes/__init__.py:364: in __init__
    self._handle = _dlopen(self._name, mode)
E   OSError: dlopen(libtiledb.dylib, 6): Library not loaded: @rpath/libcrypto.1.1.dylib
E     Referenced from: /Users/runner/miniconda3/envs/test-environment/lib/libtiledb.dylib
E     Reason: image not found

in https://github.com/coiled/dask-bigquery/pull/31 (see this CI build):

 E            - dlopen(/Users/runner/miniconda3/envs/test-environment/lib/python3.7/site-packages/pyarrow/_parquet.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libssl.1.1.dylib
E             Referenced from: /Users/runner/miniconda3/envs/test-environment/lib/libthrift.0.13.0.dylib
E             Reason: image not found

and a similar issue was reported in https://github.com/dask/distributed/issues/5601.

The errors are similar, but appear to be pointing towards separate libraries not being loaded. I get the sense this may be some sort of packing issue (we’re using conda-forge packages in these CI builds) and I’m wondering if this is a know issue, or is folks here have any thoughts on how we may proceed in debugging. Apologies for the very vague issue, happy to dig in more if additional details would be useful.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jsignellcommented, Feb 14, 2022

Well it seems to have stopped. I did add nodefaults and that seemed to make things better, so I guess we can close and just reopen if it comes up again.

0reactions
jakirkhamcommented, Feb 15, 2022

Sounds good. Thanks Julia! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

macos - dyld: Library not loaded ... Reason: Image not found
It will package up all libraries from /usr/local or /opt/local into the app bundle and fix references to those libraries to use @rpath...
Read more >
Unable to load certain packages (image not found error)
Hello,. I'm having trouble loading lme4 (as well as some other packages such as glmmTMB , all with the same error messages). The...
Read more >
[PySide] PySide on Mac Os X fails (QtCore.so image not found)
Hello! So you installed PySide using the package or compiled it yourself using the source code? And did you also install Qt (which...
Read more >
dyld: Library not loaded. Image n… | Apple Developer Forums
Reason : image not found. So frustrated.... And yes I have tried embedded binaries, copy files, etc. Works fine on simulator, but this...
Read more >
DEP package: Problems installing on macOS
framework/Versions/4.0/Resources/library/gmm/libs/gmm.so Reason: image not found In addition: Warning message: In fun(libname, pkgname) : mzR has been built ...
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