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

Start milvus failed #7

Open
shiyu22 opened this issue Aug 5, 2022 · 7 comments
Open

Start milvus failed #7

shiyu22 opened this issue Aug 5, 2022 · 7 comments

Comments

@shiyu22
Copy link

shiyu22 commented Aug 5, 2022

When I finished the preparations, got an error to run milvus.start():

Python 3.8.2 (default, Nov  4 2020, 21:23:28)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import milvus
--- if you are running Milvus for the first time, type milvus.before() for pre-run instructions ---
--- otherwise, type milvus.start() ---
>>> milvus.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/chenshiyu/.virtualenvs/shiyu/lib/python3.8/site-packages/milvus/__init__.py", line 56, in start
    library = ctypes.cdll.LoadLibrary(
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/chenshiyu/.virtualenvs/shiyu/lib/python3.8/site-packages/milvus/bin/embd-milvus.so, 0x0006): Library not loaded: /Users/binbin/embeded_milvus/milvus/internal/core/output/lib/libmarisa.0.dylib
  Referenced from: /private/var/bin/e-milvus/lib/libmilvus_indexbuilder.dylib
  Reason: tried: '/Users/binbin/embeded_milvus/milvus/internal/core/output/lib/libmarisa.0.dylib' (no such file), '/usr/local/lib/libmarisa.0.dylib' (no such file), '/usr/lib/libmarisa.0.dylib' (no such file)Library not loaded: /Users/binbin/embeded_milvus/milvus/internal/core/output/lib/libmarisa.0.dylib
  Referenced from: /private/var/bin/e-milvus/lib/libmilvus_segcore.dylib
  Reason: tried: '/Users/binbin/embeded_milvus/milvus/internal/core/output/lib/libmarisa.0.dylib' (no such file), '/usr/local/lib/libmarisa.0.dylib' (no such file), '/usr/lib/libmarisa.0.dylib' (no such file)
@huhaibin
Copy link

huhaibin commented Sep 1, 2022

跟你遇到了一样的问题,不过貌似没人回复呀
image

@shiyu22
Copy link
Author

shiyu22 commented Sep 1, 2022

跟你遇到了一样的问题,不过貌似没人回复呀 image

Actually, it was solved in my machine(Mac intel) with the newest version, maybe you can try the newest following README.

@huhaibin
Copy link

huhaibin commented Sep 1, 2022

跟你遇到了一样的问题,不过貌似没人回复呀 image

Actually, it was solved in my machine(Mac intel) with the newest version, maybe you can try the newest following README.

What version of milvus are you using?
I got the error with milvus v2.1.0 in my mac m1.

@soothing-rain
Copy link
Collaborator

soothing-rain commented Sep 5, 2022

跟你遇到了一样的问题,不过貌似没人回复呀 image

Actually, it was solved in my machine(Mac intel) with the newest version, maybe you can try the newest following README.

What version of milvus are you using? I got the error with milvus v2.1.0 in my mac m1.

Hey the original issue is resolved but I forgot to close this thread.

Can you double check if you DYLD_FALLBACK_LIBRARY_PATH value has been set correctly as instructed in milvus.before()? You run echo $DYLD_FALLBACK_LIBRARY_PATH to find out.

export DYLD_FALLBACK_LIBRARY_PATH=DYLD_FALLBACK_LIBRARY_PATH:/usr/lib:/usr/local/lib:/var/bin/e-milvus/lib/

@soothing-rain
Copy link
Collaborator

跟你遇到了一样的问题,不过貌似没人回复呀 image

Actually, it was solved in my machine(Mac intel) with the newest version, maybe you can try the newest following README.

What version of milvus are you using? I got the error with milvus v2.1.0 in my mac m1.

Also please be aware that the env variable only works in a single terminal window.

@soothing-rain
Copy link
Collaborator

/unassign
/assign @huhaibin

@soulteary
Copy link
Contributor

this pr will avoid things like this

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

4 participants