Closed Kuehn-Lab closed 2 months ago
Hi there,
I haven't actually installed the latest PICRUSt2 version (2.5.3) - although as those updates were mainly for the QIIME2 PICRUSt2 version I don't think that would have impacted things - so I'll try to do that in the next few days to see if I get the same error. However, in the meantime and incase it helps, the version of Castor that works with my PICRUSt2 install is 1.7.2 with R version 4.1.3 on our Ubuntu server and 1.8.0 with R version 4.3.3 on my MacBook (M1). You could also see if installing the previous PICRUSt2 version (2.5.2) works.
Also, what would happen if you opened up R within this environment and installed castor - or did you already try that? I recently installed it separately for a different project and this worked fine:
install.packages("castor")
library(castor, quietly = TRUE)
When I try install.packages("castor") in this environment I get an error:
Error in library.dynam(lib, package, package.lib) :
shared object ‘Matrix.dylib’ not found
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Execution halted
ERROR: lazy loading failed for package ‘castor’
* removing ‘/Users/kuehnlab/miniforge3/envs/picrust2/lib/R/library/castor’
The downloaded source packages are in
‘/private/var/folders/7w/8f_8v7bn01qd6bc8kvmgt19w0000gn/T/RtmpwNb5Ra/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("castor") :
installation of package ‘castor’ had non-zero exit status
So from there, realizing I need to re-install Matrix, did that, and then needed to re-install Rspectra. I had tried re-installing those earlier, so not sure what I did differently this time, but now those worked and I was finally able to install castor and load the library, that's progress.
So, re-running the pipeline now and will see if I make it past the error, should have an update tomorrow. Thanks!
It worked, made it past the issue and the full pipeline ran! Hahaha it's always a simple fix isn't it? I think in all my uninstalling and re-installing packages to fix my original Rcpp issue, I must have uninstalled those dependencies for castor. All good now, thanks!
I'm glad it worked!! I think so often I'm not sure what it was that actually fixed my issue - I just take the win and move on!
Hi, I am running the standalone picrust2 pipeline, keep getting stuck in the same place, I have seen similar errors reported and so started by following those threads.
At first I got errors related loading Rcpp, so I manually reinstalled and then the issue was castor and associated packages. I tried manually reinstalling packages and following solutions for similar past issues such as https://github.com/picrust/picrust2/issues/143 and https://github.com/picrust/picrust2/issues/112
I checked my path as suggested, looks right to me:
Still getting the following error:
So, "there is no package called ‘castor’", but when i run
conda list | less
, it looks like castor is installed:I am thinking maybe the wrong version of castor is installed, or am I missing something? Tried installing earlier versions of castor, not working. The other threads I've seen have been helpful but not quite it.
And if it helps, R session info: sessionInfo() R version 4.4.0 (2024-04-24) Platform: x86_64-apple-darwin13.4.0 Running under: macOS Big Sur ... 10.16