Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Problem creating an .exe file
Forum Updated to NodeBB v4.3 + New Features

Problem creating an .exe file

Scheduled Pinned Locked Moved Qt for Python
pyside2pythonqt for pythonpyside
3 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RafaelRS
    wrote on 20 Jan 2021, 12:10 last edited by RafaelRS
    #1

    Hi,

    I´m trying to create an executable (.exe) file by my appplication code.
    I´m using PySide2 library.
    And trying to create the executable with the pyinstaller tool and cx_Freeze too.
    When I´m using pyinstaller tool have this warnings:

    missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), multiprocessing.shared_memory (conditional)
    missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
    missing module named _scproxy - imported by urllib.request (conditional)
    missing module named termios - imported by tty (top-level), getpass (optional)
    missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), subprocess (optional), http.server (delayed, optional), webbrowser (delayed), netrc (delayed, conditional), getpass (delayed), distutils.util (delayed, conditional, optional)
    missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
    missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
    missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
    missing module named _posixsubprocess - imported by subprocess (optional), multiprocessing.util (delayed)
    missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
    excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
    missing module named pep517 - imported by importlib.metadata (delayed)
    missing module named posix - imported by os (conditional, optional), shutil (conditional)
    missing module named resource - imported by posix (top-level), test.support (delayed, conditional, optional)
    missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed, optional), subprocess (optional)
    missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
    missing module named vms_lib - imported by platform (delayed, optional)
    missing module named java - imported by platform (delayed)
    missing module named _winreg - imported by platform (delayed, optional)
    missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional)
    missing module named org - imported by pickle (optional)
    missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
    missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
    missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
    missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)

    And when I try to execute the .exe file anything happens, or a message box appears saying that a problem occured, and can't launch app.

    Someone can help me?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Samuel Bachorik
      wrote on 23 Jan 2021, 08:08 last edited by Samuel Bachorik
      #2

      Hello what command for Pyinstaller are you using ? Create new floder for example on desktop and put inside everything that your code need. Then open CMD from this floder and use, pyinstaller --onedir -w YourFileName.py

      R 1 Reply Last reply 25 Jan 2021, 10:39
      0
      • S Samuel Bachorik
        23 Jan 2021, 08:08

        Hello what command for Pyinstaller are you using ? Create new floder for example on desktop and put inside everything that your code need. Then open CMD from this floder and use, pyinstaller --onedir -w YourFileName.py

        R Offline
        R Offline
        RafaelRS
        wrote on 25 Jan 2021, 10:39 last edited by
        #3

        @Samuel-Bachorik I tried it, but I have the same problem, ehwn I try to execute the .exe file a message box open saying "Failed to execute script"

        1 Reply Last reply
        0

        1/3

        20 Jan 2021, 12:10

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved