Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905962 - dev-python/jellyfish: broken (was: media-sound/beets-1.6.0-r1 - ModuleNotFoundError: No module named jellyfish._rustyfish)
Summary: dev-python/jellyfish: broken (was: media-sound/beets-1.6.0-r1 - ModuleNotFoun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 907822
  Show dependency tree
 
Reported: 2023-05-08 18:27 UTC by Toralf Förster
Modified: 2023-06-12 10:58 UTC (History)
8 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.46 KB, text/plain)
2023-05-08 18:27 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,57.27 KB, application/x-bzip)
2023-05-08 18:27 UTC, Toralf Förster
Details
environment (environment,144.49 KB, text/plain)
2023-05-08 18:27 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,858 bytes, application/x-bzip)
2023-05-08 18:27 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,29.11 KB, application/x-bzip)
2023-05-08 18:27 UTC, Toralf Förster
Details
media-sound:beets-1.6.0-r1:20230508-180028.log (media-sound:beets-1.6.0-r1:20230508-180028.log,65.27 KB, text/plain)
2023-05-08 18:27 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,35.57 KB, application/x-bzip)
2023-05-08 18:27 UTC, Toralf Förster
Details
build.log (build.log,49.08 KB, text/plain)
2023-06-09 13:53 UTC, Andrés Becerra Sandoval
Details
build-python3_11.log (build-python3_11.log,40.14 KB, text/plain)
2023-06-09 13:53 UTC, Andrés Becerra Sandoval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-05-08 18:27:36 UTC
  File "/var/tmp/portage/media-sound/beets-1.6.0-r1/work/beets-1.6.0_python3.11/lib/beets/autotag/__init__.py", line 23, in <module>
    from .hooks import (  # noqa
  File "/var/tmp/portage/media-sound/beets-1.6.0-r1/work/beets-1.6.0_python3.11/lib/beets/autotag/hooks.py", line 26, in <module>
    from jellyfish import levenshtein_distance
  File "/usr/lib/python3.11/site-packages/jellyfish/__init__.py", line 3, in <module>
    from ._rustyfish import *
ModuleNotFoundError: No module named 'jellyfish._rustyfish'
 * ERROR: media-sound/beets-1.6.0-r1::gentoo failed (install phase):
 *   (no error message)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20230506-004510

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.3
Python 3.11.3
Available Ruby profiles:
  [1]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
3)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-jre-bin-17 

php cli (if any):
go version go1.20.3 linux/amd64

  HEAD of ::gentoo
commit 7a3ecd5382e3d1b8dfed52c1ed7a48d54c069d0e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon May 8 17:47:00 2023 +0000

    2023-05-08 17:46:59 UTC

emerge -qpvO media-sound/beets
[ebuild  N    ] media-sound/beets-1.6.0-r1  USE="-doc -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-05-08 18:27:37 UTC
Created attachment 861341 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-05-08 18:27:38 UTC
Created attachment 861342 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-05-08 18:27:39 UTC
Created attachment 861343 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-05-08 18:27:40 UTC
Created attachment 861344 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-05-08 18:27:41 UTC
Created attachment 861345 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-05-08 18:27:42 UTC
Created attachment 861346 [details]
media-sound:beets-1.6.0-r1:20230508-180028.log
Comment 7 Toralf Förster gentoo-dev 2023-05-08 18:27:43 UTC
Created attachment 861347 [details]
temp.tar.bz2
Comment 8 antonello 2023-06-04 05:52:36 UTC
Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.37-r3, 6.0.0-pf5-x86_64-GP-PF-ST-nvidia x86_64)
=================================================================
System uname: Linux-6.0.0-pf5-x86_64-GP-PF-ST-nvidia-x86_64-12th_Gen_Intel-R-_Core-TM-_i9-12900K-with-glibc2.37
KiB Mem:    32606828 total,  18297352 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 29 May 2023 16:30:01 +0000
Head commit of repository gentoo: cfb0b72455b9ad908e042699297dd50de4072d4f

Head commit of repository antonellocaroli: cce4e0e6bea2d646cf4854862cf19f48f9c1d6bb

sh bash 5.2_p15-r3
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r3::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.3::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.4::gentoo
sys-devel/gcc:             13.1.1_p20230527::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.4::gentoo
sys-devel/llvm:            16.0.4::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gpoverlay/gpoverlay820
    priority: -1000
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

antonellocaroli
    location: /var/db/repos/antonellocaroli
    sync-type: git
    sync-uri: https://github.com/x86gentoo/antonellocaroli.git
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O3 -pipe"
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="-O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 bindist branding bzip2 cairo cli crypt dbus dri elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp orc pam pango pcre pdf png policykit ppds readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 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="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 9 antonello 2023-06-04 05:54:00 UTC
Same problem here.
probably after python3_11 update?
Comment 10 Andrés Becerra Sandoval 2023-06-09 10:23:31 UTC
The problem is in jellyfish:

Python 3.11.3 (main, May 30 2023, 14:43:52) [GCC 13.1.1 20230520] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jellyfish
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.11/site-packages/jellyfish/__init__.py", line 3, in <module>
    from ._rustyfish import *
ModuleNotFoundError: No module named 'jellyfish._rustyfish'


This occurs with both versions in portage:
0.11.1 0.11.2
Comment 11 Andrés Becerra Sandoval 2023-06-09 10:29:48 UTC
And jellyfish can be imported successfully when installed with pip in a virtual environment:

$ python -m venv venv
$ cd venv/
$ source bin/activate
(venv) $ pip install jellyfish
(venv) $ python
Python 3.11.3 (main, May 30 2023, 14:43:52) [GCC 13.1.1 20230520] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jellyfish
>>>
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-06-09 11:36:37 UTC
Can you attach your jellyfish build log?
Comment 13 Andrés Becerra Sandoval 2023-06-09 13:53:16 UTC
Created attachment 863604 [details]
build.log
Comment 14 Andrés Becerra Sandoval 2023-06-09 13:53:44 UTC
Created attachment 863605 [details]
build-python3_11.log
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 04:23:06 UTC
    Finished release [optimized] target(s) in 6.70s
⚠️  Warning: Couldn't find the symbol `PyInit_jellyfish` in the native library. Python will fail to import this module. If you're using pyo3, check that `#[pymodule]` uses `jellyfish` as module name

... which looks suspicious.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 04:26:16 UTC
Reproduced, not looked at it beyond that. ccing ionen as maturin maintainer in case any ideas
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 04:27:02 UTC
(In reply to Sam James from comment #16)
> Reproduced, not looked at it beyond that. ccing ionen as maturin maintainer
> in case any ideas

https://github.com/jamesturk/jellyfish/commit/2ebc2c647eafce3036d12814b0247cdd55e0be4d ... maybe?
Comment 18 Ionen Wolkens gentoo-dev 2023-06-12 06:04:03 UTC
(In reply to Sam James from comment #17)
> (In reply to Sam James from comment #16)
> > Reproduced, not looked at it beyond that. ccing ionen as maturin maintainer
> > in case any ideas
> 
> https://github.com/jamesturk/jellyfish/commit/
> 2ebc2c647eafce3036d12814b0247cdd55e0be4d ... maybe?
Sounds likely. That's not actually musl related, and package.metadata.maturin.name been deprecated since maturin-0.14.16 -- probably getting ignored now in 1.x
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 09:47:26 UTC
thanks! Looking at it when not drifting off, it makes a lot more sense too.
Comment 20 Larry the Git Cow gentoo-dev 2023-06-12 10:58:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9c61a9fb3165f522579b530ffab4460c06b2353

commit f9c61a9fb3165f522579b530ffab4460c06b2353
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-06-12 10:58:05 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-06-12 10:58:39 +0000

    dev-python/jellyfish: Backport a maturin build fix
    
    Backport a build fix for maturin compatibility.  It fixes a bug that
    could result in a broken package being installed.
    
    Thanks to Sam for finding the commit.
    
    Closes: https://bugs.gentoo.org/905962
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../files/jellyfish-0.11.2-maturin-1.patch         | 33 ++++++++++++++++++++++
 ...sh-0.11.1.ebuild => jellyfish-0.11.1-r1.ebuild} |  5 ++++
 ...sh-0.11.2.ebuild => jellyfish-0.11.2-r1.ebuild} |  4 +++
 3 files changed, 42 insertions(+)