-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
cmdstan installation issue -- GitHub API Requests #1067
Comments
Are you getting a particular error message? Either way, can you try installing the development version from GitHub instead and see if that helps? You can do remotes::install_github("stan-dev/cmdstanr") And after that finishes then try library(cmdstanr)
packageVersion("cmdstanr") # should be 0.8.1.9000
install_cmdstan(cores = 2) |
I have tried the remotes::install_github() command, with the following error: Using github PAT from envvar GITHUB_PAT Rate limit remaining: 29/60 I edited my original message with what occurred; the particular error message is simply Error: GitHub download of release list failed with error: cannot open URL 'https://api.github.com/repos/stan-dev/cmdstan/releases/latest' |
Are you on a corporate/university network? They can block some APIs |
At the moment, I am not! Just on a home/apartment internet. :) |
This error:
Indicates that the PAT you have stored in the |
Any recommendations on how to edit that environment variable? Or, do I need to do something w/in GitHub? |
If you're not sure where you've set the environment variable or how to clear it, the easiest approach would just be to configure a new PAT. Try this guide: https://carpentries.github.io/sandpaper-docs/github-pat.html |
Duly noted! I'll keep this open just in case it does not remedy the situation. Thanks for the help! |
Update: The PAT issue is solved! I had an expired token. However, running @andrjohns next code to install_cmdstan encountered the error fatal error: cannot write PCH file: required memory segment unavailable This is after downloading the file and it begins unpacking. It is worth noting I did restart the R session and have closed all other windows besides the web browser I'm using here and RStudio itself. |
Update 2: Installing the package from the original command (not the development version) after reconciling the PAT issue works! |
TL;DR: For anyone encountering this, we solved it through:
Describe the bug
In attempting to install cmdstanr, I follow the steps at here.
What Happens: There are 5 requests made to the API Link https://api.github.com/repos/stan-dev/cmdstan/releases/latest, but to no avail. Thus, the function does not download a file and returns an error.
To Reproduce
Run, quite literally, the same steps as the above link. This is followed through install_cmdstan(cores = 2).
Expected behavior
The GitHub API to obtain the necessary files for installation and perform the function to install cmdstan.
Operating system
Windows 11
CmdStanR version number
0.8.1
Additional context
I do have the message noting that the toolchain is installed correctly! Additionally, there were no messages of path issues before running install_cmdstan.
The text was updated successfully, but these errors were encountered: