Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916872 - www-apps/nikola-8.2.3-r2 - KeyError: scan_posts
Summary: www-apps/nikola-8.2.3-r2 - KeyError: scan_posts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ulrich Müller
URL: https://github.com/getnikola/nikola/i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-05 00:21 UTC by Toralf Förster
Modified: 2023-11-28 08:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.19 KB, text/plain)
2023-11-05 00:21 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,62.65 KB, application/x-xz)
2023-11-05 00:21 UTC, Toralf Förster
Details
environment (environment,162.72 KB, text/plain)
2023-11-05 00:21 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.07 KB, application/x-xz)
2023-11-05 00:21 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,36.04 KB, application/x-xz)
2023-11-05 00:21 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,68.52 KB, application/x-xz)
2023-11-05 00:21 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,47.09 KB, application/x-xz)
2023-11-05 00:21 UTC, Toralf Förster
Details
www-apps:nikola-8.2.3-r2:20231104-230506.log.xz (www-apps:nikola-8.2.3-r2:20231104-230506.log.xz,12.76 KB, application/x-xz)
2023-11-05 00:21 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 2023-11-05 00:21:47 UTC
    plugin_info.plugin_object.set_site(self)
  File "/var/tmp/portage/www-apps/nikola-8.2.3-r2/work/Nikola-8.2.3-python3_11/install/usr/lib/python3.11/site-packages/nikola/plugin_categories.py", line 70, in set_site
    self.inject_templates()
  File "/var/tmp/portage/www-apps/nikola-8.2.3-r2/work/Nikola-8.2.3-python3_11/install/usr/lib/python3.11/site-packages/nikola/plugin_categories.py", line 79, in inject_templates
    mod_path = sys.modules[self.__class__.__module__].__file__
               ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'scan_posts'
 * ERROR: www-apps/nikola-8.2.3-r2::gentoo failed (compile phase):
 *   (no error message)

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.21.3 linux/amd64

  HEAD of ::gentoo
commit f0f86fdafceefd6988ec32a8c153821719966423
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 4 22:16:58 2023 +0000

    2023-11-04 22:16:58 UTC

emerge -qpvO www-apps/nikola
[ebuild  N    ] www-apps/nikola-8.2.3-r2  PYTHON_TARGETS="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-11-05 00:21:48 UTC
Created attachment 874085 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-05 00:21:49 UTC
Created attachment 874086 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-11-05 00:21:51 UTC
Created attachment 874087 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-11-05 00:21:51 UTC
Created attachment 874088 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-11-05 00:21:53 UTC
Created attachment 874089 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-05 00:21:54 UTC
Created attachment 874090 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2023-11-05 00:21:55 UTC
Created attachment 874091 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-11-05 00:21:56 UTC
Created attachment 874092 [details]
www-apps:nikola-8.2.3-r2:20231104-230506.log.xz
Comment 9 Ulrich Müller gentoo-dev 2023-11-05 03:03:31 UTC
Is this still an issue in 8.2.4?
Comment 10 Toralf Förster gentoo-dev 2023-11-05 10:13:42 UTC
(In reply to Ulrich Müller from comment #9)
> Is this still an issue in 8.2.4?

yes
Comment 11 Sebastian Pipping gentoo-dev 2023-11-05 13:26:55 UTC
Ran into this also today and found a related issue upstream at…

  https://github.com/getnikola/nikola/issues/3700

…as well as a merged post-8.2.4 pull request…

  https://github.com/getnikola/nikola/pull/3701 .

We may need some form of backport or a new release from upstream for a fix I suppose.
Comment 12 Larry the Git Cow gentoo-dev 2023-11-05 13:46:09 UTC
The bug has been referenced in the following commit(s):

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

commit 876398edc86a7c72569a36b3f972219a9c34a11d
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2023-11-05 13:43:10 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-11-05 13:45:42 +0000

    www-apps/nikola: Fix loading of plugins
    
    Bug: https://bugs.gentoo.org/916872
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 www-apps/nikola/files/nikola-8.2.4-yapsy.patch | 45 ++++++++++++++++++++++++++
 www-apps/nikola/nikola-8.2.4.ebuild            |  2 ++
 2 files changed, 47 insertions(+)
Comment 13 Ulrich Müller gentoo-dev 2023-11-05 13:47:33 UTC
(In reply to Sebastian Pipping from comment #11)
> Ran into this also today and found a related issue upstream at…
> 
>   https://github.com/getnikola/nikola/issues/3700
> 
> …as well as a merged post-8.2.4 pull request…
> 
>   https://github.com/getnikola/nikola/pull/3701 .
> 
> We may need some form of backport or a new release from upstream for a fix I
> suppose.

I've added that commit as a patch to 8.2.4 (without revbump).

Please test if this has fixed the problem, because I cannot reproduce it.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 13:50:58 UTC
(In reply to Ulrich Müller from comment #13)
> (In reply to Sebastian Pipping from comment #11)
> > Ran into this also today and found a related issue upstream at…
> > 
> >   https://github.com/getnikola/nikola/issues/3700
> > 
> > …as well as a merged post-8.2.4 pull request…
> > 
> >   https://github.com/getnikola/nikola/pull/3701 .
> > 
> > We may need some form of backport or a new release from upstream for a fix I
> > suppose.
> 
> I've added that commit as a patch to 8.2.4 (without revbump).
> 

Why? If it changed, you should revbump even if it doesn't fix the issue.

Also, it's extremely cheap to rebuild anyway.
Comment 15 Ulrich Müller gentoo-dev 2023-11-05 13:56:21 UTC
(In reply to Sam James from comment #14)
> > I've added that commit as a patch to 8.2.4 (without revbump).
> 
> Why? If it changed, you should revbump even if it doesn't fix the issue.

It is a build-time problem.

Also, the hope is that the patch does fix the build failure.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 14:06:37 UTC
Oh, sorry, for some reason I assumed it wasn't (I jumped to sping's comment). Plugins normally lead to runtime problems.
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 14:07:40 UTC
That said: I remember why I commented now. It looked like it might well be broken at runtime given plugins even if it doesn't build anymore now (if you already had it installed, then upgrade yapsy)?
Comment 18 Sebastian Pipping gentoo-dev 2023-11-05 14:18:21 UTC
I just verified that this change /does/ affect "nikola build" i.e. runtime behavior so I'll dare add the missing revbump a la

  git mv nikola-8.2.4.ebuild nikola-8.2.4-r1.ebuild

Commit upcoming in a second…

Thanks to ulm for the backport!
Comment 19 Larry the Git Cow gentoo-dev 2023-11-05 14:18:25 UTC
The bug has been referenced in the following commit(s):

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

commit 4297ba38c8b460b95fc7360223f4621ced8696a2
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2023-11-05 14:15:51 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2023-11-05 14:15:51 +0000

    www-apps/nikola: Add missing revbump
    
    Bug: https://bugs.gentoo.org/916872
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 www-apps/nikola/{nikola-8.2.4.ebuild => nikola-8.2.4-r1.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)