strom petrel attributeerror:“nonetype”对象没有属性“group”

ohfgkhjo  于 2021-06-21  发布在  Storm
关注(0)|答案(1)|浏览(282)

我正在使用wordcount示例尝试petrel,但发现以下问题:
$petrel submit--config topology.yaml--logdir pwd'nonetype'对象没有属性'group'回溯(最近一次调用):file“/home/jonas/.local/lib/python2.7/site packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py”,第111行,在main func(**args.dict)file“/home/jonas/.local/lib/python2.7/site packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py”第32行中,在submit sourcejar=get\u sourcejar()file“/home/jonas/.local/lib/python2.7/site packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py”第23行中,在get\u sourcejar storm\u version=get\u storm\u version()file“/home/jonas/.local/lib/python2.7/site packages/petrel-0.9.4.0.3-py2.7.egg/petrel/cmdline.py”中,get\u storm\u version返回m.group(0)attributeerror:'nonetype'对象没有属性'group'
我还尝试:$./buildandrun--config topology.yaml~/.local/lib/python2.7/site-packages~/wordcount
回溯(最后一次调用):file“/home/jonas/downloads/petrel master/petrel/setup.py”,第66行,in build \u petrel()file“/home/jonas/downloads/petrel master/petrel/setup.py”,第29行,in build \u petrel version \u string,version \u number=get \u storm \u version()file“/home/jonas/downloads/petrel master/petrel/setup.py”,第21行,在get\u storm\u version return m.group(0)中,m.group(1)attributeerror:'nonetype'对象在第20行或附近没有属性'group'错误;正在退出,状态为1
我试过使用virtualenv:
$source petrel/bin/activate,不带$easy\u install--install dir/home/username/.local/lib/python2.7/site-packages petrel==0.9.4.0.3
提前谢谢

66bbxpm5

66bbxpm51#

@classmethod
    def declareOutputFields(cls):
    return ['study_id', 'segment_id', 'user_id', 'date_stamp',
            'time_stamp', 'x', 'start_date',
            'start_time', 'users', 'everyone']

始终检查发射/返回字段和类。

相关问题