Skip to content

Dependency errror while instlling on Pop!_OS 22.04 #156

@pabloab

Description

@pabloab

On Pop!_OS 22.04 LTS (based on Ubuntu 22.04):

pipx install waypaper

Fatal error from pip prevented installation. Full pip output in file:
    /home/me/.local/pipx/logs/cmd_2025-05-09_21.33.15_pip_errors.log

pip seemed to fail to build package:
    PyGObject

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    ../cairo/meson.build:31:12: ERROR: Dependency "cairo" not found, tried pkgconfig
    error: metadata-generation-failed

Error installing waypaper.
cd: no such entry in dir stack

Installing python311-pycairo-devel with apt or pycairo with pip/pipx didn't work. But with pip:

pip install waypaper                                           
Defaulting to user installation because normal site-packages is not writeable
Collecting waypaper
  Downloading waypaper-2.5-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: PyGObject in /usr/lib/python3/dist-packages (from waypaper) (3.42.1)
Requirement already satisfied: platformdirs in /usr/lib/python3/dist-packages (from waypaper) (2.5.1)
Requirement already satisfied: Pillow in /home/me/.local/lib/python3.10/site-packages (from waypaper) (10.1.0)
Requirement already satisfied: imageio in /home/me/.local/lib/python3.10/site-packages (from waypaper) (2.31.4)
Requirement already satisfied: imageio-ffmpeg in /home/me/.local/lib/python3.10/site-packages (from waypaper) (0.4.9)
Collecting screeninfo (from waypaper)
  Downloading screeninfo-0.8.1-py3-none-any.whl.metadata (2.9 kB)
Requirement already satisfied: numpy in /home/me/.local/lib/python3.10/site-packages (from imageio->waypaper) (1.25.2)
Requirement already satisfied: setuptools in /home/me/.local/lib/python3.10/site-packages (from imageio-ffmpeg->waypaper) (76.0.0)
Requirement already satisfied: pycairo>=1.16.0 in /usr/lib/python3/dist-packages (from PyGObject->waypaper) (1.20.1)
Downloading waypaper-2.5-py3-none-any.whl (46 kB)
Downloading screeninfo-0.8.1-py3-none-any.whl (12 kB)
WARNING: Error parsing dependencies of flatbuffers: Invalid version: '1.12.1-git20200711.33e2d80-dfsg1-0.6'
WARNING: Error parsing dependencies of pdfminer-six: Invalid version: '-VERSION-'
Installing collected packages: screeninfo, waypaper
Successfully installed screeninfo-0.8.1 waypaper-2.5

But

$ waypaper
Traceback (most recent call last):
  File "/home/me/.local/bin/waypaper", line 5, in <module>
    from waypaper.__main__ import run
  File "/home/me/.local/lib/python3.10/site-packages/waypaper/__main__.py", line 10, in <module>
    from waypaper.app import App
  File "/home/me/.local/lib/python3.10/site-packages/waypaper/app.py", line 12, in <module>
    from waypaper.changer import change_wallpaper
  File "/home/me/.local/lib/python3.10/site-packages/waypaper/changer.py", line 9, in <module>
    from waypaper.config import Config
  File "/home/me/.local/lib/python3.10/site-packages/waypaper/config.py", line 7, in <module>
    from platformdirs import user_config_path, user_pictures_path, user_cache_path, user_state_path
ImportError: cannot import name 'user_pictures_path' from 'platformdirs' (/usr/lib/python3/dist-packages/platformdirs/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions