-
Notifications
You must be signed in to change notification settings - Fork 1.9k
LoadLibrary failure for httpuv.dll when trying to run shiny #4204
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
Comments
What happens if you just do this?
It's possible that your installation of httpuv is corrupted somehow. When you reinstall it (and other packages), please make sure that you have stopped all R sessions, because on Windows, if a DLL is loaded in one running program, the system will prevent the DLL from being deleted and replaced by a new one. Similar issue here: #2030 (comment) Another possibility (from here) is to reinstall with
|
Hello, when I do library(httpuv) I get the same error as above. By stopping all R sessions, do you mean any that are open in the server as well? I tried the other install with `> install.packages("httpuv",INSTALL_opts="--no-multiarch") trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/rlang_1.1.5.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/fastmap_1.2.0.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/magrittr_2.0.3.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/later_1.4.1.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/promises_1.3.2.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/R6_2.6.1.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/Rcpp_1.0.14.zip' trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.4/httpuv_1.6.15.zip' package ‘rlang’ successfully unpacked and MD5 sums checked The downloaded binary packages are in
|
This error is common on Windows when the package being installed is in use in another session, so yes, it might require shutting down other R sessions. Another option is to try using the pak package to install httpuv, since pak is designed to handle this better on Windows: |
I asked around people on the server to close the code and now I no longer get those warning for installing packages, but the same
error persists. I removed all packages and then tried to reinstall httpuv again using "--no-multiarch"
In addition, the using pak gives me the following error:
|
I have some R code that I was running on a shared cloud (Windows Server 2016 x64) for several months. Now, when I try to run the app I get the following error:
library(shiny); runApp('DRO Tool V4.R')
Error: package or namespace load failed for ‘shiny’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/jdevenezia003/AppData/Local/R/win-library/4.4/httpuv/libs/x64/httpuv.dll':
LoadLibrary failure: The specified procedure could not be found.
I tried reinstalling httpuv, shiny, and rcpp but I still get the same error. I also tried updating packages, and removing all packages and then reinstalling them.
Here is my sessionInfo:
sessionInfo()
R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2016 x64 (build 14393)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
time zone: Etc/UTC
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.3 tools_4.4.3
The text was updated successfully, but these errors were encountered: