Skip to content
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

pip install failure on python3.10-alpine image #1379

Open
lrrountr opened this issue Mar 13, 2024 · 2 comments
Open

pip install failure on python3.10-alpine image #1379

lrrountr opened this issue Mar 13, 2024 · 2 comments
Assignees

Comments

@lrrountr
Copy link

Trying to build a project using python3.10-alpine docker image as a base, the project has intel-extension-for-transformers as a dep and I hit this error:

9.175 Collecting intel-extension-for-transformers==1.3.2
9.193   Downloading intel-extension-for-transformers-1.3.2.tar.gz (97.2 MB)
11.55      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.2/97.2 MB 12.0 MB/s eta 0:00:00
24.33   Preparing metadata (setup.py): started
24.74   Preparing metadata (setup.py): finished with status 'error'
24.76   error: subprocess-exited-with-error
24.76
24.76   × python setup.py egg_info did not run successfully.
24.76   │ exit code: 1
24.76   ╰─> [6 lines of output]
24.76       Traceback (most recent call last):
24.76         File "<string>", line 2, in <module>
24.76         File "<pip-setuptools-caller>", line 34, in <module>
24.76         File "/tmp/pip-install-94ahtz4p/intel-extension-for-transformers_3eb309d42a2448019f5f90c4d6e2cba5/setup.py", line 62, in <module>
24.76           from cmake import CMAKE_BIN_DIR
24.76       ModuleNotFoundError: No module named 'cmake'
24.76       [end of output]
24.76
24.76   note: This error originates from a subprocess, and is likely not a problem with pip.
24.76 error: metadata-generation-failed

Tried the same steps in other non-alpine python images and installation succeeds.

@DDEle
Copy link
Collaborator

DDEle commented Mar 14, 2024

I'm not familiar with alpine but it sees that the pip channel (index-url) used in the docker image is somehow outdated. As a result, it tried to build from sdist.

However, as we have a build-time dependency of pytorch of specific index-url, users need to install the dependences manually before building. That's why you get this error message.

@VincyZhang
Copy link
Contributor

Thanks for reporting the issue. We checked the installation issue, and find out the root cause, due to the OS not yet supported by PyTorch, which is one of key dependencies for Intel Extension for Transformers. See pytorch/pytorch#71381.
We will be monitoring the issue and follow up as long as this OS image can be supported by PyTorch.

@yinghu5 yinghu5 added the aitce label Apr 16, 2024
@kta-intel kta-intel removed the aitce label May 2, 2024
@kta-intel kta-intel removed their assignment May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants