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

OverflowError: Python int too large to convert to C long #8

Open
ymanol opened this issue Dec 16, 2019 · 3 comments
Open

OverflowError: Python int too large to convert to C long #8

ymanol opened this issue Dec 16, 2019 · 3 comments

Comments

@ymanol
Copy link

ymanol commented Dec 16, 2019

I ran the 2sectors example and received the following error:

File "abcEconomics\trade.pyx", line 485, in abcEconomics.trade.Trade.sell
File "abcEconomics\trade.pyx", line 121, in abcEconomics.trade.Offer.cinit
OverflowError: Python int too large to convert to C long

@patrickxli
Copy link

Same error here I experience:

File "abcEconomics\trade.pyx", line 485, in abcEconomics.trade.Trade.sell
File "abcEconomics\trade.pyx", line 121, in abcEconomics.trade.Offer.cinit
OverflowError: Python int too large to convert to C long

Any way to fix it?

@rht
Copy link
Member

rht commented Jul 14, 2020

Didn't see this issue until just now.
The abcEconomics on current master (not yet renamed to main to avoid the bad connotation) no longer uses cython, because the speedup gain is not significant, so we remove it for simplicity's sake. I will try to update the version uses in this repo when I have the time.

Currently, to make it work on cython's C, we probably need to use long long (int64).

@rht
Copy link
Member

rht commented Jul 14, 2020

I ran the start.py of 2sectors on latest master (AB-CE/abce@983d427) and it worked fine. However, some of the examples are using outdated API that it will take a while to update this repo's requirements.txt.

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

3 participants