Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: dictionary changed size during iteration #121

Open
Carlyen opened this issue Feb 25, 2021 · 1 comment
Open

RuntimeError: dictionary changed size during iteration #121

Carlyen opened this issue Feb 25, 2021 · 1 comment

Comments

@Carlyen
Copy link

Carlyen commented Feb 25, 2021

Hello,
I'm using windows.
I am trying to run Deepwalk on Pycharm with the examples provided. When I test Karate.adjlist, it works perfectly, but when I try to run it with p2p-Gnutella08.edgelist or any other .adjlist file (no matter the size), it gives me the following error,

Traceback (most recent call last):
File "C:\Python\Python385\lib\runpy.py", line 194, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Python\Python385\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Caro\PycharmProjects\HelloWorld\venv\Scripts\deepwalk.exe_main
.py", line 7, in
File "c:\users\Caro\pycharmprojects\helloworld\venv\lib\site-packages\deepwalk_main
.py", line 162, in main
process(args)
File "c:\users\Caro\pycharmprojects\helloworld\venv\lib\site-packages\deepwalk_main
.py", line 52, in process
G = graph.load_adjacencylist(args.input, undirected=args.undirected)
File "c:\users\Caro\pycharmprojects\helloworld\venv\lib\site-packages\deepwalk\graph.py", line 240, in load_adjacencylist
G = G.make_undirected()
File "c:\users\Caro\pycharmprojects\helloworld\venv\lib\site-packages\deepwalk\graph.py", line 59, in make_undirected
for v in self.keys():
RuntimeError: dictionary changed size during iteration

Thank you for the help.

@flyking1994
Copy link

set the format to edgelist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants