Closed dougwyu closed 2 years ago
Hi Doug,
I guess you have the arm R version installed?
It seems that the R-arm version cannot load/start a x86_64 python run time( (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libpython3.7m.dylib' (no such file) ).
The problem is that R-arm works perfectly now but most python libraries/dependencies still don't have support for arm... so I guess if you want to run sjSDM on your M1 you have to install the R x86_64 version (https://cran.r-project.org/bin/macosx/) .
Btw, I have reworked the automatic installation and it should work properly now without the need to install anaconda beforehand (but only with the R x86_64 version).
So in short:
ah, thanks. i'll use the sjsdm server version that we already have installed. R-arm is very nice.
i gave in and installed R x86_64. sjSDM runs now.
the example in Dependencies vignette seems to be in error.
library(sjSDM)
community <- simulate_SDM(sites = 100, species = 10, env = 5)
Env <- community$env_weights
Occ <- community$response
model <- sjSDM(X = Env, Y = Occ, formula = ~0+X1*X2 + X3 + X4)
summary(model)
did you mean something like:
model <- sjSDM(Y = Occ, env = linear(Env, formula = ~0+X1*X2 + X3 + X4))
summary(model)
oh yes, thanks!
Hi Max,
I have a brand new MBP M1 Pro (macOS 12.1), and I tried to install sjSDM today, but no luck. I am doing a clean installation on this Mac, so nothing has been brought over from my Intel Mac.