RedisAI is not loaded, it is not possible to use AI interface

Hello. I’m trying to call redisai from RedisGears using the built-in redisAI library, but this error
appears.

['Traceback (most recent call last):\n', '  File "<string>", line 4, in <module>\n', 'spam.error: RedisAI is not loaded, it is not possible to use AI interface.\n']

I saw the use of the redisAI library in your examples https://github.com/RedisGears/AnimalRecognitionDemo.

Here is the command I’m trying to call from the gear

img_ba = bytearray(np_img.tobytes())
image_tensor = redisAI.createTensorFromBlob('FLOAT', [1, im_height, im_width, 3], img_ba)

Why the error says that the ’ redis AI module is not loaded’?


To work with the redis modules, I took this docker image - https://github.com/RedisLabs/redismod

@paold_vel

The issue seems to be related to RedisAI_TensorRedisType .

There is similar issue raised on https://github.com/RedisAI/RedisAI/issues/442

@paold_vel can you specify which tag of this docker image you used? Can you share the Redis log file?