Skip to content

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

Description

@ymanol

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

Activity

  1. patrickxli commented on Mar 19, 2020

    @patrickxli

    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?

  2. rht commented on Jul 14, 2020

    @rht
    Member

    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).

  3. rht commented on Jul 14, 2020

    @rht
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions