faustedition / faust-macrogen

WIP implementation of the new macrogenesis model
http://faustedition.net/macrogenesis
0 stars 0 forks source link

loading graph with -i does not work yet completely #22

Closed thvitt closed 5 years ago

thvitt commented 5 years ago

most stuff works fine, but pickling the working graph fails:

Traceback (most recent call last):
  File "/home/tv/.virtualenvs/faust-macrogen/bin/macrogen", line 11, in <module>
    load_entry_point('faust-macrogen', 'console_scripts', 'macrogen')()
  File "/home/tv/git/faust-macrogen/src/macrogen/main.py", line 31, in main
    report.report_refs(graphs)
  File "/home/tv/git/faust-macrogen/src/macrogen/report.py", line 601, in report_refs
    nx.write_gpickle(graphs.working, str(target / 'working.gpickle'))
  File "</home/tv/.virtualenvs/faust-macrogen/lib/python3.7/site-packages/decorator.py:decorator-gen-582>", line 2, in write_gpickle
  File "/home/tv/.virtualenvs/faust-macrogen/lib/python3.7/site-packages/networkx/utils/decorators.py", line 240, in _open_file
    result = func_to_be_decorated(*new_args, **kwargs)
  File "/home/tv/.virtualenvs/faust-macrogen/lib/python3.7/site-packages/networkx/readwrite/gpickle.py", line 70, in write_gpickle
    pickle.dump(G, path, protocol)
AttributeError: Can't pickle local object 'show_multidiedges.<locals>.<lambda>'