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

**URL:** <https://discuss.huggingface.co/t/error-while-using-convert-graph-to-onnx-script-on-bert/11182>\
**Category:** Beginners\
**Created:** [October 28, 2021, 8:10pm UTC](https://discuss.huggingface.co/t/error-while-using-convert-graph-to-onnx-script-on-bert/11182 "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](https://discuss.huggingface.co/u/geekgirl)\
**Post date:** [October 28, 2021, 8:10pm UTC](https://discuss.huggingface.co/t/error-while-using-convert-graph-to-onnx-script-on-bert/11182/1 "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?
