-
Notifications
You must be signed in to change notification settings - Fork 254
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
Inconsistent build path (cmake vs run_sample.py) on Windows #431
Comments
Nothing immediately obvious from that output - although personally, I have never had much luck with Anaconda. I am tied up with other things right now but will come back to this - could you add some debug around run_sample.py:245 and see what "exe" is - I'm guessing that from Anaconda it just can't find the executable you build for some reason.... |
FWIW it used to work in Anaconda after I submitted #254 to allow passing in of the location of the Windows executable as a command line argument. Obviously those files no longer exist. |
Thank you for your reply. Command line: So, @weshinsley I won't be able to reach line:245 as the error is coming before that. What IDE and what required packages are you using? I can install the suggested software. |
CI for Windows uses standalone CMake and CTest - see windows_distribution_check.yml |
Just run from an Anaconda prompt
which was based on the contents of
|
Sorry I've just realised that you are referring to a different Python file than I thought you were. This particular file hasn't been updated since 2020/05/13, is not tested by CI and it is possible that the inputs to CovidSim.exe have changed sufficiently in the meantime to break the script. In other words I'll let someone else help you with this as I don't know whether it is maintained. |
I know you're using Visual Studio from the text - but I am wondering why I am seeing references to Anaconda3\lib. Perhaps that's a red herring anyway.
I am seeing on your second and third screenshots, an error in covidsim/data/run_sample.py on line 245, so I want to know what's going on around that line that would cause it to fail. However, it looks like (as zebmason said) you're running an old version - since mid-May, line 245 has been this:
whereas I think your error is just a File not Found coming from the subprocess.run which is now line 266.
So does this file exist? I am surprised it is compiling in debug mode, or looking in the Debug folder - my cmake produces build\src\CovidSim.exe. Moreover, it will be easier for us to debug if you pull master... |
@weshinsley Thank you for your comments. Yes, problem was with the location where the CovidSim.exe is getting stored. In the code the location is if os.name == 'nt': whereas in my Windows 10 OS, I just made following change, if os.name == 'nt': I think this change needs to be made in run_sample.py |
We'll work out which of these to fix - thanks for reporting. |
I encountered another error while running the CovidSim.exe with given parameters. It said, [C:\Users\amols\source\repos\AmolSakhale\covid-sim\src\SetupModel.cpp line 1078] Unable to allocate cell storage Log: -- Building for: Visual Studio 16 2019 Checking Build System Command '['C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\build\src\Debug\CovidSim.exe', '/c:8', '/A:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\data\admin_units\United_States_admin.txt', '/s:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\data\populations\USschools.txt', '/PP:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\data\param_files\preUS_R0=2.0.txt', '/P:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\data\param_files\p_NoInt.txt', '/O:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\United_States_NoInt_R0=3.0', '/D:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\wpop_usacan.txt', '/M:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\United_States_pop_density.bin', '/S:C:\Users\amols\Source\Repos\AmolSakhale\covid-sim\Network_United_States_T8_R3.0.bin', '/R:1.5', '98798150', '729101', '17389101', '4797132']' returned non-zero exit status 1.
|
You may be running out of memory... how much RAM do you have? But I'm still not sure you're on master? SetupModel.cpp:1078 is just a close brace. |
It looks like you're trying to do a full US run - I forget exactly how much RAM that needs, but for us, that would be one for a cluster node (all of ours are >128Gb), not a desktop. |
Thank you for your reply. Thank you for reminding me, I pulled the changes from the master. I was using 15 days old repository. |
Have a look in the regression tests for an example of a single state (Wyoming) - see lines 28-32 of Memory for full USA - quick guess, full UK takes 20Gb, so roughly scale up by 5 and I'd say >=100Gb. |
Hello @weshinsley, I have a few questions.
in covid-sim\tests\us-input\pre-param.txt file Can you please tell me what can be the problem?
|
Separate issue might be better really, as your error above is a separate bug, so we can deal with them one by one. We're still very busy, so not really much time capacity for this, but:-
|
The issue with the crash window is that you can't have DoSeverity switched off, but DoICUTriggers switched on... (can't have ICUs without severe cases) |
As a first step, I am trying to run the model using run_sample.py and generate the output files.
But I am getting this error. The error doesn't specify which file is missing.
Did anyone faced similar problem or can tell what I might be doing wrong?
ErrorOutput.txt
The text was updated successfully, but these errors were encountered: