dlenski / gp-saml-gui

Interactively authenticate to GlobalProtect VPNs that require SAML
GNU General Public License v3.0
306 stars 69 forks source link

Install fails under Ubuntu 23.10 with ERROR: Dependency 'gobject-introspection-1.0' is required but not found. #101

Open michaelmell opened 7 months ago

michaelmell commented 7 months ago

Hello, I am trying to install under Ubuntu 23.10. I am using Miniconda and trying to install into the base environment.

I have installed the dependencies as noted in the README, by running:

sudo apt install python3-gi gir1.2-gtk-3.0 gir1.2-webkit2-4.0

When I try to install with PIP it fails with the error:

 ../meson.build:29:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.

This is the full output containing the error:

pip3 install https://github.com/dlenski/gp-saml-gui/archive/master.zip
Collecting https://github.com/dlenski/gp-saml-gui/archive/master.zip
  Using cached https://github.com/dlenski/gp-saml-gui/archive/master.zip
  Preparing metadata (setup.py) ... done
Requirement already satisfied: requests in /home/MYUSER/miniconda3/lib/python3.10/site-packages (from gp-saml-gui==0.1) (2.28.1)
Collecting pygobject
  Using cached pygobject-3.48.2.tar.gz (715 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      + meson setup /tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f /tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f/.mesonpy-h7nry7oa -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=true --wrap-mode=nofallback --native-file=/tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f/.mesonpy-h7nry7oa/meson-python-native-file.ini
      The Meson build system
      Version: 1.4.0
      Source dir: /tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f
      Build dir: /tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f/.mesonpy-h7nry7oa
      Build type: native build
      Project name: pygobject
      Project version: 3.48.2
      C compiler for the host machine: cc (gcc 13.2.0 "cc (Ubuntu 13.2.0-4ubuntu3) 13.2.0")
      C linker for the host machine: cc ld.bfd 2.41
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Program python3 found: YES (/home/MYUSER/miniconda3/bin/python)
      Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1
      Run-time dependency python found: YES 3.10
      Found CMake: /usr/bin/cmake (3.27.4)
      Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)
      Not looking for a fallback subproject for the dependency gobject-introspection-1.0 because:
      Use of fallback dependencies is disabled.

      ../meson.build:29:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.

      A full log can be found at /tmp/pip-install-8bit4g3a/pygobject_b8b80dd4b9c04955b72ccfd4092c9b8f/.mesonpy-h7nry7oa/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I was unable to find a solution using Google. I would be grateful for any suggestions.

Thank you and kind regards, Michael

carloscbl commented 5 months ago

You just need

sudo apt install libgirepository1.0-dev