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

Unable to generate executable for version 1.3.1 #56

Closed
GeorgeCiesinski opened this issue Mar 11, 2020 · 3 comments
Closed

Unable to generate executable for version 1.3.1 #56

GeorgeCiesinski opened this issue Mar 11, 2020 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@GeorgeCiesinski
Copy link
Owner

Describe the bug
This is related to #54

When generating an executable using pyinstaller and auto-py-to-exe, the executable crashes immediately before even initializing the logger. No logs are available. This was tried using Python 3.7 and 3.8 with no difference in results. This leads me to believe the issue is either with the imports, or in the Logger.py script.

Pyinstaller Warning Logs


This file lists modules PyInstaller was not able to find. This does not
necessarily mean this module is required for running you program. Python and
Python 3rd-party packages include a lot of conditional or optional modules. For
example the module 'ntpath' only exists on Windows, whereas the module
'posixpath' only exists on Posix systems.

Types if import:
* top-level: imported at the top-level - look at these first
* conditional: imported within an if-statement
* delayed: imported from within a function
* optional: imported within a try-except-statement

IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
           yourself tracking down the missing module. Thanks!

missing module named org - imported by copy (optional)
missing module named _posixsubprocess - imported by subprocess (conditional)
missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), http.server (delayed, optional), webbrowser (delayed), netrc (delayed, conditional), getpass (delayed)
missing module named posix - imported by os (conditional, optional)
missing module named resource - imported by posix (top-level)
missing module named win32evtlog - imported by logging.handlers (delayed, optional)
missing module named win32evtlogutil - imported by logging.handlers (delayed, optional)
missing module named grp - imported by shutil (optional), tarfile (optional)
missing module named termios - imported by tty (top-level), getpass (optional)
missing module named vms_lib - imported by platform (delayed, conditional, optional)
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
missing module named java - imported by platform (delayed)
missing module named _scproxy - imported by urllib.request (conditional)
missing module named _winreg - imported by platform (delayed, optional)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional)
missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional)
missing module named 'org.python' - imported by pickle (optional), xml.sax (delayed, conditional)
missing module named AppKit - imported by pynput.mouse._darwin (top-level), pyperclip (delayed, conditional, optional)
missing module named Foundation - imported by pyperclip (delayed, conditional, optional)
missing module named PyQt4 - imported by pyperclip (delayed, conditional, optional)
missing module named PyQt5 - imported by pyperclip (delayed, conditional, optional)
missing module named qtpy - imported by pyperclip (delayed, conditional, optional)
missing module named gtk - imported by pyperclip (delayed, conditional, optional)
missing module named 'Xlib.threaded' - imported by pynput._util.xorg (top-level)
missing module named 'Xlib.display' - imported by pynput._util.xorg (top-level), pynput.mouse._xorg (top-level)
missing module named 'Xlib.keysymdef' - imported by pynput.keyboard._xorg (top-level)
missing module named 'Xlib.protocol' - imported by pynput.keyboard._xorg (top-level), pynput.mouse._xorg (top-level)
missing module named 'Xlib.XK' - imported by pynput.keyboard._xorg (top-level), pynput._util.xorg (top-level)
missing module named 'Xlib.X' - imported by pynput.keyboard._xorg (top-level), pynput.mouse._xorg (top-level)
missing module named 'Xlib.ext' - imported by pynput.keyboard._xorg (top-level), pynput.mouse._xorg (top-level)
missing module named Xlib - imported by pynput.keyboard._xorg (top-level)
missing module named StringIO - imported by six (conditional)
missing module named CoreFoundation - imported by pynput._util.darwin (top-level)
missing module named objc - imported by pynput._util.darwin (top-level)
missing module named Quartz - imported by pynput.keyboard._darwin (top-level), pynput._util.darwin (top-level), pynput.mouse._darwin (top-level)
runtime module named six.moves - imported by pynput._util (top-level)
missing module named chardet - imported by TextController (top-level)
@GeorgeCiesinski GeorgeCiesinski added the bug Something isn't working label Mar 11, 2020
@GeorgeCiesinski GeorgeCiesinski added this to the 1.3.1 Bugfix milestone Mar 11, 2020
@GeorgeCiesinski GeorgeCiesinski self-assigned this Mar 11, 2020
@GeorgeCiesinski
Copy link
Owner Author

Downgraded to Python 3.7 locally, and ensured the program still runs as normal. I will probably be changing the documentation soon to reflect this. Despite the change, the program is still freezing.

I have not been able to narrow down the issue yet, so I'm still researching this. I am going to try:

  • Specifying parts of a module instead of importing the whole thing
  • Deleting unused files and code
  • Comparing to older versions where the executable generated successfully
  • Modifying my pyinstaller command in case I'm doing something wrong there

@GeorgeCiesinski
Copy link
Owner Author

GeorgeCiesinski commented Mar 12, 2020

Found the answer here in this stack overflow question. It turns out that I had to upgrade requests:

pip install --upgrade requests

Then I ran the pyinstaller command again. The resulting script seems to run without errors. Performing further testing.

@GeorgeCiesinski
Copy link
Owner Author

Tested the resulting executable and confirmed it is working with no issues. Manually tested:

  • Program initialization
  • Rebuild/repair config features
  • Loading textblocks
  • Commands

Closing case, and pushing new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant