frapa / graph-editor

Simple graph editor that can read and write the graphml format
8 stars 4 forks source link

Better job of declaring prerequisites needed? #1

Open Bazmundi opened 5 years ago

Bazmundi commented 5 years ago

windows 10 python 3.6.3 networkx 2.2 pyglet 1.3.2

Either of windows command shell or PS reports:

(networkx) PS D:\venv\networkx\graph-editor-master\graph-editor-master> python .\graph_editor.py Traceback (most recent call last): File ".\graph_editor.py", line 480, in pyglet.app.run() File "D:\venv\networkx\lib\site-packages\pyglet\app__init__.py", line 138, in run event_loop.run() File "D:\venv\networkx\lib\site-packages\pyglet\app\base.py", line 142, in run self._run() File "D:\venv\networkx\lib\site-packages\pyglet\app\base.py", line 154, in _run timeout = self.idle() File "D:\venv\networkx\lib\site-packages\pyglet\app\base.py", line 281, in idle window.dispatch_event('on_draw') File "D:\venv\networkx\lib\site-packages\pyglet\window__init__.py", line 1232, in dispatch_event if EventDispatcher.dispatch_event(self, args) != False: File "D:\venv\networkx\lib\site-packages\pyglet\event.py", line 367, in dispatch_event if getattr(self, event_type)(args): File ".\graph_editor.py", line 172, in on_draw for edge in self.g.edges_iter(): AttributeError: 'Graph' object has no attribute 'edges_iter'

code-11 commented 2 years ago

Hello from the future. I think that's a problem with the versioning of networkx. Try 2.5.1.

frapa commented 2 years ago

Happy to accept any tested PR with updated dependencies.