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

Python int too large to convert to C long #1

Open
ElFenomenoTv opened this issue Feb 15, 2019 · 1 comment
Open

Python int too large to convert to C long #1

ElFenomenoTv opened this issue Feb 15, 2019 · 1 comment

Comments

@ElFenomenoTv
Copy link

I have a problem when I try to start train.py or test.py

problembnm

And in app.py is this error.

problema linter

Thank you.

@narbhar
Copy link

narbhar commented Apr 24, 2019

maxInt = sys.maxsize

while True:
    # decrease the maxInt value by factor 10 
    # as long as the OverflowError occurs.

    try:
        csv.field_size_limit(maxInt)
        break
    except OverflowError:
        maxInt = int(maxInt/10)

Paste this in the utils.py header

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

2 participants