adafruit / Adafruit_CircuitPython_AMG88xx

circuit python driver from AMG88xx GRID-EYE 8x8 IR sensor
MIT License
38 stars 26 forks source link

MemoryError: memory allocation failed, allocating 768 bytes #13

Closed robmarkcole closed 5 years ago

robmarkcole commented 5 years ago

I am also intermittently hitting the following error:

>>> import adafruit_amg88xx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError: memory allocation failed, allocating 768 bytes

Looks like https://github.com/adafruit/circuitpython/issues/569

robmarkcole commented 5 years ago

On occasions when I don't get the above error, I am then hitting:

>>> import adafruit_amg88xx
>>> amg = adafruit_amg88xx.AMG88XX(i2c_bus, addr=0x68) #Our devices are on 0x68
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'AMG88XX'

Is it possible the files are corrupted somehow? I have been doing a lot of rebooting of the device

robmarkcole commented 5 years ago

Another restart of the board and everything ran fine

evaherrada commented 5 years ago

Have you had the issue since then?

robmarkcole commented 5 years ago

Not used it since

evaherrada commented 5 years ago

@kattni Should I close this?

kattni commented 5 years ago

@dherrada Yes please!