0
votes

I am a beginner in python and trying to convert a .py script into .exe using a derivative of pyinstaller known as fbs, so this question is probably dumb, I apologize in advance.

I used it following the instructions using python 3.6.7 and importing all the modules in the virtual environment as directed. the program run but fbs freeze didn't work. turning the 'Failed to execute script main' error. I run the fbs freeze --debug method and now I am finding this error:

Traceback (most recent call last): File "lib\site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 172, in init File "ctypes_init_.py", line 348, in init OSError: [WinError 126] The specified module could not be found During handling of the above exception, another exception occurred: ''''''''' '''''''''''''' '''''''''''''''''

File "lib\site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 174, in init main.PyInstallerImportError: Failed to load dynlib/dll 'C:\Users\ALEXIS\Desktop\DEVELOP\target\Test5\sklearn.libs\vcomp140.dll'. Most probably this dynlib/dll was not found when the application was frozen. [6916] Failed to execute script main

I have tried some solutions that suggested adding --path to the folder that contains Qt5Widgets.dll,"Qt5Core.dll"] and "Qt5Gui.dll" without success. I also tried to add these dll files in the json file as Hidden imports but it didn't work as well.

I hope you can point me in the right direction.

Thanks,

1

1 Answers