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
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
I am newly trying unisim via pip install and I get the following error:
>>> from unisim import TextSim
WARNING:root:ONNX is running on CPU - you need to install CUDA/onnxruntime-gpu to run on GPU
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/lustre/fs5/portfolios/llmservice/users/apadmakumar/venvs/unisim_env/lib/python3.9/site-packages/unisim/__init__.py", line 8, in <module>
from .textsim import TextSim
File "/lustre/fs5/portfolios/llmservice/users/apadmakumar/venvs/unisim_env/lib/python3.9/site-packages/unisim/textsim.py", line 18, in <module>
from .unisim import UniSim
File "/lustre/fs5/portfolios/llmservice/users/apadmakumar/venvs/unisim_env/lib/python3.9/site-packages/unisim/unisim.py", line 23, in <module>
class UniSim(ABC):
File "/lustre/fs5/portfolios/llmservice/users/apadmakumar/venvs/unisim_env/lib/python3.9/site-packages/unisim/unisim.py", line 35, in UniSim
index_type: str | IndexerType,
TypeError: unsupported operand type(s) for |: 'type' and 'EnumMeta'
Note that I newly created a virtualenv using Python3.9 and the only install command I did was:
pip install unisim
Then I opened an interactive Python shell and tried the above command and got the above error.
pip freeze shows that the following packages have been automatically installed as dependencies with unisim: