v. 0.0.5 from the example seems to need onnxruntime==1.19.2 etc. (but…#272
Open
Twenkid wants to merge 1 commit into
Open
v. 0.0.5 from the example seems to need onnxruntime==1.19.2 etc. (but…#272Twenkid wants to merge 1 commit into
Twenkid wants to merge 1 commit into
Conversation
… not more recent such as an automatically installed current 1.21.1 seems incompatible)
While testing the example, I discovered this incompatibility which v. 0.0.5 and the more recent versions of onnxruntime if installing with pip install moondream==0.0.5 such as:
Successfully installed onnx-1.17.0 onnxruntime-1.21.1 (a too recent version):
Z:\>python -c "import moondream as md; print(md.__version__)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\...\.conda\envs\clip\lib\site-packages\moondream\__init__.py", line 3, in <module>
from .onnx_vl import OnnxVL
File "C:\Users\...\.conda\envs\clip\lib\site-packages\moondream\onnx_vl.py", line 5, in <module>
import onnxruntime as ort
File "C:\Users\...\.conda\envs\clip\lib\site-packages\onnxruntime\__init__.py", line 61, in <module>
raise import_capi_exception
File "C:\Users\...\.conda\envs\clip\lib\site-packages\onnxruntime\__init__.py", line 24, in <module>
from onnxruntime.capi._pybind_state import (
File "C:\Users\...\.conda\envs\clip\lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module>
from .onnxruntime_pybind11_state import * # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
I downgraded to 1.19.2 and it worked.
Note: If you want to use version 0.0.5 as in this example: pip install onnxruntime==1.19.2 ... because an automatic install may download a more recent version, such as 1.21.1, which seems to be incompatible; onnx==1.17.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… not more recent such as an automatically installed current 1.21.1 seems incompatible)
While testing the example, I discovered this incompatibility which v. 0.0.5 and the more recent versions of onnxruntime if installing with pip install moondream==0.0.5 such as:
Successfully installed onnx-1.17.0 onnxruntime-1.21.1 (a too recent version):
Z:>python -c "import moondream as md; print(md.version) Traceback (most recent call last):
File "", line 1, in
File "C:\Users....conda\envs\clip\lib\site-packages\moondream_init_.py", line 3, in
from .onnx_vl import OnnxVL
File "C:\Users....conda\envs\clip\lib\site-packages\moondream\onnx_vl.py", line 5, in
import onnxruntime as ort
File "C:\Users....conda\envs\clip\lib\site-packages\onnxruntime_init_.py", line 61, in
raise import_capi_exception
File "C:\Users....conda\envs\clip\lib\site-packages\onnxruntime_init_.py", line 24, in
from onnxruntime.capi._pybind_state import (
File "C:\Users....conda\envs\clip\lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in
from .onnxruntime_pybind11_state import * # noqa
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
I downgraded to 1.19.2 and it worked.
Note: If you want to use version 0.0.5 as in this example: pip install onnxruntime==1.19.2 ... because an automatic install may download a more recent version, such as 1.21.1, which seems to be incompatible; onnx==1.17.0