Hi,

Is there more of a traceback you can provide besides the 
pkg_resources.DistributionNotFound: 
The "onnx" distribution was not found and is required by the application 
line? I’ve seen errors like that caused when packages use pkg_resources to 
get there own version to set as a __version__ attribute but I can’t see 
anything like that in ONNX’s or keras’s source code. It’s running quite 
happily on my machine.

Brénainn
On Friday, July 3, 2020 at 6:46:43 PM UTC+1 [email protected] wrote:

> Hi there,
>
> I am currently trying to train a Deep learning module and amd importing 
> and exporting using ONNX and keras converters. These libraries are seldom 
> used with Pyinstaller and result in the following error when i run the .exe 
> file:
>
> pkg_resources.DistributionNotFound: The "onnx" distribution was not found 
> and is required by the application
>
> I have already tried including the onnx dependency within the .spec file 
> upon building the executable here, but I figured that I am probably doing 
> something incorrectly in the analysis section:
> .....
> datas=[('GrayscaleClassifierFast_3.onnx', '.'), 
> (os.path.join(os.path.dirname(importlib.import_module('tensorflow').__file__),
>  
> "lite/experimental/microfrontend/python/ops/_audio_microfrontend_op.so"), 
> "tensorflow/lite/experimental/microfrontend/python/ops/")], 
> hiddenimports=['pkg_resources.py2_warn', 'tensorflow'],  ..... 
>
> Has anyone else experienced the pkg.resource error? How was this dealt 
> with? Thanks!
>
> Allen
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/4a02038d-ad65-40f2-a785-5529765d21f2n%40googlegroups.com.

Reply via email to