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

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

Closed
Tox86 opened this issue Feb 2, 2016 · 14 comments
Closed

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

Tox86 opened this issue Feb 2, 2016 · 14 comments

Comments

@Tox86
Copy link

@Tox86 Tox86 commented Feb 2, 2016

facebookbug

sorry my in is very limited.

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 2, 2016

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

@Tox86
Copy link
Author

@Tox86 Tox86 commented Feb 2, 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
Copy link
Author

@Tox86 Tox86 commented Feb 2, 2016

Sorry test with CBS video and equal:
problem

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 2, 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..

@vxbinaca
Copy link
Contributor

@vxbinaca vxbinaca commented Feb 8, 2016

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

@Tox86
Copy link
Author

@Tox86 Tox86 commented Feb 8, 2016

Ver. 2016.2.5.1 work fine.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 23, 2016

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

@yan12125 yan12125 changed the title [Bug] Facebook [Bug] "No module named __future__" for py2exe builds Mar 4, 2016
@yan12125 yan12125 mentioned this issue May 18, 2016
4 of 8 tasks complete
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented 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 #3065 (comment)?

@Hrxn
Copy link

@Hrxn Hrxn commented 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?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 21, 2016

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

@Hrxn
Copy link

@Hrxn Hrxn commented 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?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented 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.

@Hrxn
Copy link

@Hrxn Hrxn commented May 23, 2016

Oh, okay. Sure..

Pinging @Tox86 again
😉

@mpenkov
Copy link

@mpenkov mpenkov commented Aug 5, 2018

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

@dstftw dstftw closed this Aug 5, 2018
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
6 participants
You can’t perform that action at this time.