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

Getting sysreqs lookup error: Bad Request (HTTP 400) #437

Closed
telegott opened this issue Nov 30, 2022 · 2 comments
Closed

Getting sysreqs lookup error: Bad Request (HTTP 400) #437

telegott opened this issue Nov 30, 2022 · 2 comments

Comments

@telegott
Copy link

telegott commented Nov 30, 2022

No matter what package I try to install with pak, I get a message like for example:

> pak::pkg_install("MASS")
Error:                                                                    
! error in pak subprocess
Caused by error in `pkgplan_stop_for_solve_error(self, private)`:
! sysreqs lookup error: Bad Request (HTTP 400).
Type .Last.error to see the more details.
> .Last.error
<callr_error/rlib_error_3_0/rlib_error/error>
Error: 
! error in pak subprocess
Caused by error in `pkgplan_stop_for_solve_error(self, private)`:
! sysreqs lookup error: Bad Request (HTTP 400).
---
Backtrace:
1. pak::pkg_install("MASS")
2. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...)…
3. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { …
2. get("pkg_install_make_plan", asNamespace("pak"))(...)
3. prop$stop_for_solution_error()
4. private$plan$stop_for_solve_error()
5. pkgdepends:::pkgplan_stop_for_solve_error(self, private)
6. base::stop("sysreqs lookup error: ", conditionMessage(sol$sysreqs$error))
7. | base::.handleSimpleError(function (e) …
8. global h(simpleError(msg, call))
> pak::pkg_install("tibble")
Error:                                                         
! error in pak subprocess
Caused by error in `pkgplan_stop_for_solve_error(self, private)`:
! sysreqs lookup error: Bad Request (HTTP 400).
R version 4.2.2 (2022-10-31)
> packageVersion("pak")
[1] ‘0.3.1’

I tried reinstalling, but to no success. What could go wrong here?

@gaborcsardi
Copy link
Member

Possibly pak detects that system requirements are supported for your system, but turns out they are not. Set the PKG_SYSREQS = false env var for turn them off.

@gaborcsardi
Copy link
Member

Please reopen if you still have issues.

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