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

Installation Issue from Github actions #615

Closed
clementrx opened this issue Jan 29, 2025 · 2 comments
Closed

Installation Issue from Github actions #615

clementrx opened this issue Jan 29, 2025 · 2 comments

Comments

@clementrx
Copy link

Hi !

I'm using this in my workflow in Github actions :

        env:
          HUB_PROJECT_UID: ${{ secrets.HUB_PROJECT_UID }}

        run: |
          Rscript -e 'remotes::install_github("rstudio/tensorflow", auth_token = Sys.getenv("HUB_PROJECT_UID"))'
          Rscript -e 'reticulate::install_python(version = "3.10"); library(tensorflow); install_tensorflow(envname = "r-tensorflow")'
          Rscript -e 'install.packages("keras"); library(keras); install_keras()'

It's worked very well every day for the last 2 years.

And today i got the error :

Downloading GitHub repo rstudio/tensorflow@HEAD
Error: Failed to install 'tensorflow' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 59/60
  Rate limit reset at: 2025-01-29 11:2[8](https://github.com/clementrx/horse-to-play/actions/runs/13024527850/job/36344787785#step:6:9):36 UTC

  
Execution halted
Error: Process completed with exit code 1.

Does anyone have a solution?

@clementrx
Copy link
Author

Wrong repos, should post on remotes package

@t-kalinowski
Copy link
Member

t-kalinowski commented Jan 29, 2025

The dev version of the tensorflow package did change in non-trivial ways yesterday, so it's possible we broke the CI.

Also,

  • Please consider using keras3 instead of keras.
  • There is no need to call install_python() in CI.
  • Beginning with the merged change yesterday, there is no need to call install_tensorflow() anymore.

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

2 participants