-
Notifications
You must be signed in to change notification settings - Fork 19
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
On windows still get on relik import, OverflowError: Python int too large to convert to C long (see fix noted) #15
Comments
On linux ubuntu 22.04, relik 1.0.7 did also work with python 3.11 in addition to python 3.10 with virtualenv doing the switch to both. |
\relik\retriever\indexers\document.py", line 11, in |
Also with a clean new python 3.12.6 install on linux ubuntu 22.04 with just pip install relik==1.0.6 in virtualenv |
Fix overflow error on windows, issue SapienzaNLP#15
Should put back allowing python 3.12 that relik 1.0.7 prevents. Retesting on ubuntu with fresh python 3.12 install, relik 1.0.6 was fine. Issue SapienzaNLP#14 on linux was just messed up python 3,12 env. Issue SapienzaNLP#14 and SapienzaNLP#15 windows overflow on all python versions needs the csv.field_size_limit change.
Fixed by #16, closing. |
Hate to say it, but I don't think this issue was solved. I'm still encountering the same OverflowError on import in a clean conda environment using Python 3.10.x. Let me know if it makes sense for me to open a new issue. Error Traceback:
Error reproduced with:
|
|
On ubuntu, relik 1.0.7 did prevent install with python 3.12, relik 1.0.7 worked with python 3.10, was having trouble switching to python 3.11 so didn't verify
With python 3.12, 3.11, 3.10 still get this windows with 1.0.7 relik
File "C:\newdev2\relik\relik-text.py", line 1, in
import relik
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik_init_.py", line 1, in
from relik.inference.annotator import Relik
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik\inference\annotator.py", line 16, in
from relik.inference.data.objects import (
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik\inference\data\objects.py", line 8, in
from relik.retriever.indexers.document import Document
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik\retriever_init_.py", line 1, in
from relik.retriever.pytorch_modules.model import GoldenRetriever
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik\retriever\pytorch_modules_init_.py", line 5, in
from relik.retriever.indexers.document import Document
File "C:\Users\sreiner\AppData\Roaming\Python\Python310\site-packages\relik\retriever\indexers\document.py", line 11, in
csv.field_size_limit(sys.maxsize)
OverflowError: Python int too large to convert to C long
The text was updated successfully, but these errors were encountered: