TemoaProject / temoa

Tools for Energy Model Optimization and Analysis
http://temoacloud.com
GNU General Public License v2.0
81 stars 49 forks source link

Problems with Graphviz #30

Closed Riccardo-sus closed 2 years ago

Riccardo-sus commented 2 years ago

Following the instructions provided in the Temoa pdf, I have written this command in the environment which I have created: -- python MakeGraphviz.py -i tuscany_res_BAU.sqlite

(tuscany_res_BAU.sqlite is the file that I want to plot)

The system says that I do have not the file in the directory but I have verified that it was inside.

This is the error:

(temoa-py3) (venv) C:\Users\ricca\PycharmProjects\TEMOApythonProject\temoa-energysystem\data_processing>python MakeGraphviz.py -i tuscany_res_BAU.sqlite setGraphicOption: updated greyFlag = False and splinevar = False

GraphvizDiagramGenerator: connected setGraphicOption: updated greyFlag = False and splinevar = False createCompleteInputGraph: started with inp_tech = None and inp_comm = None createCompleteInputGraph: database fetched successfully createCompleteInputGraph: creating diagrams ('dot', '-Tsvg', '-o.\tuscany_res_BAU_input_graphviz\tuscany_res_BAU.svg', '.\tuscany_res_BAU_input_graphviz\tuscany_res_BAU.dot') Traceback (most recent call last): File "MakeGraphviz.py", line 373, in res = graphGen.createCompleteInputGraph() File "MakeGraphviz.py", line 363, in createCompleteInputGraph self.generateGraph(quick_run_dot_fmt, args, outputName, outputFormat) File "MakeGraphviz.py", line 54, in generateGraph call(cmd) File "C:\Users\ricca\anaconda3\envs\temoa-py3\lib\subprocess.py", line 323, in call with Popen(*popenargs, **kwargs) as p: File "C:\Users\ricca\anaconda3\envs\temoa-py3\lib\subprocess.py", line 775, in init restore_signals, start_new_session) File "C:\Users\ricca\anaconda3\envs\temoa-py3\lib\subprocess.py", line 1178, in _execute_child startupinfo) FileNotFoundError: [WinError 2] Impossibile trovare il file specification

Thanks in advance,

TemoaProject commented 2 years ago

This issue should be addressed in the Google Group, not here.