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

R: Failed to install 'unknown package' from GitHub #2658

Closed
grayskripko opened this issue May 13, 2024 · 2 comments
Closed

R: Failed to install 'unknown package' from GitHub #2658

grayskripko opened this issue May 13, 2024 · 2 comments

Comments

@grayskripko
Copy link
Contributor

grayskripko commented May 13, 2024

Problem:
According to the docs, I use

install.packages('remotes')
remotes::install_github('catboost/catboost', subdir = 'catboost/R-package')

My output

* installing *binary* package ‘remotes’ ...
* DONE (remotes)
The downloaded source packages are in
    ‘/tmp/RtmpYLzrYI/downloaded_packages’
Error: Failed to install 'unknown package' from GitHub:
  cannot open URL 'https://api.github.com/repos/catboost/catboost/contents/catboost/R-package/DESCRIPTION?ref=HEAD'
Execution halted

I expected this approach should work in a clean docker build. What could I miss? Or do you have any reference to catboost in R dockerfile?

catboost version: the latest
Operating System: linux
CPU: I use aws codebuilder. I don't think this value is relevant
GPU: -

@andrey-khropov
Copy link
Member

andrey-khropov commented May 13, 2024

Looks like a network connectivity issue.

Does a direct request of https://api.github.com/repos/catboost/catboost/contents/catboost/R-package/DESCRIPTION?ref=HEAD (for example, using wget or curl) work from your docker build?

@grayskripko
Copy link
Contributor Author

There is a limit like 60 unauthorized requests from one IP to github. Seems Aws Codebuilder reaches this limit that's why remotes::install_github won't work until you add GITHUB_PAT system variable to the codebuilder project. Then I had to pass the variable to the build adding these two lines to the Dockerfile

ARG GITHUB_PAT
ENV GITHUB_PAT=$GITHUB_PAT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants