Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

int too long to convert #1

Open
btyu opened this issue Jul 10, 2018 · 1 comment
Open

int too long to convert #1

btyu opened this issue Jul 10, 2018 · 1 comment

Comments

@btyu
Copy link

btyu commented Jul 10, 2018

Hi! When I run it on Win10 64bit with Anaconda 64bit, error occurs:

ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert

It seems like the integer in Python is too big to be converted to int in C++. I tried to replace "int" with "int64_t" but it still does not work. Do you know how to solve this problem?

Thank you very much!

@tfedor
Copy link
Owner

tfedor commented Jul 15, 2018

To be honest I'm not sure, I haven't worked with C wrappers for Python for some time. Have you tried something from here? https://stackoverflow.com/questions/38314118/overflowerror-python-int-too-large-to-convert-to-c-long-on-windows-but-not-ma

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants