-
Notifications
You must be signed in to change notification settings - Fork 244
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
The file setup.py does not import the sys library causing an error if torch is not found. #189
Comments
Thanks for your report. @jingxu10 could you please check it? |
Hi @jyothisvjames , thanks for your feedback. May I know how is your pytorch installed? If it is installed normally via pip, setup.py could find it. |
Hi @jingxu10. Yes, noticed that it is updated in setup.py on 1.9.0-rc. As per the documentation in the master branch, I tried to compile it from the source without the torch library installed, it was throwing a sys error. When I checked the setup.py file, I was able to find that the error is handled before importing sys. I guess in future releases it would automatically install if torch is not found. |
The main issue that I face is a bit different. As per the official documentation of Intel AI Analytics Toolkit, it is supported on CentOS7(https://www.intel.com/content/www/us/en/developer/articles/system-requirements/intel-oneapi-ai-analytics-toolkit-system-requirements.html). I tried to install Intel AI Analytics Toolkit in a conda environment using the command "conda create -n aikit-pt -c intel intel-aikit-pytorch". This installs AI Analytics Toolkit with IPEX 1.8.0 but throws an error that says glibc 2.23 is not found in the system when importing torch library using "import torch" in a program. |
Yes, torch as well as other dependencies will all be installed automatically in setup.py in future releases. For usage of the current master branch, please take a reference at https://pytorch.org/tutorials/recipes/recipes/intel_extension_for_pytorch.html. |
Thanks for reporting this issue. I'll report it to AIKit team. |
This is the exact error. (aikit-pt) [user@centos7 ~]$ conda list I grep torch
This error is not present in CentOS 8, only in CentOS 7. It can be prevented by compiling IPEX=1.8.0 from source or by upgrading IPEX=1.9.0 manually. |
yes, this is because the Intel Extension for PyTorch 1.8.0 in AIKit was most likely not compiled on CentOS 7, and thus caused this glibc version incompatibility issue. I've reported this issue back to AIKit team. Please use the workaround you mentioned. |
Thanks for your help. |
Line 14 of the setup.py gives out an error if torch is not found in the system, since the sys library is not imported in the beginning.
sys.exit(1)
The following line should be moved to the beginning of the setup.py file to solve this issue.
import sys
The text was updated successfully, but these errors were encountered: