DEV Community

Discussion on: How to convert .py to .exe? Step by step guide.

Collapse
 
headdawn profile image
Sertan ÖZCAN

Hi;

ModuleNotFoundError: No module named 'talib.stream'
[14920] Failed to execute script algotrade

how can i solve this problem?

Thanks.

Collapse
 
arthur10vieira profile image
arthur10vieira

Hello Sertan, all right?

I managed to solve this problem through a spec file that is in the directory as shown in the images shown

dev-to-uploads.s3.amazonaws.com/up...

Open the notepad ++ editor to edit the specifications file as shown in the image below

dev-to-uploads.s3.amazonaws.com/up...

Put the 'talib.stream' module on hiddenimports and save file spec

dev-to-uploads.s3.amazonaws.com/up...

Execute instruction with pyinstaller as an example below

pyinstaller yournamefile.spec

dev-to-uploads.s3.amazonaws.com/up...

After your executable file has been generated, run it and confirm that it worked for you

I hope to help you, I found out by researching the missing module and managed to overcome it

Collapse
 
dkmaurya82 profile image
dinesh

Thank you for a great research and solution. It has worked for me now my .exe file is running.

Some comments have been hidden by the post's author - find out more