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. Program giving an error message when trying to run in Pycharm
Forum Updated to NodeBB v4.3 + New Features

Program giving an error message when trying to run in Pycharm

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 578 Views
  • 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.
  • S Offline
    S Offline
    Starnomaly
    wrote on last edited by
    #1

    So I've been messing around with qt designer for a bit and tried implementing it in a base project to test it out. I converted the saved UI file to python and imported it into the project but when I click run all I end up getting is this:

    unknown3.png

    When I tried opening the main project file from file explorer it would work but then stop working after a bit

    d7c13780-74e9-47f3-bd0b-80f031b57c49-image.png

    I've tried doing research to find a solution but all I've really gotten was to copy the platforms file from \PyQt5\Qt\plugins and pasting it in \pyqt5_tools\Qt\bin. The only problem is that my pyqt5_tools folder doesn't have a Qt folder

    3113267b-a5ad-4634-928a-7468a5f71a5c-image.png

    I followed the instructions with a tutorial on youtube to show how to set up everything (Installed modules through pip, created UI file, import, etc)

    This is the code I have:

    3cf2fd95-8ff1-4082-bb86-9d11d14ed761-image.png

    It's exactly the same as the tutorials code with the only difference being the converted UI files name (They were also using Pycharm and had no issues running it). I can't seem to figure it out and it would be greatly appreciated if someone knows how to fix it.

    JonBJ 1 Reply Last reply
    0
    • S Starnomaly

      So I've been messing around with qt designer for a bit and tried implementing it in a base project to test it out. I converted the saved UI file to python and imported it into the project but when I click run all I end up getting is this:

      unknown3.png

      When I tried opening the main project file from file explorer it would work but then stop working after a bit

      d7c13780-74e9-47f3-bd0b-80f031b57c49-image.png

      I've tried doing research to find a solution but all I've really gotten was to copy the platforms file from \PyQt5\Qt\plugins and pasting it in \pyqt5_tools\Qt\bin. The only problem is that my pyqt5_tools folder doesn't have a Qt folder

      3113267b-a5ad-4634-928a-7468a5f71a5c-image.png

      I followed the instructions with a tutorial on youtube to show how to set up everything (Installed modules through pip, created UI file, import, etc)

      This is the code I have:

      3cf2fd95-8ff1-4082-bb86-9d11d14ed761-image.png

      It's exactly the same as the tutorials code with the only difference being the converted UI files name (They were also using Pycharm and had no issues running it). I can't seem to figure it out and it would be greatly appreciated if someone knows how to fix it.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Starnomaly
      In a Command Prompt:

      set QT_DEBUG_PLUGINS=1
      python something.py
      

      and look at the end of the diagnostic output for the error and its cause.

      1 Reply Last reply
      2

      • Login

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