cvborkulo / NetworkComparisonTest

Statistical comparison of two networks with respect to three invariance measures
20 stars 21 forks source link

Error when loading package #49

Open jmbh opened 4 weeks ago

jmbh commented 4 weeks ago

Hi Guys,

I'm getting the following error when trying to load the package:

library(NetworkComparisonTest) Registered S3 methods overwritten by 'rgl': method from knit_print.rglId
knit_print.rglOpen3d
sew.rglRecordedplot
Error in dyn.load(dynlib <- getDynlib(dir)) : unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rgl/libs/rgl.so': dlopen(/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rgl/libs/rgl.so, 0x0006): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: <6C210E20-FA0B-304C-910C-E12EC6DBD711> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rgl/libs/rgl.so Reason: tried: '/opt/X11/lib/libGLU.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libGLU.1.dylib' (no such file), '/opt/X11/lib/libGLU.1.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libGLU.1.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libGLU.1.dylib' (no such file), '/var/folders/5t/86j3yt1d5nj5sv_mb22hzjsm0000gn/T/rstudio-fallback-library-path-1881824296/libGLU.1.dylib' (no such file) Error: package or namespace load failed for ‘NetworkComparisonTest’: .onLoad failed in loadNamespace() for 'rgl', details: call: rgl.init(initValue, onlyNULL) error: OpenGL is not available in this build In addition: Warning messages: 1: Loading rgl's DLL failed. This build of rgl depends on XQuartz, which failed to load. See the discussion in https://stackoverflow.com/a/66127391/2554330 2: Trying without OpenGL...

Same with the CRAN version and the latest Github version.

Here is my session info:

sessionInfo() R version 4.3.3 (2024-02-29) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Amsterdam tzcode source: internal

Any ideas how to resolve this?

Thanks, Jonas

KarolineHuth commented 3 weeks ago

Thanks for flagging. I just did a quick check of this. I believe it was introduced with the recent macos update. I'm still on Ventura and have no issues loading the package.

OpenGL has been depreceated for macos since 2022, so might not be supported for the most recent update and be the reason it breaks.

Will try to take a closer look in the next days and see if I have a more useful and helpful response to this

vandenman commented 3 weeks ago

Hey, this indeed looks a bit weird, but I don't think we can solve this on our end. The error comes not from NetworkComparisonTest but rather from rgl (e.g., unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rgl/libs/rgl.so').

rgl is a dependency (actually a Suggests) of multiple packages we import, most notably igraph.

Perhaps make an issue over at https://github.com/dmurdoch/rgl/issues?