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

pattern3.db import CSV throws OverflowError: Python int too large to convert to C long #45

Open
Code4SAFrankie opened this issue Jul 22, 2019 · 1 comment

Comments

@Code4SAFrankie
Copy link

from pattern3.db import CSV

throws the error

Traceback (most recent call last):
File "", line 1, in
File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\pattern3\db_init_.py", line 2159, in
csvlib.field_size_limit(sys.maxsize)
OverflowError: Python int too large to convert to C long

on

WinPython 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32

@Code4SAFrankie
Copy link
Author

Not sure what the line csvlib.field_size_limit(sys.maxsize) is doing there. I just commented it and then from pattern3.db import CSV worked fine. Not sure if the comment will cause other issues though.

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

No branches or pull requests

1 participant