Closed adrivinca closed 6 months ago
Looks like the executable isn't happy with your system. If you just run e.g. ./magicc.exe
in a terminal (having navigated to wherever your MAGICC executable is first), do you get anything? If yes, then probably just an environment issue. If no, then the binary is incompatible with your system which is not so easy to fix.
@phackstock will probably know best about how to make this behave. Perhaps the container you've built is the best option @phackstock ?
@znicholls since I've only ever run MAGICC on ubuntu, locally and on my machine, I have never encountered this and don't know how to fix it. In principle the container that I've built would work but the build is currently failing and I haven't had the time to fix it yet.
I'm on leave this month, so won't be able to help out much. I run on Windows, but have never myself played around with climate-processor before. And didn't come across this issue when I have been running MAGICC.
Just one thing to try: this wouldn't happen to have anything to do with setting an environment variable? https://climate-assessment.readthedocs.io/en/latest/emulator.html#setup-instructions-for-a-windows-computer
E.g. this is what it looks like for me (where MAGICC_RUN_DIR
i believe is a leftover from previous times - so try without specifying that):
You're raising a good point @jkikstra. I'm setting theses variables and I'm using str(pathlib.Path)
for this. This could mean that the paths are written unix style. I'll check on climate-processor side.
EDIT:
Never mind, that was not the error.
Thank all for the prompt feedbacks.
So in my environment, I don't find any magicc.exe
only magicc6.exe
I had downloaded magicc-v7.5.3
and there there is an executable that if I run I get the error below. But this is just the MAGICC folder I downloaded, completely disconnected from python and environments.. so I am a bit confused
@adrivinca in https://github.com/iiasa/climate-processor it's all bundled together so you don't have to download any MAGICC by yourself.
Never mind, found the error. Should be fixed on climate-processor side in 5 minutes.
Hi all, I have been trying to run MAGICC through the climate-processor, which calls climate-assessment on a fresh environment with Windows10. But I run into an issue with the function
.get_version()
that is not compatible with Windows applications.me running either with CLI or from script
If I comment the part with
.get_version()
in climate_assessment\climate\magicc7.py, I still get the same error inopenscm_runner
@jkikstra @znicholls Do you have any quick fix or solutions to be implemented? Hopefully it is not a huge fix. Thanks!