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

How to create .exe file?? #21292

Closed
GuyMicciche opened this issue Jun 3, 2019 · 3 comments
Closed

How to create .exe file?? #21292

GuyMicciche opened this issue Jun 3, 2019 · 3 comments

Comments

@GuyMicciche
Copy link

@GuyMicciche GuyMicciche commented Jun 3, 2019

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2019.05.20
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

I downloaded your python file, but what do I need to generate an .exe file??

Thank you

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2019

python setup.py py2exe.

@dstftw dstftw closed this Jun 3, 2019
@GuyMicciche
Copy link
Author

@GuyMicciche GuyMicciche commented Jun 3, 2019

Traceback (most recent call last):
File "setup.py", line 147, in
**params
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\setuptools_init_.py", line 129, in setup
return distutils.core.setup(**attrs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\distutils_buildexe.py", line 188, in run
self._run()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\distutils_buildexe.py", line 267, in _run
builder.analyze()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\runtime.py", line 160, in analyze
self.mf.import_hook(modname)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\mf3.py", line 120, in import_hook
module = self._gcd_import(name)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\mf3.py", line 274, in _gcd_import
return self._find_and_load(name)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\mf3.py", line 357, in _find_and_load
self._scan_code(module.code, module)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\mf3.py", line 388, in _scan_code
for what, args in self._scan_opcodes(code):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\py2exe\mf3.py", line 417, in _scan_opcodes
yield "store", (names[oparg],)
IndexError: tuple index out of range

@ytdl-org ytdl-org deleted a comment from GuyMicciche Jul 18, 2019
@ytdl-org ytdl-org deleted a comment from GuyMicciche Jul 18, 2019
@ytdl-org ytdl-org deleted a comment from GuyMicciche Jul 18, 2019
@ytdl-org ytdl-org deleted a comment from ComputerUser-CU Jul 18, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 18, 2019

py2exe only supports python 3.4.

@ytdl-org ytdl-org locked as resolved and limited conversation to collaborators Jul 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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