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

Fix overflow error on windows, go back to allow python 3.12 #16

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

stevereiner
Copy link
Contributor

Fix overflow error on windows seen with versions of python (3.10, 3.11, 3.12), issue #15
relik/retriever/indexers/document.py
csv.field_size_limit(sys.maxsize) changed to
csv.field_size_limit(min(sys.maxsize, 2147483646))
(only able to build from source on linux not windows, did test line in windows with python 3.12 cli interpreter)

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 (and build from source with python 3.12 was fine too)
Issue #14 on linux was just messed up python 3.12 env.
setup.py
python_requires=">=3.10,<3.12",
change back to:
python_requires=">=3.10",

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.
@Riccorl
Copy link
Collaborator

Riccorl commented Sep 18, 2024

Thank you for your contribution! The fix for the overflow error on Windows with Python 3.10, 3.11, and 3.12 looks great. I appreciate the detailed testing you did on both Windows and Ubuntu with the Python 3.12 environment. I’ll merge it now, and this will resolve the issues (#14 and #15). Thanks again for the work!

@Riccorl Riccorl merged commit 345672e into SapienzaNLP:main Sep 18, 2024
1 check failed
@stevereiner stevereiner deleted the new_branch branch September 19, 2024 01:49
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

Successfully merging this pull request may close these issues.

2 participants