lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

ModuleNotFoundError: No module named 'export'

Open pkuwudi opened this issue 2 years ago • 4 comments

运行bart模型导出的例子:https://github.com/bytedance/lightseq/blob/master/lightseq/inference/README.md python export/huggingface/hf_bart_export.py 报错: Traceback (most recent call last): File "huggingface/hf_bart_export.py", line 12, in from export.proto.transformer_pb2 import Transformer ModuleNotFoundError: No module named 'export' 为什么export/proto/transformer_pb2.py 这个文件不能import? 请问该如何解决。

pkuwudi avatar May 30 '22 13:05 pkuwudi

Did you run this command?

cd examples/inference/python

Taka152 avatar Jun 01 '22 02:06 Taka152

@Taka152 yes

pkuwudi avatar Jun 01 '22 02:06 pkuwudi

Not sure about this. I can share some of my env.

  • python3
  • master branch

I'll consider adding a docker image for this example.

Taka152 avatar Jun 01 '22 03:06 Taka152

请问楼主解决了吗?遇到了相同的问题

clearwho avatar Sep 27 '22 17:09 clearwho