Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822840 - dev-python/slimit-0.8.1-r1 - ModuleNotFoundError: No module named minifier
Summary: dev-python/slimit-0.8.1-r1 - ModuleNotFoundError: No module named minifier
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: 822354 812149
  Show dependency tree
 
Reported: 2021-11-10 08:22 UTC by Toralf Förster
Modified: 2022-12-31 18:32 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.88 KB, text/plain)
2021-11-10 08:22 UTC, Toralf Förster
Details
dev-python:slimit-0.8.1-r1:20211110-022857.log (dev-python:slimit-0.8.1-r1:20211110-022857.log,6.15 KB, text/plain)
2021-11-10 08:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,198.50 KB, text/plain)
2021-11-10 08:22 UTC, Toralf Förster
Details
environment (environment,114.00 KB, text/plain)
2021-11-10 08:22 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.19 KB, application/x-bzip)
2021-11-10 08:22 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.88 KB, application/x-bzip)
2021-11-10 08:22 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-10 08:22:33 UTC
  File "/var/tmp/portage/dev-python/slimit-0.8.1-r1/work/slimit-0.8.1-python3_9/lib/slimit/__init__.py", line 27, in <module>
    from minifier import minify
ModuleNotFoundError: No module named 'minifier'
 * ERROR: dev-python/slimit-0.8.1-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 992c23fbb1408e0b1db32a1ad18e1c13f895b93d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Nov 10 01:21:39 2021 +0000

    2021-11-10 01:21:38 UTC

emerge -qpvO dev-python/slimit
[ebuild  N    ] dev-python/slimit-0.8.1-r1  USE="-test" PYTHON_TARGETS="python3_9 -pypy3 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-11-10 08:22:34 UTC
Created attachment 750078 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-10 08:22:35 UTC
Created attachment 750081 [details]
dev-python:slimit-0.8.1-r1:20211110-022857.log
Comment 3 Toralf Förster gentoo-dev 2021-11-10 08:22:37 UTC
Created attachment 750084 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-11-10 08:22:38 UTC
Created attachment 750087 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-11-10 08:22:39 UTC
Created attachment 750090 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-10 08:22:40 UTC
Created attachment 750093 [details]
temp.tar.bz2
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-12-22 09:21:18 UTC
This is somewhat related to bug #812149, except that rather than using setuptools' built-in 2to3 support, the package uses distutils' implementation directly.

These lines on top of setup.py are the culprit:

```
try:
   from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
   from distutils.command.build_py import build_py
```

build_py_2to3 was removed from setuptools' vendored distutils, so the import fails and falls back to the non-converting variant.  This effectively means that the version compatible with Python 2 is installed.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-12-22 09:25:15 UTC
I suppose we could workaround the problem for the time being by calling 2to3 directly but given how dead this package is (last commit in 2018), I suppose we should be removing it instead.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-02 08:02:06 UTC
(Still fails with 60.2.0, as expected.)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-02 08:10:07 UTC
paolo, this looks pretty dead upstream. Any interest in keeping this or shall we last-rite?
Comment 11 Paolo Pedroni 2022-01-05 10:23:05 UTC
(In reply to Sam James from comment #10)
> paolo, this looks pretty dead upstream. Any interest in keeping this or
> shall we last-rite?

I have to check. Sadly my development machine is dead ATM, and I can't do any serious development right now. I hope to be back on track in the second half of January.

Thanks for your patience.
Comment 12 Paolo Pedroni 2022-01-31 09:14:21 UTC
(In reply to Sam James from comment #10)
> paolo, this looks pretty dead upstream. Any interest in keeping this or
> shall we last-rite?

You're free to last-rite, thanks. Sorry if it took so long to reply.
Comment 13 Larry the Git Cow gentoo-dev 2022-11-27 20:04:18 UTC
The bug has been referenced in the following commit(s):

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

commit d8fc7735b44af10192df9a0443cbe1c38f458750
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-11-27 16:56:23 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-11-27 20:00:34 +0000

    package.mask: Last rite dev-python/slimit
    
    Bug: https://bugs.gentoo.org/822840
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 14 Larry the Git Cow gentoo-dev 2022-12-31 18:32:40 UTC
The bug has been closed via the following commit(s):

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

commit b61a544f5cb77f50b878b59d1e7574e368b4587a
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-12-31 18:17:19 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-12-31 18:30:56 +0000

    dev-python/slimit: treeclean
    
    Closes: https://bugs.gentoo.org/822840
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-python/slimit/Manifest                         |   1 -
 .../slimit/files/slimit-0.8.1-fix-python3.patch    | 277 ---------------------
 dev-python/slimit/metadata.xml                     |  15 --
 dev-python/slimit/slimit-0.8.1-r1.ebuild           |  36 ---
 profiles/package.mask                              |   6 -
 5 files changed, 335 deletions(-)