Skip to content
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

Import Error: reason: image not found #348

Open
songxiang666 opened this issue Mar 19, 2020 · 4 comments
Open

Import Error: reason: image not found #348

songxiang666 opened this issue Mar 19, 2020 · 4 comments

Comments

@songxiang666
Copy link

  • PymRMR version: 0.1.8
  • Python version: 3.6.7
  • Operating System:Mac OS 10.14.5

Description

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymrmr.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/opt/libiomp/lib/libiomp5.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymrmr.cpython-36m-darwin.so
Reason: image not found

What I Did

I have installed libomp and llvm, but it does not work for me.

brew install libomp
brew install llvm

thanks in advance!

@test1855
Copy link

Same except for Operating System: Mac OS 10.12.3

And when I installed llvm, an error occurs.
Error: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.

is there any way to sovle the Import Error and the llvm installing error in MacOS 10.12?

@test1855
Copy link

@songxiang666
same problem! I have updated my Mac OS to 10.15.3 and updated brew, xcode, finally run "brew install llvm, libomp". The most important is to rename the folder 'libomp' in '/usr/local/opt/' to 'libiomp' And the file 'libomp.dylib' in '/usr/local/opt/libomp/' to 'libiomp5.dylib'
It works for me. Hope it will help you.

@songxiang666
Copy link
Author

@test1855
Thank you for your help!
However, I still encountered problems.
I installed llvm successfully, so I think my system without any problems.
I also tried to update Homebrew.
The difference is that I don't have xcode installed. (Do I have to install xcode?)
I also tried changing the directory name and file name, but the error I got was:

Reason: no suitable image found. Did find:/usr/local/opt/libiomp/lib/libiomp5.dylib: stat() failed with errno=20

Did you modify the file without any errors?

@test1855
Copy link

Yep, homebrew will failed if xcode is not installed. You can complete updating homebrew first.

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

No branches or pull requests

2 participants