Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 693012

Summary: games-roguelike/stone-soup-0.23.2 : ModuleNotFoundError: No module named yaml
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Erik Mackdanz <stasibear>
Status: RESOLVED FIXED    
Severity: normal CC: games
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-roguelike:stone-soup-0.23.2:20190828-110424.log
logs.tbz2

Description Toralf Förster gentoo-dev 2019-08-28 15:17:55 UTC
  File "util/species-gen.py", line 12, in <module>
    import yaml  # pip install pyyaml
ModuleNotFoundError: No module named 'yaml'
make: *** [Makefile:1621: species-data.h] Error 1
 * ERROR: games-roguelike/stone-soup-0.23.2::gentoo failed (compile phase):
 *   emake failed

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20190823-111827

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.37.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository timestamp:

==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 28 Aug 2019 09:48:16 +0000

emerge -qpvO games-roguelike/stone-soup
[ebuild  N    ] games-roguelike/stone-soup-0.23.2  USE="ncurses tiles -debug -sound -test"
Comment 1 Toralf Förster gentoo-dev 2019-08-28 15:17:58 UTC
Created attachment 588440 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-08-28 15:18:00 UTC
Created attachment 588442 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-08-28 15:18:03 UTC
Created attachment 588444 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-08-28 15:18:06 UTC
Created attachment 588446 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-08-28 15:18:08 UTC
Created attachment 588448 [details]
games-roguelike:stone-soup-0.23.2:20190828-110424.log
Comment 6 Toralf Förster gentoo-dev 2019-08-28 15:18:11 UTC
Created attachment 588450 [details]
logs.tbz2
Comment 7 lekto 2020-06-15 16:35:14 UTC
Same problem here, using inotifywatch I found that python 3.7 and 3.9 run during build, but I have pyyaml without python_targets_python3_9. After rebuilding pyyaml with python 3.7 and 3.9, I was able to build stone-soup.

BTW.
I got this when I was building stone-soup with dev-lang/lua-5.1.5-r4 with deprecated flag.
>cluautil.cc: In function ‘void luaopen_setmeta(lua_State*, const char*, const >luaL_Reg*, const char*)’:
>cluautil.cc:55:5: error: ‘luaL_openlib’ was not declared in this scope; did you >mean ‘luaL_openlibs’?
>   55 |     luaL_openlib(ls, global, lua_lib, 0);
>      |     ^~~~~~~~~~~~
>      |     luaL_openlibs
>cluautil.cc: In function ‘void clua_register_metatable(lua_State*, const char*, >const luaL_Reg*, int (*)(lua_State*))’:
>cluautil.cc:81:9: error: ‘luaL_openlib’ was not declared in this scope; did you >mean ‘luaL_openlibs’?
>   81 |         luaL_openlib(ls, nullptr, lr, 0);
>      |         ^~~~~~~~~~~~
>      |         luaL_openlibs
>make: *** [Makefile:1589: cluautil.o] Error 1
Comment 8 Rick Foland 2020-07-15 23:42:39 UTC
I'm also getting this while trying to build 0.24.0
Comment 9 Larry the Git Cow gentoo-dev 2020-11-16 17:35:31 UTC
The bug has been closed via the following commit(s):

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

commit b17c24c3ffa4c11dcae518c63567e14e9d02da2d
Author:     Erik Mackdanz <stasibear@gentoo.org>
AuthorDate: 2020-11-16 17:35:14 +0000
Commit:     Erik Mackdanz <stasibear@gentoo.org>
CommitDate: 2020-11-16 17:35:14 +0000

    games-roguelike/stone-soup: Properly specify pyyaml dep
    
    Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>
    Closes: https://bugs.gentoo.org/693012
    Package-Manager: Portage-3.0.9, Repoman-3.0.2

 games-roguelike/stone-soup/stone-soup-0.25.0.ebuild      | 10 +++++++---
 games-roguelike/stone-soup/stone-soup-0.25.1-r1.ebuild   |  6 ++++--
 games-roguelike/stone-soup/stone-soup-0.25.1-r100.ebuild | 12 ++++--------
 games-roguelike/stone-soup/stone-soup-0.25.1.ebuild      |  6 ++++--
 4 files changed, 19 insertions(+), 15 deletions(-)
Comment 10 Erik Mackdanz gentoo-dev 2020-11-16 17:37:53 UTC
Thanks lekto and Rick for the helpful context and for your patience.
Comment 11 Larry the Git Cow gentoo-dev 2020-12-12 13:51:28 UTC
The bug has been closed via the following commit(s):

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

commit 7542a3cf9697be8b69c850961d644e6d52954dae
Author:     Erik Mackdanz <stasibear@gentoo.org>
AuthorDate: 2020-12-12 13:51:11 +0000
Commit:     Erik Mackdanz <stasibear@gentoo.org>
CommitDate: 2020-12-12 13:51:11 +0000

    games-roguelike/stone-soup: Correctly use python eclasses for bdeps
    
    Had omitted this version in previous fix.
    
    Closes: https://bugs.gentoo.org/759583
    Closes: https://bugs.gentoo.org/693012
    Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>
    Package-Manager: Portage-3.0.12, Repoman-3.0.2

 .../stone-soup/stone-soup-0.25.1-r1.ebuild           | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)