[Bug] "No module named __future__" for py2exe builds #6855

Closed
opened 2026-02-21 02:16:12 -05:00 by deekerman · 14 comments
Owner

Originally created by @Tox86 on GitHub (Feb 1, 2016).

facebookbug

sorry my in is very limited.

Originally created by @Tox86 on GitHub (Feb 1, 2016). ![facebookbug](https://cloud.githubusercontent.com/assets/7013508/12736146/848041fa-c92c-11e5-8ded-6d7cebee1b42.PNG) sorry my in is very limited.
deekerman 2026-02-21 02:16:12 -05:00
Author
Owner

@hrxn commented on GitHub (Feb 1, 2016):

Some infos please, like OS, Python, etc..

@hrxn commented on GitHub (Feb 1, 2016): Some infos please, like OS, Python, etc..
Author
Owner

@Tox86 commented on GitHub (Feb 1, 2016):

Windows 10 64bits, python=none, my batch file for download:
@echo off

set downloads=C:\Users\user\Downloads

REM ---

echo.
echo.
echo.
echo This is a batch file that will use youtube-dl to download
echo a video from a live streaming site like YouTube and others.
echo.
echo.
set /p url="Paste the URL you want to download: "

if "%url%"=="" goto no_url

REM We need double '%' to escape them.
youtube-dl.exe %url% -i -w --restrict-filenames -o "%downloads%%%(upload_date)s-%%(id)s-%%(title)s.%%(ext)s"
echo.
echo Finished!
goto end

:no_url
echo You didn't give me a URL

:end
echo ------------------------------
pause
exit

@Tox86 commented on GitHub (Feb 1, 2016): Windows 10 64bits, python=none, my batch file for download: @echo off set downloads=C:\Users\user\Downloads REM --- echo. echo. echo. echo This is a batch file that will use youtube-dl to download echo a video from a live streaming site like YouTube and others. echo. echo. set /p url="Paste the URL you want to download: " if "%url%"=="" goto no_url REM We need double '%' to escape them. youtube-dl.exe %url% -i -w --restrict-filenames -o "%downloads%\%%(upload_date)s-%%(id)s-%%(title)s.%%(ext)s" echo. echo Finished! goto end :no_url echo You didn't give me a URL :end echo ------------------------------ pause exit
Author
Owner

@Tox86 commented on GitHub (Feb 1, 2016):

Sorry test with CBS video and equal:
problem

@Tox86 commented on GitHub (Feb 1, 2016): Sorry test with CBS video and equal: ![problem](https://cloud.githubusercontent.com/assets/7013508/12737264/cafe9222-c935-11e5-9942-bc43123e52e1.PNG)
Author
Owner

@hrxn commented on GitHub (Feb 1, 2016):

No Python installation? Well, that error msg says.. Okay, could be caused by py2exe, I don't know.

Please just try youtube-dl.exe -v URL from your cmd, or from a batch file, you get the idea..

@hrxn commented on GitHub (Feb 1, 2016): No Python installation? Well, that error msg says.. Okay, could be caused by py2exe, I don't know. Please just try `youtube-dl.exe -v URL` from your cmd, or from a batch file, you get the idea..
Author
Owner

@vxbinaca commented on GitHub (Feb 8, 2016):

Try copying and pasting the test it's easier on the devs. Use --verbose so the problem can be examined.

@vxbinaca commented on GitHub (Feb 8, 2016): Try copying and pasting the test it's easier on the devs. Use `--verbose` so the problem can be examined.
Author
Owner

@Tox86 commented on GitHub (Feb 8, 2016):

Ver. 2016.2.5.1 work fine.

@Tox86 commented on GitHub (Feb 8, 2016): Ver. 2016.2.5.1 work fine.
Author
Owner

@yan12125 commented on GitHub (Feb 23, 2016):

Possibly a duplicate of #2919. Do you have Cyrillic characters in the path?

@yan12125 commented on GitHub (Feb 23, 2016): Possibly a duplicate of #2919. Do you have Cyrillic characters in the path?
Author
Owner

@yan12125 commented on GitHub (May 21, 2016):

As reported by @danfiscus at #9529, on 64-bit systems, put youtube-dl.exe in \Windows\Systems32 causes similar errors. Can anyone try https://github.com/rg3/youtube-dl/issues/3065#issuecomment-45716079?

@yan12125 commented on GitHub (May 21, 2016): As reported by @danfiscus at #9529, on 64-bit systems, put youtube-dl.exe in \Windows\Systems32 causes similar errors. Can anyone try https://github.com/rg3/youtube-dl/issues/3065#issuecomment-45716079?
Author
Owner

@hrxn commented on GitHub (May 21, 2016):

This one?

You can put youtube-dl into, say, C:\ytdl, and then add C:\ytdl to your PATH to be able to run youtube-dl from any directory again.

Why shouldn't this work?

@hrxn commented on GitHub (May 21, 2016): This one? > You can put youtube-dl into, say, C:\ytdl, and then add C:\ytdl to your PATH to be able to run youtube-dl from any directory again. Why shouldn't this work?
Author
Owner

@yan12125 commented on GitHub (May 21, 2016):

#3065 is a proposed solution. The one not working is \Windows\System32.

@yan12125 commented on GitHub (May 21, 2016): #3065 is a proposed solution. The one not working is \Windows\System32.
Author
Owner

@hrxn commented on GitHub (May 21, 2016):

Yes...
Any subdir inside of C:\ in the PATH works, as it should.

System32 is a special directory of the OS, I would not recommend to randomly put binaries in there, etc.
So what exactly is the issue?

@hrxn commented on GitHub (May 21, 2016): Yes... Any subdir inside of `C:\` in the `PATH` works, as it should. _System32_ is a special directory of the OS, I would not recommend to randomly put binaries in there, etc. So what exactly is the issue?
Author
Owner

@yan12125 commented on GitHub (May 21, 2016):

Some people did put youtube-dl.exe in System32 and got errors. I guess @Tox86 is one of them, and I need his/her feedback before closing this issue.

@yan12125 commented on GitHub (May 21, 2016): Some people _did_ put youtube-dl.exe in System32 and got errors. I guess @Tox86 is one of them, and I need his/her feedback before closing this issue.
Author
Owner

@hrxn commented on GitHub (May 23, 2016):

Oh, okay. Sure..

Pinging @Tox86 again
😉

@hrxn commented on GitHub (May 23, 2016): Oh, okay. Sure.. Pinging @Tox86 again :wink:
Author
Owner

@mpenkov commented on GitHub (Aug 4, 2018):

It's been over 2 years and still no reply from @Tox86 , it may be suitable to close this ticket.

@mpenkov commented on GitHub (Aug 4, 2018): It's been over 2 years and still no reply from @Tox86 , it may be suitable to close this ticket.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#6855
No description provided.