Closed pnavaro closed 3 years ago
Very cool! How long does it take to run?
18 hours ! (Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz)
Hello ! What kind of problems did you have when you ran the code for the first time ?
from corona.cpp:8:
covidm/model_v1/process.h:23:5: error: 'string' does not name a type
string source_name; // name of the above
covidm/model_v1/process.h:27:5: error: 'vector' does not name a type
vector<unsigned int> ids; // identifiers of sub-process compartments
I have the same problem and i tried your method but it doesn't work for me. I've installed miniconda, then i download your file, put it in the directory covid-uk-master and in the anaconda prompt i've typed what you said but i get:
Collecting package metadata (repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/conda-forge/win-64/repodata.json
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
It seems to be a network issue, here the steps:
cd covid-uk
conda env create -f environment.yml
conda activate covid-uk
Rscript UK.R 1 50
I've finally succeed !! But still doesn't work, i get this type of error:
Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'H:/Documents/covid-uk-master/covidm/build/sourceCpp-x86_64-w64-mingw32-1.0.4.6/sourcecpp_143c1f1831/sourceCpp_30.dll': LoadLibrary failure: The specified module could not be found. Calls: source ... source -> withVisible -> eval -> eval -> dyn.load -> inDL
I think it is a problem with the compiler. I am not a Windows user but try this
conda update r-essentials -n covid-uk -c r
conda activate covid-uk
Rscript UK.R 1 50
I get this when i try conda update r-essentials -n covid-uk -c r
:
PackageNotInstalledError: Package is not installed in prefix. prefix: C:\Users\Admin\anaconda3\envs\covid-uk package name: r-essentials
Install sorry not update
conda install r-essentials -n covid-uk -c r
I get Solving environment: failed with initial frozen solve. Retrying with flexible solve
and Solving environment : Found conflicts !
and UnsatisfiableError: The following specifications were found to be incompatible with a past explicit spec that is not an explicit spec in this operation (r-stringr):
Probably it was not a good idea to change the conda channel
conda install r-essentials -n covid-uk -c conda-forge
I already went through this with a colleague. Unfortunately my solution doesn’t seem robust. 😅
I still get the LoadLibrary failure error... Maybe it is due to my system variables PATH ?
You can try to remove the directory covidm/build/
to force rebuild.
Still getting the same error...
It is an issue with Rcpp, did you try a simple command ?
Rcpp::evalCpp("2+2")
I've just tried this and yes it works
You can try to install mingw-w64 but i am afraid some side effets could happen... Using conda is safer, perhaps you could find it with
conda search mingw
I am not sure
When i type sessionInfo()
i get this :
Maybe the problem is in not attached packages ?
OK i have the R 3.6 and i try to upgrade to 4.0 and i get same error
in environment.yml file replace the pattern conda-forge
by r
then deactivate the covid-uk env
conda deactivate
remove the covid-uk env
conda env remove -n covid-uk
recreate the covid-uk with the r
channel
conda env create -f environment.yml
conda activate covid-uk
Rscript UK.R 1 50
Probably the r
channel is more stable than conda-forge
for R users. Sorry but it is late in France and i have to go. I hope it works 🤞
when i try to create i get this
`Solving environment: failed
ResolvePackageNotFound:
I uploaded a new version of https://github.com/pnavaro/covid-uk/blob/master/conda/environment.yml You can try it
condo activate covid-uk
conda env update -f environment.yml
it works !! Thank you so much !! I have some issues with the UK-view.R but i hope i will fix it !
Hello, this is not an issue but If you have some problems to run this code like me. I succeed by using miniconda.
You need to download this file https://github.com/pnavaro/covid-uk/blob/master/conda/environment.yml
and type
I hope it helps
Thanks for sharing this
Pierre