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

Error when Loading the Package: library(torchvisionlib) using R Console #105

Open
HuilingGong opened this issue Feb 9, 2024 · 0 comments

Comments

@HuilingGong
Copy link

HuilingGong commented Feb 9, 2024

Error when Loading the Package: library(torchvisionlib) using R Console
Can see torchvisionlib.dll in the folder; but just can't load it.

library(torchvisionlib)
**trying URL 'https://github.com/mlverse/torchvisionlib/releases/download/v0.4.0.9000/torchvisionlib-0.4.0.9000+cpu-win64.zip'
Content type 'application/octet-stream' length 2834668 bytes (2.7 MB)
downloaded 2.7 MB

Error: package or namespace load failed for ‘torchvisionlib’:
.onLoad failed in loadNamespace() for 'torchvisionlib', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/xxx/AppData/Local/R/win-library/4.3/torchvisionlib/bin/torchvisionlib.dll':
LoadLibrary failure: The specified procedure could not be found.**

(1) The same torchvisionlib.dll file error when using R Console in RStudio (2023.12.1 Build 402, R 4.3.2), and Base R (R 4.3.2).
(2) I tried 2 methods of installing torchvisionlib:
(a) Install torchvisionlib from CRAN with “install.packages("torchvisionlib")”
(b) Install the development version of torchvisionlib from GitHub with: “devtools::install_github("mlverse/torchvisionlib")”
(3) I have installed packages: ”torch", "torchvision", "torchvisionlib" , and installed Microsoft Visual C++.
(4) following versions installed:
torch: Version 0.12.0
torchvision: Version 0.5.1
torchvisionlib: Version 0.4.0.9000

Thank you for your help!

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

1 participant