-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing dependencies #75
Comments
please fix in all modules ASAP if you're looking for SOS participation from data sources behind firewalls. @anthonysena @pbr6cornell |
@msuchard Strategus will attempt to install keyring as part of the module instantiation process: Strategus/R/ModuleInstantiation.R Lines 194 to 206 in d50b9b7
That said, I can add this explicitly to the modules to ensure that |
From our discussion @msuchard, just noting here that the current implementation will not work for data partners that are executing behind a firewall where the use of |
@msuchard : could you help me understand how you're running Strategus behind the firewall? I would have assumed the process would be to install all Strategus modules using |
@schuemie -- each module needs to have all of its dependencies in it's |
@anthonysena -- re: the |
also, perhaps the missing |
further, @schuemie , i am not sure that
but i still get errors dependencies errors (even after I manually add
|
Working out these changes on the |
simultaneously, am also going to try again from a clean install of |
Running GHA on a newer version of the CohortGeneratorModule (https://github.com/OHDSI/Strategus/actions/runs/4926598482) and the updated version of Strategus. If this works properly, I'll work through updating the other Strategus modules to include For my own reference, I've set some RENV specific environment variables so that I can clear the cache for each module:
I found this helpful when reviewing this issue. UPDATE: don't set this environment variable:
|
documenting here: module instantiation (
|
it appears that i fix the dependency issues by:
|
@msuchard - thanks for your continued work on this and for reporting these issues. If you have an opportunity: could you install the |
@anthonysena -- are we missing a tag?
|
ok ... i fixed the |
@anthonysena -- the example study on Eunomia (using Also, the manually having to run It would be really, really helpful to have a function that checks to make sure that all dependencies are actually installed in their |
Thanks @msuchard for fixing my tag error and for testing this out. I'll work to update all of the modules now and also work on having a mechanism to check to make sure that all dependencies are actually installed in the |
Sounds great! FYI, here's another fail example installing on the clean system:
|
Sounds great! FYI, here's another fail example installing on the clean system:
To help with writing a function,
|
I'm also thinking of using ParallelLogger to capture the output of renv::restore() in the module itself since I do not think such output is captured and then it becomes difficult to find errors. Looking at your output, it looks like you may still be using the older CG Module:
I would have expected it to be |
yes, the example i just posted is using CG Module v0.1.0; it's the FQ_AA study (and not the Eunomia test). |
OK - I'm confirming that I've addressed this in the current development build of CG's Module (v0.1.1-1). I'll also see if I can use |
|
Hey :) I am getting the same issue trying to run the AntiVegF SOS study. It seems like the modules aren't able to find the packages I have in my r library - here are two examples.
I have previously been able to run DatabaseConnector without errors, but haven't yet been able to run an entire SOS study. I have the latest version of Strategus (v0.06) and have tried to run with the main and the develop branch. I also updated the CohortGenerator version in the analysisSpecification.json to be 0.02 to solve this error https://github.com/OHDSI/Strategus/issues/26. Any help would be appreciated! I am very stuck :) |
Hi @hmorgancooper sorry to hear of these challenges. @ablack3 also mentioned you were facing some challenges. Just to try and address a few items you raised:
Installing the 'develop' branch of Strategus should bump you to version v0.1.0 and this is the one I'd recommend you use as many of these issues should be addressed in that build. You will want to restart your R session after installing Strategus just to be safe. Additionally, you'll want to remove any previous execution folders associated with running the study - it may still have references to the old study specification (and the old module). In the case of the AntiVegF study, the execution folder I'm referring to is specified here.
I think you mean 0.2.0 of CohortGeneratorModule which is great - please try to use that along with the latest version of all of the modules. You can find those by running > Strategus::getModuleList()
# A tibble: 8 x 7
module version remoteRepo remoteUsername moduleType mainPackage mainPackageTag
<chr> <chr> <chr> <chr> <chr> <chr> <chr>
1 CharacterizationModule v0.4.0 github.com OHDSI cdm Characterization v0.1.1
2 CohortDiagnosticsModule v0.1.0 github.com OHDSI cdm CohortDiagnostics v3.2.3
3 CohortGeneratorModule v0.2.0 github.com OHDSI cdm CohortGenerator v0.8.0
4 CohortIncidenceModule v0.2.0 github.com OHDSI cdm CohortIncidence v3.2.0
5 CohortMethodModule v0.2.0 github.com OHDSI cdm CohortMethod v5.1.0
6 PatientLevelPredictionModule v0.2.0 github.com OHDSI cdm PatientLevelPrediction v6.3.4
7 SelfControlledCaseSeriesModule v0.2.0 github.com OHDSI cdm SelfControlledCaseSeries v4.2.0
8 EvidenceSynthesisModule v0.2.1 github.com OHDSI results EvidenceSynthesis v0.5.0 Hoping this helps to get you moving along :-) |
Hey @anthonysena thanks for getting back to me! This is my output from I removed and reinstalled CohortIncidence, the DESCRIPTION file says it's 3.2.0 but only v3.1.5 is showing up here... I double checked Strategus and I have version 0.1.0, removed the output from StrategusExecution and tried rerunning. I definitely have the package rappdirs in my r_env. |
I need to add a function to Strategus that will check to ensure all dependencies for each module are available. @schuemie shared this function that should help: https://github.com/ohdsi-studies/ScyllaEstimation/blob/master/R/Main.R#L150-L169 |
All modules AFAIK require
keyring
, but this package is not included the modulerenv.lock
files. As a result,keyring
is missing when trying to execute in environments behind firewalls and all (?) modules fail.What other dependencies (maybe
Strategus
itself) are missing? @pbr6cornellThe text was updated successfully, but these errors were encountered: