Problem Installing message_ix (configuration step)

46 views
Skip to first unread message

Yaoping Wang

unread,
Jun 7, 2018, 4:40:44 AM6/7/18
to message_ix
Hi there, 

I am trying to install message_ix following the Install from Conda steps. Everything was fine until I ran the config model files command, i.e. 

messageix-config --model_path /path/to/model


The following error message is printed: 

Traceback (most recent call last):
  File "C:\Users\wangy\AppData\Local\Continuum\Anaconda2\envs\py36\Scripts\messageix-config-script.py", line 10, in <module>
    sys.exit(config())
  File "C:\Users\wangy\AppData\Local\Continuum\Anaconda2\envs\py36\lib\site-packages\message_ix\cli.py", line 65, in config
    do_config(model_path=args.model_path, overwrite=args.overwrite)
  File "C:\Users\wangy\AppData\Local\Continuum\Anaconda2\envs\py36\lib\site-packages\message_ix\cli.py", line 53, in do_config
    with open(CONFIG_PATH, mode='w') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wangy\\.local\\message_ix\\config.json'

I could not find a .local folder in C:\\Users\\wangy. Is there something different if I am using a shared desktop? Thanks. 

Matthew Gidden

unread,
Jun 7, 2018, 4:59:40 AM6/7/18
to Yaoping Wang, message_ix
Hi Yaoping - no, this looks like a bug that may be specific to windows. A few things:

  1. Would you mind opening an issue in github.com/iiasa/message_ix?
  2. This tool is only needed if you want to actively edit the model (i.e., GAMS code). If you don't need to do that, then no need to use this command.
  3. If you do need to use this command, a hacky fix would be to either
    1. Make the directory its looking for (ie,  C:\\Users\\wangy\\.local\\message_ix)
    2. Or, if that already exists, then also make an empty file config.json there (again, since this is a windows issue, I'm not sure... others please feel free to comment further)
Cheers,
Matt

--
You received this message because you are subscribed to the Google Groups "message_ix" group.
To unsubscribe from this group and stop receiving emails from it, send an email to message_ix+unsubscribe@googlegroups.com.
To post to this group, send email to messa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/message_ix/b7166df7-190e-4390-9a5a-6d527c3acbdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yaoping Wang

unread,
Jun 11, 2018, 5:24:30 AM6/11/18
to Matthew Gidden, message_ix
Hi Matt, 

I opened the issue. I do not need the tool for now, so it is fine. 

Making an empty file does not work, though. I added the error message to the github issue. Thank you. 

Yaoping
Reply all
Reply to author
Forward
0 new messages