Error while installing pygobject

was trying to fix an error in my replit,

ghostwriter suggested pip install pygobject. and it went kaboom.

any ideas?
replit here. https://replit.com/@vincegeisler/grab-top-reddit

very basic was just trying to play with the gTTS and Playsound modules. No error handling yet as i was just roughing things out.

~/grab-top-reddit$ pip install pygobject
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Collecting pygobject
  Downloading https://package-proxy.replit.com/pypi/packages/44/80/96d6317a15a13a4f80ffa61118dc144a70756135fbc6ace30f9b033f51f7/PyGObject-3.44.1.tar.gz (720 kB)
     |████████████████████████████████| 720 kB 5.2 MB/s 
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-yhmb_8ee/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-g8y7hlst/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.3.2-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmprfi8aw3k_in_process.py build_wheel /tmp/tmptblowk5z
         cwd: /tmp/pip-install-e3lvwz_m/pycairo_c71142d343174ca1be47349f29666014
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/44/80/96d6317a15a13a4f80ffa61118dc144a70756135fbc6ace30f9b033f51f7/PyGObject-3.44.1.tar.gz#sha256=665fbe980c91e8b31ad78ed3f66879946948200864002d193f67eccc1d7d5d83 (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.7, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-yhmb_8ee/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-g8y7hlst/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Downloading https://package-proxy.replit.com/pypi/packages/07/73/a034fc1bcd6d402d6f72ff618c093f91ac6921f968cc19806b6a1b1b19c8/PyGObject-3.44.0.tar.gz (720 kB)
     |████████████████████████████████| 720 kB 36.8 MB/s 
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-6dzhjayh/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-1ye9lq25/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.2.0-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpphwmb2rt_in_process.py build_wheel /tmp/tmpxuebsh5l
         cwd: /tmp/pip-install-hz08819x/pycairo_de905304423644d9999278565c2fe727
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/07/73/a034fc1bcd6d402d6f72ff618c093f91ac6921f968cc19806b6a1b1b19c8/PyGObject-3.44.0.tar.gz#sha256=34c21bdca7aeaa602980dc51c11bb31ec300753975a66d5d41cb67e619e6835b (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.7, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-6dzhjayh/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-1ye9lq25/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/fe/40/9afaeb8d3b453fb8596fcb6c7bc2b64e434868c91eda19955742778eff74/PyGObject-3.42.2.tar.gz (719 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-drewfhmu/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ewf57mpl/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.2.0-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpomq9dg55_in_process.py build_wheel /tmp/tmpigicu08g
         cwd: /tmp/pip-install-xk6i8e_x/pycairo_a56e84caecaa417da0c6a80f77520e0b
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/fe/40/9afaeb8d3b453fb8596fcb6c7bc2b64e434868c91eda19955742778eff74/PyGObject-3.42.2.tar.gz#sha256=21524cef33100c8fd59dc135948b703d79d303e368ce71fa60521cc971cd8aa7 (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-drewfhmu/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ewf57mpl/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/41/d0/7eaebdca0723b267b96a8b7de2743cc223fbb47f651346b3e9b768acf8dd/PyGObject-3.42.1.tar.gz (718 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-jreh6bsn/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cdipstwt/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.2.0-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpcpjcddp4_in_process.py build_wheel /tmp/tmpz8ibw5fk
         cwd: /tmp/pip-install-sireyndo/pycairo_b606fb1b870b4a21b1f15ea4d033390a
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/41/d0/7eaebdca0723b267b96a8b7de2743cc223fbb47f651346b3e9b768acf8dd/PyGObject-3.42.1.tar.gz#sha256=80d6a3ad1630e9d1edf31b9e9fad9a894c57e18545a3c95ef0044ac4042b8620 (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-jreh6bsn/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-cdipstwt/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/cc/72/48cfdd7a0caf3c27f392d2657731ac6f7c3c1c0a60bfeba3e1ba9ffa7ba9/PyGObject-3.42.0.tar.gz (716 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-dcitjoih/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-shvuht70/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.2.0-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpsdmvhxi4_in_process.py build_wheel /tmp/tmpadqegyyf
         cwd: /tmp/pip-install-zdx9s4pi/pycairo_36aad2cab55e4d9b95258622de0ffa32
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/cc/72/48cfdd7a0caf3c27f392d2657731ac6f7c3c1c0a60bfeba3e1ba9ffa7ba9/PyGObject-3.42.0.tar.gz#sha256=b9803991ec0b0b4175e81fee0ad46090fa7af438fe169348a9b18ae53447afcd (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-dcitjoih/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-shvuht70/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/51/2f/4d5d5afb7000b9151e33952b59163c9389bd867ac6fe85d62f85831fa061/PyGObject-3.40.1.tar.gz (714 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-g62g2huq/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-amwpzf8f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.3.2-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpr09vuduo_in_process.py build_wheel /tmp/tmp9tqyvk8_
         cwd: /tmp/pip-install-9g73bkc8/pycairo_d205dd71a636467eb8f8ca93c7a5ae42
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/51/2f/4d5d5afb7000b9151e33952b59163c9389bd867ac6fe85d62f85831fa061/PyGObject-3.40.1.tar.gz#sha256=6fb599aa59ceb9dd05fafb0d72b3862943e7d5e85c8ef6c74856bc6d4321cbab (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-g62g2huq/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-amwpzf8f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/a0/fa/0cfaa64ad7a4cd94fd74b698fcc8987ed780fce1651fecc6604f86f604cd/PyGObject-3.40.0.tar.gz (714 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-05p_u6b6/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hpq68m3y/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.2.0-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmpi5ihhep7_in_process.py build_wheel /tmp/tmpoynqvxr1
         cwd: /tmp/pip-install-ezo3rtrt/pycairo_bc6cb586a29b4ed7abfeba655f08528f
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/a0/fa/0cfaa64ad7a4cd94fd74b698fcc8987ed780fce1651fecc6604f86f604cd/PyGObject-3.40.0.tar.gz#sha256=98d83f71e6313dadc29793450fec23b2eaa5c3f1c4b073d0a4f9c31b5cdb5fca (from https://package-proxy.replit.com/pypi/simple/pygobject/) (requires-python:>=3.6, <4). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-05p_u6b6/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hpq68m3y/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/3a/a7/de282a4aaedba59d60a895a7821e6497b39cbdfa94a352776ff45ffc6e6f/PyGObject-3.38.0.tar.gz (712 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-uv70lixb/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-x6e3kkz7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo
       cwd: None
  Complete output (38 lines):
  Looking in indexes: https://package-proxy.replit.com/pypi/simple/
  Collecting setuptools
    Using cached setuptools-67.3.2-py3-none-any.whl
  Collecting wheel
    Using cached wheel-0.38.4-py3-none-any.whl
  Collecting pycairo
    Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Installing backend dependencies: started
    Installing backend dependencies: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/tmp83ebqpaz_in_process.py build_wheel /tmp/tmp5qtl6nn2
         cwd: /tmp/pip-install-yxqvilng/pycairo_8001ed81d2ba4ac4a728a007409cd793
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
    running build_ext
    'pkg-config' not found.
    Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly


> .... this carries on for some time..

----------------------------------------
WARNING: Discarding https://package-proxy.replit.com/pypi/packages/0b/fd/56ac6898afc5c7f5718026103bd8f0b44714b6f79ac20d7eb8990c9a7eab/PyGObject-3.32.0.tar.gz#sha256=a4d6f6d8e688d28e07119fc83aabc6e7aad02057f48b2194089959d03654f695 (from https://package-proxy.replit.com/pypi/simple/pygobject/). Command errored out with exit status 1: /home/runner/grab-top-reddit/venv/bin/python3 /tmp/pip-standalone-pip-w_6z_fst/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-htpihn4f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://package-proxy.replit.com/pypi/simple/ -- setuptools wheel pycairo Check the logs for full command output.
  Using cached https://package-proxy.replit.com/pypi/packages/9f/95/9883829e6c86097f749c4c2bbe77ab90af8dfc8df8cbf8c56124a7a7009e/PyGObject-3.30.5.tar.gz (690 kB)
Collecting pycairo>=1.11.1
  Using cached https://package-proxy.replit.com/pypi/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz (344 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Using legacy 'setup.py install' for pygobject, since package 'wheel' is not installed.
Building wheels for collected packages: pycairo
  Building wheel for pycairo (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/runner/grab-top-reddit/venv/bin/python3 /home/runner/grab-top-reddit/venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmppufom0us
       cwd: /tmp/pip-install-oqb51rlx/pycairo_0d8cd2f5356f431384d8bd03b99051d5
  Complete output (12 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-310
  creating build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
  running build_ext
  'pkg-config' not found.
  Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
~/grab-top-reddit$

Please wrap the error in ```… It will make it much easier for us to read.
cc: @MattDESTROYER

3 Likes

basically, audio is really hard to work with on replit since replit sends code to a server to be run so it needs to do some sus stuff to get it play audio on client. Replit even tried making a builtin ver of this but it never worked very well and every other audio player doesn’t work on replit for the latter reason. It probably:

  1. needs some access to root that isn’t allowed in replit
  2. needs to do some stuff on client side which simply doesn’t exist on replit

thanks for the suggestion. I tried that, it didn’t seem to do anything. Im probbly doing it wrong.

Can you ELI5 that for me?

GAH! and my entire AI project relies heavily on audio. We are creating AI based disability aids for people with speech pathology to be understood better. I figured that replit would be a great place to at least get the framework started.
Bummer. Hopefully one of the admin folks can maybe help with a workaround?

Try pasting “```” at the top and bottom of your code, it seems you used ' instead of `. (Without the quotes just to be clear)

1 Like