-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crucial dependencies are missing - can't use redisai module #23
Comments
Hi @sandroci, Thanks a lot for raising the issue. The reason why we left those out is to keep the dependencies limited but since numpy being the first-class datatype in redisai python client now, it makes sense to add that into the dependencies. Can you open a PR, please (It might require some cleanups as well, like the exception check for numpy import error needs to be removed and probably there are others)? |
Hi @hhsecond |
Hi @sandroci, I'll be happy to merge if you made this already else, I'll add this also to my PR and merge. Let me know what works for you |
Hi @hhsecond |
Hi @hhsecond |
@sandroci Sorry it took a bit. I just submitted my review with change requests. Once you could finish that, we are good to merge Thanks, |
Closing because of inactivity |
Hi everyone
It looks like
numpy
andsix
is missing as dependency in the setup.py. If I installpip install redisai
in a complete new virtualenv, it is not possible to use redisai in my python projects. Following error occurs:In the utils.py module you import on line 1
six
Installing
pip install six
does not solve the issue:It is necessary to install
numpy
as well that it works.The root cause itself lies in the tensor.py module. On line 102 you have following method:
If numpy as not been installed, you set on line 8 in the
tensor.py
module toNone
:This can not work if you specify the return type for the previous
to_numpy
method tonp.array
.I would recommend to fix this issue that you add
six
andnumpy
in the setup.py module following dependencies on line 24Looking forward to help you to fix this issue 😊
Best regards,
Sandro
The text was updated successfully, but these errors were encountered: