azu-lab / RD-Gen

RD-Gen (random DAG generator considering multi-rate applications for reproducible scheduling evaluation) is a tool for researchers targeting DAGs.
7 stars 3 forks source link

ValueError occur in Quick start #24

Open rokamu623 opened 1 year ago

rokamu623 commented 1 year ago

The following error occurred even though only Setup flow and Quick start are done.

I have run it on multiple Ubuntu/Linux and Python environments and some succeeded and some failed.

The error messages and environments are listed below:

error message:

File "run_generator.py", line 135, in <module>
  main(config_path, dest_dir)
File "run_generator.py", line 82, in main
  dag_exporter.export(dag, combo_dest_dir, f"dag_{i}")
File "/home/rokamu/RD-Gen/src/dag_exporter/dag_exporter.py", line 32, in export
  self._export_fig(dag, dest_dir, file_name)
File "/home/rokamu/RD-Gen/src/dag_exporter/dag_exporter.py", line 118, in _export_fig
  pdot = nx.drawing.nx_pydot.to_pydot(dag)
File "/home/rokamu/.local/lib/python3.8/site-packages/networkx/drawing/nx_pydot.py", line 263, in to_pydot
  raise ValueError(
ValueError: Node names and attributes should not contain ":" unless they are quoted with "".                For example the string 'attribute:data1' should be written as '"attribute:data1"'.                Please refer https://github.com/pydot/pydot/issues/258

environment: success:

windows11 (ubuntu20.04)
python3.8.10
windows10 (ubuntu18.04)
Python3.9.2

fail

ubuntu22.04 
python3.10.6
mingzidoubeiqiangle commented 1 year ago

I got the same error. How to fix?

atsushi421 commented 1 year ago

@rokamu623 @mingzidoubeiqiangle Thank you for your report. Please try the following command. pip install networkx==2.6.3