DGL-pytorch-Metapath2Vec

Excuse me, friends, what are the environments used to run metapath2vec Code: Python, python, etc.

Because I reported an error during operation:TypeError: cannot pickle ‘_io.TextIOWrapper’ object

My anaconda create a environment named metapath2Vec in win10:python 3.7.11;pytorch 1.10.2;cpu DGL and already install Visual C++ 2015 Redistributable.

I can generate the metapaths with sampler.py but can’t run Metapath2Vec.py.

Duplicate of Metapath2Vec run error