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

使用 --schema 时报错,TypeError: 'NoneType' object is not subscriptable #99

Open
xiaohuangandxiaobai opened this issue Mar 21, 2021 · 2 comments

Comments

@xiaohuangandxiaobai
Copy link

xiaohuangandxiaobai commented Mar 21, 2021

使用--schema 命令时,报TypeError,
错误位置在 /src/walk.py", line 51, in simulate_walks
# print(self.node_type[node])
if schema_iter.split('-')[0] == self.node_type[node]:

TypeError: 'NoneType' object is not subscriptable

没明白 self.node_type[node]怎么会NoneType?

@Aliang-CN
Copy link

这个是控制多类节点的,源码还不完善,后面我自己修改了,才跑通我的生成数据集。简单来讲就是把user也添加到节点里面来。

@lihaha-96
Copy link

这个是控制多类节点的,源码去研究,我自己修改了,才能跑通我的生成数据集。简单的方法就是把用户也添加到节点里面来。

我在使用自己的数据集的时候,也无法定义元路径,请问您是对哪里进行了修改呢,谢谢。

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

3 participants