torchvision icon indicating copy to clipboard operation
torchvision copied to clipboard

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

Open HuilingGong opened this issue 1 year ago • 3 comments

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!

HuilingGong avatar Feb 09 '24 23:02 HuilingGong

Hello @HuilingGong, Could you reoppen the same issue in the {torchvisionlib} repository if you still encounter the issue ? As no fix in here will be helpfull for you.

cregouby avatar Aug 31 '24 12:08 cregouby

I think it has be fixed.  Thanks.  On Aug 31, 2024, at 06:20, cregouby @.***> wrote: Hello @HuilingGong, Could you reoppen the same issue in the {torchvisionlib} repository if you still encounter the issue ? As no fix in here will be helpfull for you.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

HuilingGong avatar Aug 31 '24 13:08 HuilingGong

You should close the issue here, then....

cregouby avatar Sep 01 '24 13:09 cregouby