You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing almost anything from pymilvus, for example:
from pymilvus import Collection
Results in an exception being raised:
File "/Users/jacob.summers/repos/ads-korok-pipeline/korok_inference/datamodels/request_context.py", line 5, in <module>
from pymilvus import Collection
File "/Users/jacob.summers/Library/Caches/pypoetry/virtualenvs/korok-inference-jyWwJgRH-py3.10/lib/python3.10/site-packages/pymilvus/__init__.py", line 30, in <module>
from .client.abstract import AnnSearchRequest, Hit, Hits, RRFRanker, SearchResult, WeightedRanker
File "/Users/jacob.summers/Library/Caches/pypoetry/virtualenvs/korok-inference-jyWwJgRH-py3.10/lib/python3.10/site-packages/pymilvus/client/abstract.py", line 10, in <module>
from . import entity_helper
File "/Users/jacob.summers/Library/Caches/pypoetry/virtualenvs/korok-inference-jyWwJgRH-py3.10/lib/python3.10/site-packages/pymilvus/client/entity_helper.py", line 7, in <module>
from scipy import sparse
ModuleNotFoundError: No module named 'scipy'
Root cause
It looks like this issue was introduce somewhere between 2.3.7 and 2.4.0.
In version2.4.0 scipy is imported in pymilvus/client/entity_helper.py despite the fact that scipy is not listed as a dependency of pymilvus:
Describe the bug
Importing almost anything from
pymilvus
, for example:Results in an exception being raised:
Root cause
It looks like this issue was introduce somewhere between
2.3.7
and2.4.0
.In version
2.4.0
scipy is imported inpymilvus/client/entity_helper.py
despite the fact that scipy is not listed as a dependency ofpymilvus
:Workaround
Install
scipy
viapoetry add scipy
orpip ...
.The text was updated successfully, but these errors were encountered: