Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can find subprocess.py when using Pyinstaller #293

Open
Verzijl opened this issue Nov 21, 2019 · 2 comments
Open

Can find subprocess.py when using Pyinstaller #293

Verzijl opened this issue Nov 21, 2019 · 2 comments

Comments

@Verzijl
Copy link

Verzijl commented Nov 21, 2019

When I try to create an executable with Pyinstaller and a very simple ffmpeg-python script, it will create the executable but when I try to run it I get this error. If I run the python code itself it runs without a problem.

File "site-packages\ffmpeg\_run.py", line 325, in run
 File "site-packages\ffmpeg\_run.py", line 290, in run_async
 File "subprocess.py", line 800, in __init__
 File "subprocess.py", line 1207, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

I tried the things in the other Pyinstaller issue.
All the things I tried:
pyinstaller/pyinstaller#3795
https://github.com/pyinstaller/pyinstaller/wiki/Recipe-subprocess
https://stackoverflow.com/questions/51516128/pyinstaller-with-subprocess-popen-fails-as-exe

This is only on windwos, on mac it works fine.

@TheMrRandomDude
Copy link

Bumping it. Ran into same issue today.

Created an executable using pyinstaller --hidden-import "ffmpeg-python" --onefile myscript.py>

Throws same error,

@wugoukanle
Copy link

you can try to rewrite shell=False to shell=True in subprocess Popen init()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants