mlverse / torchvision

R interface to torchvision
https://torchvision.mlverse.org
Other
62 stars 14 forks source link

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

Open HuilingGong opened 7 months ago

HuilingGong commented 7 months ago

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!

cregouby commented 1 week ago

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.

HuilingGong commented 1 week ago

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: @.***>

cregouby commented 1 week ago

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