achillesrasquinha / pipupgrade

πŸ—½ Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.

Home Page:https://git.io/pipupgrade

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with upgrade of PyGObject module

linuxrebel opened this issue Β· comments

What's the bug all about?

Error reported running pipupgrade on this module

What snippet/command led to this issue?

pipupgrade --verbose --latest --yes

Logs

Please paste the logs using pipupgrade --verbose

Requirement already satisfied: PyGObject in /usr/lib/python3/dist-packages (3.42.0)
Collecting PyGObject
  Downloading PyGObject-3.42.1.tar.gz (718 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 718.4/718.4 kB 838.1 kB/s eta 0:00:00
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  Γ— pip subprocess to install build dependencies did not run successfully.
  β”‚ exit code: 1
  ╰─> [40 lines of output]
      Collecting setuptools
        Downloading setuptools-62.6.0-py3-none-any.whl (1.2 MB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.2 MB/s eta 0:00:00
      Collecting wheel
        Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting pycairo
        Downloading pycairo-1.21.0.tar.gz (340 kB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.7/340.7 kB 2.4 MB/s eta 0:00:00
        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'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Building wheels for collected packages: pycairo
        Building wheel for pycairo (pyproject.toml): started
        Building wheel for pycairo (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error

        Γ— Building wheel for pycairo (pyproject.toml) did not run successfully.
        β”‚ exit code: 1
        ╰─> [12 lines of output]
            running bdist_wheel
            running build
            running build_py
            creating build
            creating build/lib.linux-x86_64-3.10
            creating build/lib.linux-x86_64-3.10/cairo
            copying cairo/__init__.py -> build/lib.linux-x86_64-3.10/cairo
            copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.10/cairo
            copying cairo/py.typed -> build/lib.linux-x86_64-3.10/cairo
            running build_ext
            'pkg-config' not found.
            Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for pycairo
      Failed to build pycairo
      ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
      [end of output]

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

Γ— pip subprocess to install build dependencies did not run successfully.
β”‚ exit code: 1
╰─> See above for output.

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

Traceback (most recent call last):
  File "/home/jsparenber002/.local/lib/python3.10/site-packages/pipupgrade/commands/__init__.py", line 79, in command
    return _command(**ARGUMENTS)
  File "/home/jsparenber002/.local/lib/python3.10/site-packages/pipupgrade/commands/__init__.py", line 258, in _command
    update_registry(registry, yes = a.yes, user = a.user, check = a.check,
  File "/home/jsparenber002/.local/lib/python3.10/site-packages/pipupgrade/commands/helper.py", line 301, in update_registry
    _pip.call("install", package.name,
  File "/home/jsparenber002/.local/lib/python3.10/site-packages/pipupgrade/_pip.py", line 79, in call
    output = popen(*params, output = output, raise_err = raise_err)
  File "/home/jsparenber002/.local/lib/python3.10/site-packages/bpyutils/util/system.py", line 115, in popen
    raise PopenError(code, command)
bpyutils.exception.PopenError: Command '/usr/bin/pip install PyGObject --no-cache-dir --upgrade' returned non-zero exit status 1.

An error occured while performing the above command. This could be an issue with
"pipupgrade". Kindly post an issue at https://github.com/achillesrasquinha/pipupgrade/issues