adafruit / Adafruit_CircuitPython_SD

SD card drivers for Adafruit CircuitPython
MIT License
37 stars 17 forks source link

OverflowError: long int not supported in this build #27

Closed michelkluger closed 4 years ago

michelkluger commented 4 years ago

When I import this to the Adafruit CircuitPython 5.0.0-alpha.5 on 2019-11-04; Adafruit Feather M0 Adalogger with samd21g18 I get the mentioned error,

OverflowError: long int not supported in this build

Do you know how I can fix that? Or what might be causing it?

dhalbert commented 4 years ago

We have longints turned off on the non-Express builds for space reasons. Could you give me the rest of the error message (line numbers, etc.)? I'll see if there's a possible workaround. This may or may not be related to https://github.com/adafruit/circuitpython/issues/2267

michelkluger commented 4 years ago

when I have only the line:

import adafruit_sdcard

in my main.py, I will get this error already:

OverflowError: long int not supported in this build

dhalbert commented 4 years ago

The basic problem is a large constant 0x40000000 in the code. Will see if we can work around this.

EDIT: Yes, we just have to pass the command to the command-sending routine in a different form. I'll work on a PR.