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

[BUG] Error when building docker image Cornac Cython #2203

Open
3 tasks
miguelgfierro opened this issue Dec 26, 2024 · 0 comments
Open
3 tasks

[BUG] Error when building docker image Cornac Cython #2203

miguelgfierro opened this issue Dec 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@miguelgfierro
Copy link
Collaborator

Description

2024-12-26T07:10:27: Collecting cornac<3,>=1.15.2 (from recommenders==1.2.1)
  2024-12-26T07:10:27:   Downloading cornac-2.3.0.tar.gz (5.9 MB)
  2024-12-26T07:10:28:      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 71.2 MB/s eta 0:00:00
  2024-12-26T07:10:29:   Preparing metadata (setup.py): started
  2024-12-26T07:10:29:   Preparing metadata (setup.py): finished with status 'error'
  2024-12-26T07:10:29:   error: subprocess-exited-with-error
  2024-12-26T07:10:29:   
  2024-12-26T07:10:29:   × python setup.py egg_info did not run successfully.
  2024-12-26T07:10:29:   │ exit code: 1
  2024-12-26T07:10:29:   ╰─> [2 lines of output]
  2024-12-26T07:10:29:       We need some dependencies to build Cornac.
  2024-12-26T07:10:29:       Run: pip3 install Cython "numpy<2.0.0" "scipy<=1.13.1" tqdm powerlaw
  2024-12-26T07:10:29:       [end of output]
  2024-12-26T07:10:29:   
  2024-12-26T07:10:29:   note: This error originates from a subprocess, and is likely not a problem with pip.
  2024-12-26T07:10:29: error: metadata-generation-failed
  
  2024-12-26T07:10:29: × Encountered error while generating package metadata.
  2024-12-26T07:10:29: ╰─> See above for output.
  
  2024-12-26T07:10:29: note: This is an issue with the package mentioned above, not pip.
  2024-12-26T07:10:29: hint: See above for details.
  2024-12-26T07:10:30: The command '/bin/bash -c source /root/conda/bin/activate &&     conda activate Recommenders &&     if [[ "${EXTRAS}" =~ spark ]]; then conda install -c conda-forge -y "openjdk=${JDK_VERSION}"; fi &&     if [ -z "${GIT_REF}" ]; then         pip install ${RECO_DIR}${EXTRAS};     else         pip install recommenders${EXTRAS}@git+[https://github.com/recommenders-team/recommenders.git@${GIT_REF};](https://github.com/recommenders-team/recommenders.git@$%7BGIT_REF%7D;)     fi &&     jupyter notebook --generate-config &&     echo "c.MultiKernelManager.default_kernel_name = 'Recommenders'" >> /root/.jupyter/jupyter_notebook_config.py &&     python -m ipykernel install --user --name Recommenders --display-name "Python (Recommenders)"' returned a non-zero code: 1
  
  2024-12-26T07:10:30: 
  
  2024-12-26T07:10:30: CalledProcessError(1, ['docker', 'build', '-f', 'tools/docker/Dockerfile', '.', '-t', '978a92daa2ad4447aae1b21196dd4a9b.azurecr.io/azureml/azureml_12a60390f9d03a5a12df1a1acae5a1bd', '-t', '978a92daa2ad4447aae1b21196dd4a9b.azurecr.io/azureml/azureml_12a60390f9d03a5a12df1a1acae5a1bd:1'])
  
  2024-12-26T07:10:30: Building docker image failed with exit code: 1
  
  2024-12-26T07:10:30: Logging out of Docker registry: 978a92daa2ad4447aae1b21196dd4a9b.azurecr.io
  2024-12-26T07:10:30: Removing login credentials for https://index.docker.io/v1/

In which platform does it happen?

How do we replicate the issue?

See https://github.com/recommenders-team/recommenders/actions/runs/12497618466/job/34877449001

Expected behavior (i.e. solution)

Willingness to contribute

  • Yes, I can contribute for this issue independently.
  • Yes, I can contribute for this issue with guidance from Recommenders community.
  • No, I cannot contribute at this time.

Other Comments

@SimonYansenZhao this error is weird, there is an error in building the docker image, but somehow the tests are running. Do you have any idea why this is happening?

@miguelgfierro miguelgfierro added the bug Something isn't working label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant