numpy on redis gears docker

20 views
Skip to first unread message

Juan Carlos Liuzzi

unread,
Apr 9, 2020, 5:21:56 PM4/9/20
to RedisGears Discussion Forum
Hi,

I tried to install numpy on the redis Gears docker with no success.

Is there another alternative?

What I can be doing wrong?

Thanks

Meir Shpilraien

unread,
Apr 12, 2020, 10:58:04 AM4/12/20
to RedisGears Discussion Forum
Can you specify the error you are getting and the log file? I see there is a general issue with installing dependencies on docker latest (v0.9.0) which is not related to numpy.

Meir Shpilraien

unread,
Apr 12, 2020, 11:08:45 AM4/12/20
to RedisGears Discussion Forum
Notice that on edge I could successfully do it (it took a while though to download it):
127.0.0.1:6379> RG.PYEXECUTE "import numpy; log(str(numpy))" REQUIREMENTS numpy
OK

RedisLogs:
1:M 12 Apr 2020 15:01:24.327 * <module> Executing : mkdir -p /var/opt/redislabs/lib/modules/python3/.venv/numpy
1:M 12 Apr 2020 15:01:24.334 * <module> Executing : /bin/bash -c "source /var/opt/redislabs/lib/modules/python3/.venv/bin/activate;cd /var/opt/redislabs/lib/modules/python3/.venv/numpy;python -m pip wheel numpy"
WARNING: The directory '/home/redis/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
1:M 12 Apr 2020 15:01:26.629 * <module> Collecting numpy

1:M 12 Apr 2020 15:01:27.002 * <module>   Downloading numpy-1.18.2-cp37-cp37m-manylinux1_x86_64.whl (20.2 MB)

1:M 12 Apr 2020 15:05:21.364 * <module>   Saved ./numpy-1.18.2-cp37-cp37m-manylinux1_x86_64.whl

1:M 12 Apr 2020 15:05:21.371 * <module> Skipping numpy, due to already being wheel.

1:M 12 Apr 2020 15:05:21.804 * <module> Executing : /bin/bash -c "source /var/opt/redislabs/lib/modules/python3/.venv/bin/activate;cd /var/opt/redislabs/lib/modules/python3/.venv/numpy;python -m pip install numpy-1.18.2-cp37-cp37m-manylinux1_x86_64.whl"
WARNING: The directory '/home/redis/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
1:M 12 Apr 2020 15:05:22.129 * <module> Processing ./numpy-1.18.2-cp37-cp37m-manylinux1_x86_64.whl

1:M 12 Apr 2020 15:05:22.675 * <module> Installing collected packages: numpy

1:M 12 Apr 2020 15:05:24.731 * <module> Successfully installed numpy-1.18.2

1:M 12 Apr 2020 15:06:21.337 * <module> GEARS: <module 'numpy' from '/var/opt/redislabs/lib/modules/python3/.venv/lib/python3.7/site-packages/numpy/__init__.py'>
Reply all
Reply to author
Forward
0 new messages