I have the trouble "name '__current_graph' is not defined" in function "_write_walks_to_disk(agrs)"
when i use the function "_write_walks_to_disk(args)", the terminal will hint "name '__current_graph' is not defined". I wonder if global variables cannot be invoked in the process.
I also encountered this problem. Have you solved it?
Same problem (Windows10). Can anybody help with this?
Update:
Steps I followed and worked for me:
-
In comE-master:
conda env create -f env.ymlremoving packages related with linux -
Add following block of code to "cython_utils.py" under the line
from distutils.core import setup:
try:
from setuptools import setup
from setuptools import Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
-
python cython_utils.py build_ext --inplace -
In file "util/graph_utils.py" line 13 add
ThreadPoolExecutorfunction:from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutorand in def write_walks_to_disk replaceProcessPoolExecutorwithThreadPoolExecutorin lines 146, 150.
Hope that helps!
I think we need to avoid the global variables __current_graph and __vertex2str.
Here is my solution. I've created a pull request to fix this.