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. How to configure the PyCharm external tool of `Qt Designer`?
Forum Updated to NodeBB v4.3 + New Features

How to configure the PyCharm external tool of `Qt Designer`?

Scheduled Pinned Locked Moved Solved Qt for Python
qt for pythonpython
5 Posts 3 Posters 1.7k 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.
  • M Offline
    M Offline
    markleo
    wrote on last edited by markleo
    #1

    I use pip installed PyQt6 in my Conda base environment:

    pip list:

    ...
    PyQt6                             6.7.1
    

    and I want to add the external Tool in my PyCharm:

    I fill up

    Program:
    /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner

    Working directory: $ProjectFileDir$

    3c0cad6b-353a-4a67-986f-c469be4998e2-QQ20241009-131449.png

    but when I run the external tool, it do not work.

    d8a71273-7616-4152-a098-380c6890d349-QQ20241009-131509.png

    error text:

    /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner
    /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner: /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner: cannot execute binary file
    
    Process finished with exit code 126
    

    QQ20241009-131449.pngQQ20241009-131509.png

    jsulmJ 1 Reply Last reply
    0
    • M Offline
      M Offline
      markleo
      wrote on last edited by
      #5

      I fond it by :

      % find /opt/anaconda3/ -name "Designer.app"
      /opt/anaconda3//pkgs/qt6-main-6.7.3-h2fbab7f_1/lib/qt6/bin/Designer.app

      1 Reply Last reply
      1
      • M markleo

        I use pip installed PyQt6 in my Conda base environment:

        pip list:

        ...
        PyQt6                             6.7.1
        

        and I want to add the external Tool in my PyCharm:

        I fill up

        Program:
        /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner

        Working directory: $ProjectFileDir$

        3c0cad6b-353a-4a67-986f-c469be4998e2-QQ20241009-131449.png

        but when I run the external tool, it do not work.

        d8a71273-7616-4152-a098-380c6890d349-QQ20241009-131509.png

        error text:

        /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner
        /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner: /opt/anaconda3/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtDesigner.framework/Versions/A/QtDesigner: cannot execute binary file
        
        Process finished with exit code 126
        

        QQ20241009-131449.pngQQ20241009-131509.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @markleo Please post error messages as text. In this case the error message is not even completely visible.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #3

          Hi,

          You pointed PyCharm to a library not the Designer executable.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            You pointed PyCharm to a library not the Designer executable.

            M Offline
            M Offline
            markleo
            wrote on last edited by
            #4

            @SGaist said in How to configure the PyCharm external tool of `Qt Designer`?:

            You pointed PyCharm to a library not the Designer executable.

            I don't find a Qt Designer executable file except this, could you tell me which path should be?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              markleo
              wrote on last edited by
              #5

              I fond it by :

              % find /opt/anaconda3/ -name "Designer.app"
              /opt/anaconda3//pkgs/qt6-main-6.7.3-h2fbab7f_1/lib/qt6/bin/Designer.app

              1 Reply Last reply
              1
              • M markleo has marked this topic as solved on

              • Login

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