Support With EnergyScope Software

Apologies if this is the wrong way to do this, I haven’t used forums before! I can delete it/move it if requested.

I’m trying to follow the Basic Run tutorial from the EnergyScope website but I get an OSError when I try to run it. I’m not if maybe I didn’t download the right thing or if I’m missing a dataset and it can’t find it? I copied the lines from the website and used them in Powershell. I was going to share a screenshot but I can’t add an image.

>>> es_infra_ch.export_ampl(mod_filename=‘tutorial_output/AMPL_infrastructure_ch_2050.mod’,dat_filename=‘tutorial_ou\tput/AMPL_infrastructure_ch_2050.dat’)

Traceback (most recent call last):
File “”, line 1, in
es_infra_ch.export_ampl(mod_filename=‘tutorial_output/AMPL_infrastructure_ch_2050.mod’,dat_filename=‘tutorial_output/AMPL_infrastructure_ch_2050.dat’)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\moana\AppData\Local\Programs\Python\Python313\Lib\site-packages\energyscope\energyscope.py”, line 98, in export_ampl
self.es_model.export_model(mod_filename)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File “amplpy/ampl.pyx”, line 938, in amplpy.ampl.AMPL.export_model
File “amplpy/util.pxi”, line 27, in amplpy.ampl.PY_AMPL_CALL
OSError:

Hello @ChemEngStudent ! Thanks for your question, and sorry for the late reply. We had some issues with the notification setup.

I believe I don’t see the whole error (picture should be enabled soon! sorry for that), but in the meantime, have you tried to change the path of the export file, ie. change

'tutorial_output/AMPL_infrastructure_ch_2050.mod’

into

‘AMPL_infrastructure_ch_2050.mod’

same for the .dat file ?

If this does not work out, can you please provide us with the version of the library you are using (run pip list in the terminal).

Thanks a lot :grin: