Error in message_ix model path

46 views
Skip to first unread message

energysyst...@gmail.com

unread,
Jul 25, 2018, 3:46:52 AM7/25/18
to message_ix
Hi Guys,
I had message_ix running properly on my machine. I just pulled the latest updates and installed mesage_ix again. The tests fail in installation, and an error message raises during the loading of message_ix, saying: 'message_ix.default_paths' has no attribute 'model_path'. Is this something related to mesafe_ix config that has been recently added, or am I missing something else? 
Thanks for your help!
Behnam
P.S. this is the error message I see:
--------------------------------------------------------------------------------------------------------
  File "<ipython-input-43-0c5fcb164b6f>", line 1, in <module>
    import message_ix

  File "C:\ProgramData\Anaconda3\lib\site-packages\message_ix\__init__.py", line 10, in <module>
    model_file = os.path.join(default_paths.model_path(), '{model}_run.gms')

AttributeError: module 'message_ix.default_paths' has no attribute 'model_path'

Matthew Gidden

unread,
Jul 25, 2018, 3:56:36 AM7/25/18
to energysyst...@gmail.com, message_ix
Seems like this was fixed by reinstalling (in person!)


--
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/4fc668c1-e3c6-4c9b-a56b-215f6c5b07f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

energysyst...@gmail.com

unread,
Aug 19, 2018, 5:37:33 PM8/19/18
to message_ix
Thanks Matt! Yes, it was solved. I couldn't solve it by re-installation by clicking on install.bat. It was solved by manual re-installation (i.e., through command line).


On Wednesday, July 25, 2018 at 9:56:36 AM UTC+2, Matthew Gidden wrote:
Seems like this was fixed by reinstalling (in person!)

On Wed, Jul 25, 2018 at 9:46 AM, <energysyst...@gmail.com> wrote:
Hi Guys,
I had message_ix running properly on my machine. I just pulled the latest updates and installed mesage_ix again. The tests fail in installation, and an error message raises during the loading of message_ix, saying: 'message_ix.default_paths' has no attribute 'model_path'. Is this something related to mesafe_ix config that has been recently added, or am I missing something else? 
Thanks for your help!
Behnam
P.S. this is the error message I see:
--------------------------------------------------------------------------------------------------------
  File "<ipython-input-43-0c5fcb164b6f>", line 1, in <module>
    import message_ix

  File "C:\ProgramData\Anaconda3\lib\site-packages\message_ix\__init__.py", line 10, in <module>
    model_file = os.path.join(default_paths.model_path(), '{model}_run.gms')

AttributeError: module 'message_ix.default_paths' has no attribute 'model_path'

--
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+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages