Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919786 - media-gfx/inkscape-1.2.2-r4 should depend on dev-python/filelock
Summary: media-gfx/inkscape-1.2.2-r4 should depend on dev-python/filelock
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-12 17:27 UTC by Gustav Schaffter
Modified: 2024-03-12 15:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustav Schaffter 2023-12-12 17:27:00 UTC
Inkscape's inkscape-extension-manager: 1.0 expects to use the dev-python/filelock module, but that module hasn't been pulled in as a dependency.
The extension manager dosn't crash, but complains.

Reproducible: Always

Steps to Reproduce:
1. Install media-gfx/inkscape-1.2.2-r4
2. Select Extensions -> Manage Extensions
3. Read error messages.
4. Close and re-open Inkscape
5. Explicitly emerge dev-python/filelock (currently 3.13.1)
6. Select Extensions -> Manage Extensions
7. Read useful information about Inkscape extensions.
Actual Results:  
The extension manager shows the following:

<frozen importlib._bootstrap>:673: ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()
<frozen importlib._bootstrap>:673: ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()
An error occured with the extensions manager!
Trying to self-update the package... Failed to update!

Please delete the package manually! (see location below)


Please report this error
------------------------

Report URL: https://gitlab.com/inkscape/extras/extension-manager/-/issues
Location: /usr/share/inkscape/extensions/inkman/inkman/inkman
inkscape-extension-manager: 1.0

Not done
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/cachecontrol/caches/file_cache.py", line 74, in __init__
    from filelock import FileLock
ModuleNotFoundError: No module named 'filelock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 61, in recovery_run
    run(args)
  File "/usr/share/inkscape/extensions/inkman/inkman/manage_extensions.py", line 36, in run
    from inkman.targets import TARGETS
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/targets.py", line 9, in <module>
    ExtensionsTarget("extension", "Extensions", "extensions", True, filters=("*.inx",)),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/target.py", line 49, in __init__
    self.archive = RemoteArchive(category)
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/inkscape/extensions/inkman/inkman/inkman/remote.py", line 111, in __init__
    cache=FileCache(CACHE_DIR),
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/cachecontrol/caches/file_cache.py", line 85, in __init__
    raise ImportError(notice)
ImportError: 
NOTE: In order to use the FileCache you must have
filelock installed. You can install it via pip:
  pip install filelock



Expected Results:  
1. Portage should install dev-python/filelock as a dependency.
2. The extension manager should show information about extensions.

Portage 3.0.56 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r7, 6.1.66-gentoo-Baldur x86_64)
=================================================================
System uname: Linux-6.1.66-gentoo-Baldur-x86_64-Intel-R-_Core-TM-_i7-10700KF_CPU_@_3.80GHz-with-glibc2.37
KiB Mem:   131757296 total, 115001352 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 12 Dec 2023 05:30:01 +0000
Head commit of repository gentoo: 551eb4516b16fb0cf9bacd46741836be9128daa9
Timestamp of repository guru: Mon, 11 Dec 2023 12:48:47 +0000
Head commit of repository guru: d868da5c8d6a3afe18ca69392e10b704432d61ee

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE Obsidian-EULA all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US en_GB fr fr_FR"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amt appindicator base bash-completion bluetooth bluray branding btpclient bzip2 cairo cdda cddb cdr clamdtop cli clock cover crypt css cups dbus deprecated device-mapper distinct-l dri dts dvd dvdr elogind emacs encode exif extra-tools fbcon ffmpeg flac flashrom fontconfig fortran gdbm gif gimp gpm gtk gtk3 gui harfbuzz iconv icu ipv6 ithreads java jpeg json lcms libnotify libtirpc lm-sensors location logrotate lvm lyrics mad mate matroska mesh mng mp3 mp4 mpeg multilib ncurses nls nptl obex ocr offlinehelp ogg opengl openmp opus pam pango pcre pdf pdfimport png policykit positioning ppds printsupport qmake qml qt5 quick readline sdl seccomp sensord sensors sound sound-server spell split-usr sqlite ssl startup-notification svg taglib test-rust themes theora thin tiff truetype tty-helpers udev udisks unicode upower usb visualizer vorbis vpx vulkan wavpack webchannel webengine webp wxwidgets x264 x265 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US fr en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Alfred Wingate 2023-12-13 15:39:38 UTC
dev-python/filelock is an optional dependency for dev-python/cachetools and inkscape uses this optional functionality unconditionally.

https://github.com/psf/cachecontrol/commit/f0cd6b49e5c4215137e5c24ac0b46752f0c61e69