Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. PGADMIN4 Not Opening Browser
Forum Updated to NodeBB v4.3 + New Features

PGADMIN4 Not Opening Browser

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 2.6k Views 3 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.
  • H Offline
    H Offline
    Howard K.
    wrote on last edited by
    #1

    For some reason, I got it into my head, to build a developer environment on my Windows 10 PC. Following documentation I found on the web, I installed,

    • Linux on windows
    • Ubuntu*
    • ConEmu
    • VSCode
    • PostgreSQL
    • PGADMIN4

    At first when I installed PGADMIN4, I received the following error messages:

    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-howard'
    qt.qpa.screen: QXcbConnection: Could not connect to display
    Could not connect to any X display.

    I searched and found this fix: export QT_QPA_PLATFORM=''offscreen''

    Now I receive the following messages:

    Python path: "/usr/lib/python3/dist-packages"
    Python Home: ""
    Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
    This plugin does not support QPlatformServices::openUrl() for 'http://127.0.0.1:56298/?key=d545e9ee-48f5-4f48-bfdf-f476d10fb757'.
    This plugin does not support propagateSizeHints()

    The interesting part is that when I cut and paste the url into a web browser on Windows, PGADMIN4 will open and work fine. It seems like the automated portion of the function transfer is not working.

    As I have never worked in this type of environment before, I have no idea of what to change to fix the problem and no searches have provided me with any avenues to fix the problem.

    I did find a work around by installing PGADMIN4 on the Windows side, creating a path and invoking the executable windows file from the console. But I'd still like to know what needs to be done to get PGADMIN4 to work as it is supposed to. Thank you

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

      Hi and welcome to devnet,

      Do you mean you are using the Linux Subsystem for Windows ?
      If so, how did you install Qt ?
      The offscreen module does indeed not implement openUrl. It has nothing to do with the validity of the URL itself.

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

      H 1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        As far as i know, Linux on windows does not come with an X server.
        Which i think you need for the desktop runtime pgAdmin 4.

        https://seanthegeek.net/234/graphical-linux-applications-bash-ubuntu-windows/

        H 1 Reply Last reply
        2
        • SGaistS SGaist

          Hi and welcome to devnet,

          Do you mean you are using the Linux Subsystem for Windows ?
          If so, how did you install Qt ?
          The offscreen module does indeed not implement openUrl. It has nothing to do with the validity of the URL itself.

          H Offline
          H Offline
          Howard K.
          wrote on last edited by
          #4

          @SGaist Yes, you are correct, I am using the Linux Subsystem for Windows. I am not sure I actually installed QT as a standalone but as part of the pgadmin4 installation. I found the error messages and traced them to QT, so thought I would see if anybody here had an answer to my problem.

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            As far as i know, Linux on windows does not come with an X server.
            Which i think you need for the desktop runtime pgAdmin 4.

            https://seanthegeek.net/234/graphical-linux-applications-bash-ubuntu-windows/

            H Offline
            H Offline
            Howard K.
            wrote on last edited by
            #5

            @mrjj Thank you, this seems to be the solution to the problem.

            1 Reply Last reply
            0

            • Login

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