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

make: *** [youtube-dl] Error 127 #21825

Closed
ComputerUser-CU opened this issue Jul 18, 2019 · 4 comments
Closed

make: *** [youtube-dl] Error 127 #21825

ComputerUser-CU opened this issue Jul 18, 2019 · 4 comments
Labels

Comments

@ComputerUser-CU
Copy link

@ComputerUser-CU ComputerUser-CU commented Jul 18, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

I am trying to build a youtube-dl binary on my local machine by using the make command as per phihag's post here. However, I'm getting the following:

BigAppa@DESKTOP-UOLLR4C MINGW64 ~/youtube-dl
$ make
FIND: Parameter format not correct
mkdir -p zip
for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do
mkdir -p zip/$d ;
cp -pPR $d/.py zip/$d/ ;
done
touch -t 200001010101 zip/youtube_dl/
.py zip/youtube_dl//.py
mv zip/youtube_dl/main.py zip/
cd zip ; zip -q ../youtube-dl youtube_dl/.py youtube_dl//*.py main.py
/usr/bin/sh: zip: command not found
make: *** [youtube-dl] Error 127

Instead of make, I also tried make youtube-dl. However, the results weren't any different:

BigAppa@DESKTOP-UOLLR4C MINGW64 ~/youtube-dl
$ make youtube-dl
FIND: Parameter format not correct
mkdir -p zip
for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do
mkdir -p zip/$d ;
cp -pPR $d/.py zip/$d/ ;
done
touch -t 200001010101 zip/youtube_dl/
.py zip/youtube_dl//.py
mv zip/youtube_dl/main.py zip/
cd zip ; zip -q ../youtube-dl youtube_dl/.py youtube_dl//*.py main.py
/usr/bin/sh: zip: command not found
make: *** [youtube-dl] Error 127

Kindly suggest a possible solution. I got a FFMEG malformed AAC bitstream error when I downloaded a video with youtube-dl source alone, without ffmpeg files in youtube clone directory on local machine. To not let the issue recur, I wish to build a local youtube-dl.exe and place it in the same folder as ffmpeg files.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 18, 2019

Search py2exe.

@dstftw dstftw closed this Jul 18, 2019
@ComputerUser-CU
Copy link
Author

@ComputerUser-CU ComputerUser-CU commented Jul 19, 2019

For those who visit this thread in search of an answer, inspired by @dstftw, I (partially) solved my predicament by following the following steps:

  1. Installed Python 3.4 in addition to Python 3.7 which I already had running on my machine. Python 3.4 was necessary for me because py2exe is supported only up to Python 3.4.
  2. Now, I closed all Git Bash terminals.
  3. Then I opened a fresh Git Bash terminal. (Step 2 above is necessary. Without it, Python 3.4 may not become available to Git Bash.)
  4. To install py2exe, I ran this command on Git Bash terminal: py -3.4 -m pip install py2exe
  5. Then, I navigated to the youtube-dl clone location by running this command on Git Bash terminal: cd youtube-dl
  6. Now, to create the EXE file, I ran this command: py -3.4 -m py2exe.build_exe setup.py

Your exe would be generated in the \youtube-dl\dist folder as setup.exe.

P.S.: I couldn't get this setup.exe to behave as a true youtube-dl.exe binary that is otherwise made available to us by the youtube-dl team. So please don't get your hopes high. However, I would be immensely happy if you could take anything out of the above mentioned process and build a fully functional EXE. Please do share the corrections needed in the above process for others benefit too.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 19, 2019

Now, to create the EXE file, I ran this command: py -3.4 -m py2exe.build_exe setup.py

I think that the command that you're looking for is py -3.4 setup.py py2exe.

@RobertusIT
Copy link

@RobertusIT RobertusIT commented Apr 27, 2020

Now, to create the EXE file, I ran this command: py -3.4 -m py2exe.build_exe setup.py

I think that the command that you're looking for is py -3.4 setup.py py2exe.

For those who visit this thread in search of an answer, inspired by @dstftw, I (partially) solved my predicament by following the following steps:

  1. Installed Python 3.4 in addition to Python 3.7 which I already had running on my machine. Python 3.4 was necessary for me because py2exe is supported only up to Python 3.4.
  2. Now, I closed all Git Bash terminals.
  3. Then I opened a fresh Git Bash terminal. (Step 2 above is necessary. Without it, Python 3.4 may not become available to Git Bash.)
  4. To install py2exe, I ran this command on Git Bash terminal: py -3.4 -m pip install py2exe
  5. Then, I navigated to the youtube-dl clone location by running this command on Git Bash terminal: cd youtube-dl
  6. Now, to create the EXE file, I ran this command: py -3.4 -m py2exe.build_exe setup.py

Your exe would be generated in the \youtube-dl\dist folder as setup.exe.

P.S.: I couldn't get this setup.exe to behave as a true youtube-dl.exe binary that is otherwise made available to us by the youtube-dl team. So please don't get your hopes high. However, I would be immensely happy if you could take anything out of the above mentioned process and build a fully functional EXE. Please do share the corrections needed in the above process for others benefit too.

**Please can you help me?

I have tried without success to compile this youttube-dl and have an exe that works ( i need it with a** raiplay fix, and last build doesn't have it )

ubuntu@ubuntu:/youtube-dl$ py -3.4 -m pip install py2exe
/usr/bin/py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Iterable
usage: py [-x] [-l] [-c PRE_CMD] [-C POST_CMD] [-V] [-h] [expression]
py: error: unrecognized arguments: -m pip install py2exe
ubuntu@ubuntu:
/youtube-dl$ py -3.4 setup.py py2exe
/usr/bin/py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
from collections import Iterable
usage: py [-x] [-l] [-c PRE_CMD] [-C POST_CMD] [-V] [-h] [expression]
py: error: unrecognized arguments: setup.py py2exe

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.