Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. # setup.py
  2. from distutils.core import setup
  3. import py2exe
  4. setup(console=['python.py'])
  5.  
  6. E:ajilProgramQuery>python setup.py py2exe
  7. running py2exe
  8. Traceback (most recent call last):
  9. File "setup.py", line 4, in <module>
  10. setup(console=['python.py'])
  11. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libdistutilscore.py", line 148, in setup
  12. dist.run_commands()
  13. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libdistutilsdist.py", line 966, in run_commands
  14. self.run_command(cmd)
  15. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libdistutilsdist.py", line 985, in run_command
  16. cmd_obj.run()
  17. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exedistutils_buildexe.py", line 188, in run
  18. self._run()
  19. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exedistutils_buildexe.py", line 267, in _run
  20. builder.analyze()
  21. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exeruntime.py", line 160, in analyze
  22. self.mf.import_hook(modname)
  23. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exemf3.py", line 120, in import_hook
  24. module = self._gcd_import(name)
  25. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exemf3.py", line 274, in _gcd_import
  26. return self._find_and_load(name)
  27. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exemf3.py", line 357, in _find_and_load
  28. self._scan_code(module.__code__, module)
  29. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exemf3.py", line 388, in _scan_code
  30. for what, args in self._scan_opcodes(code):
  31. File "C:Usersdashzeveg.bAppDataLocalProgramsPythonPython37libsite-packagespy2exemf3.py", line 417, in _scan_opcodes
  32. yield "store", (names[oparg],)
  33. IndexError: tuple index out of range
  34.  
  35. pip install PyInstaller
  36.  
  37. pyinstaller <options> <ScriptName.py>
  38.  
  39. pyinstaller myscript.py # Normal Usage
  40. pyinstaller --onefile myscript.py # To create single executable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement