Reputation: 33
Here is python script:
I used Visual Studio Code to run the file with this command:
And I get desired result:
Now I tried to create .exe file by opening PowerShell in the folder where is my script and running next line:
Here is stuff I got(not including otherScripts folder):
Now I open CMD, navigate to the desired folder, and run the .exe file with the next lines of code:
Here is what I get as my first warning:
And here is what I get as a Traceback(console instantly closed and I could not use the snipping tool to capture what was an error, so I run it through C# Win Form application and redirected standard error to a label in form):
I tried:
None of these things worked. And I'm kinda stuck here. I would really appreciate any help to fix this problem.
Upvotes: 1
Views: 2402
Reputation: 1
Running python3 -m pip install tqdm
solved the problem.
Upvotes: 0
Reputation: 21
for me adding the "tqdm directories" to datas solved the problem :)
In script.spec:
datas=[
('C:\\<...>\\Lib\\site-packages\\tqdm', 'tqdm\\'),
('C:\\<...>\\Lib\\site-packages\\tqdm-4.50.2.dist-info', 'tqdm-4.50.2.dist-info\\'),
...],
Upvotes: 2
Reputation: 204
Try building with --exclude-module=torch
?(Taken from: https://github.com/pyinstaller/pyinstaller/issues/4695)
Upvotes: 1