# Error while using convert\_graph\_to\_onnx script on BERT

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-convert-graph-to-onnx-script-on-bert%2F11182%3E%5C
**Category:** Beginners\
**Created:** [October 28, 2021, 8:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-convert-graph-to-onnx-script-on-bert%2F11182 "2021-10-28T20:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geekgirl](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@geekgirl](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgeekgirl)%5C
**Post date:** [October 28, 2021, 8:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-convert-graph-to-onnx-script-on-bert%2F11182%2F1 "2021-10-28T20:10:32Z")

</div>

Cloned the latest tip and tried to execute the convert\_graph\_to\_onnx script and seem to hit this issue.  
latest\_huggingface/transformers/src/transformers$python -m convert\_graph\_to\_onnx.py --framework pt --model bert-base-uncased bert-base-uncased.onnx

Error :  
/usr/bin/python: Error while finding module specification for ‘convert\_graph\_to\_onnx.py’ (AttributeError: module ‘convert\_graph\_to\_onnx’ has no attribute “\ __path\__ ”)

Am I missing something here?
