Convert_graph_to_onnx.py "ImportError: attempted relative import with no known parent package"
Hi,I’m trying to run this script but keep on getting failure because ofTraceback (most recent call last):File “convert_graph_to_onnx.py”, line 22, infrom .file_utils import ModelOutput, is_tf_available, is_torch_availableImportError: attempted relative import with no known parent packageRunningpython convert_graph_to_onnx.py --pipeline ner --model "KB/bert-base-swedish-cased-ner" --framework pt --tokenizer "KB/bert-base-swedish-cased-ner" --quantize kb-bert-cased-ner.onnxTried installing transformers from sourceTried running from root, src &src/transformersStill not working
2021-03-22T21:31:09Z
Yes, it’s a bug indded. ThisPRshould fix it.
2021-03-23T05:40:49Z
Thanks for the response!EDITNVM, had to reinstall