ImperialCollegeLondon / covid19model

Code for modelling estimated deaths and cases for COVID19.
MIT License
944 stars 271 forks source link

Running Errors in windows10 #126

Open macchan21 opened 3 years ago

macchan21 commented 3 years ago

Hi!

Describe the bug I tried to run covid19mode and installed docker and rstuduio but I couldn't run yet.

To Reproduce Steps to reproduce the behavior:

  1. Download covid19mode codes and unpacked in my PC. The OS is windows10 Pro.

  2. When I write this command in Anaconda3 PowerShell, it output Error(2). docker build -f docker/Dockerfile -t covid19model:latest .

  3. These commands output Error(3) after "[1] "Netherlands has 71 days of data"": docker run --rm -v ${pwd}:/var/model harrisonzhu5080/covid19model:latest docker run covid19model

  4. See error

Error(2) docker build -f docker/Dockerfile -t covid19model:latest .

Sending build context to Docker daemon 115.1MB Step 1/20 : FROM rocker/r-base ---> 41ea053322a7 Step 2/20 : RUN apt-get update ---> Running in 05f99bce1c93 Err:1 http://deb.debian.org/debian testing InRelease Temporary failure resolving 'deb.debian.org' Err:2 http://http.debian.net/debian sid InRelease Temporary failure resolving 'http.debian.net' Reading package lists... W: Failed to fetch http://deb.debian.org/debian/dists/testing/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://http.debian.net/debian/dists/sid/InRelease Temporary failure resolving 'http.debian.net' W: Some index files failed to download. They have been ignored, or old ones used instead. The command '/bin/sh -c apt-get update' returned a non-zero code: 4294967295: failed to shutdown container: container 05f99bce1c937b90cb2254a27f4fbde2dfd201d37b2f9d4592720e34241bf231 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container 05f99bce1c937b90cb2254a27f4fbde2dfd201d37b2f9d4592720e34241bf231 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)

Error(3) Error in compileCode(f, code, language = language, verbose = verbose) : Compilation ERROR, function(s)/method(s) not created! file671a604a5.cpp:6:9: warning: ISO C++11 requires whitespace after the macro name 6 | #define STANSERVICESCOMMAND_HPP#include <boost/integer/integer_log2.hpp> | ^~~~~~~ In file included from /usr/lib/R/site-library/RcppEigen/include/Eigen/Core:392, from /usr/lib/R/site-library/RcppEigen/include/Eigen/Dense:1, from /usr/lib/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:13, from : /usr/lib/R/site-library/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:60:39: warning: ignoring attributes on template argument ‘m128’ {aka ‘vector(4) float’} [-Wignored-attributes] 60 | template<> struct is_arithmetic<__m128> { enum { value = true }; }; | ^ /usr/lib/R/site-library/RcppEigen/include/Eigen/src/Core/arch/SSE/PacketMath.h:61:40: warning: ig Calls: stan_model ... cxxfunctionplus -> -> cxxfunction -> compileCode In addition: Warning message: In system(cmd, intern = !verbose) : running command '/usr/lib/R/bin/R CMD SHLIB file671a604a5.cpp 2> file671a604a5.cpp.err.txt' had status 1 Error in sink(type = "output") : invalid connection Calls: stan_model -> cxxfunctionplus -> sink Execution halted

Expected behavior I want to be able to run the covid19model in anyway and to modify it.

Desktop (please complete the following information):

Anyone know how to solve the problem? Thank you in advance

jeanimal commented 3 years ago

Failures to download would seem to be errors on your side-- bad internet connection? I just confirmed this URL exists: http://deb.debian.org/debian