Closed bulatnv closed 3 years ago
Giving answer to my own question:
Somehow pyinstaller can't handle method _check_onnx_version() in proto.__init__
I think it is because of shadow import of pkg_resources
Just bypassing the problem by commenting out _check_onnx_version()
method.
Could not to build even a simple script with this library. Similar issue
Environment: 1) Windows 10 2) Python 3.6.5 3) PyCharm, venv. 4) Main libraries:
onnx~=1.7.0, tensorflow~=2.3.1, keras2onnx~=1.7.0, pyinstaller~=4.0
Steps to reproduce: 1) Create environment 2) Install
keras2onnx==1.7.0, pyinstaller>=4.0
3) Create simple script "test.py"4) Build script
pyinstaller test.py --onefile
5) Run build
test.exe
6) Output:
Do not look at Tensorflow warnings, they definitely work.
Is there any way of building this library with pyinstaller. Any help is appreciated.