Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776814 - games-puzzle/brainworkshop-5_beta20200310 doesn't run (FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python-exec/python3.8/data')
Summary: games-puzzle/brainworkshop-5_beta20200310 doesn't run (FileNotFoundError: [Er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-17 07:01 UTC by globus
Modified: 2021-06-02 08:53 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 globus 2021-03-17 07:01:44 UTC
Hello, sorry for my bad English. At startup, it crashes with the following message: 

$ brainworkshop 
/usr/lib/python-exec/python3.8/brainworkshop:44: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import random, os, sys, imp, socket, webbrowser, time, math, traceback, datetime, errno
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/brainworkshop", line 826, in <module>
    check_and_move_user_data()
  File "/usr/lib/python-exec/python3.8/brainworkshop", line 690, in check_and_move_user_data
    shutil.copytree(get_old_data_dir(), get_data_dir())
  File "/usr/lib/python3.8/shutil.py", line 555, in copytree
    with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python-exec/python3.8/data'
Comment 1 globus 2021-03-17 07:03:34 UTC
$ emerge --info
Portage 3.0.13 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r7, 5.4.97-gentoo-m1 x86_64)
=================================================================
System uname: Linux-5.4.97-gentoo-m1-x86_64-AMD_Phenom-tm-_II_X2_550_Processor-with-glibc2.2.5
KiB Mem:     6100884 total,    283836 free
KiB Swap:   10485692 total,  10484912 free
Timestamp of repository gentoo: Sat, 13 Mar 2021 00:30:01 +0000
Head commit of repository gentoo: ca104aea54a40ea4b8f6fdbe143af07af00ce7b7
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p7::gentoo, 3.7.10::gentoo, 3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=y --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.bloodhost.ru/ http://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/en_US -/usr/share/locale/ru"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2 -n2"
PORTAGE_BZIP2_COMMAND="lbzip2 -n2"
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"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli crypt dbus dri drm dts dvd dvdr encode exif flac gdbm gif gtk gui iconv icu jpeg jpeg2k ladspa lcms libglvnd libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg mtp multilib musepack ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png popcnt ppds readline sdl seccomp smp split-usr sse sse2 sse3 sse4a ssl startup-notification svg tcpd tiff truetype udev unicode upower usb vaapi vdpau vorbis wmf wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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="evdev" KERNEL="linux" L10N="ru en" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Ionen Wolkens gentoo-dev 2021-03-18 12:44:10 UTC
As a workaround start it using "brainworkshop --datadir ~/.brainworkshop/data", after you've done that once that won't be needed anymore.


>check_and_move_user_data()
Haven't tried it but upstream removed that entirely[1], and there's also a proper 5.0.1 release now (there's 1 more commit[2] after it which sounds to be for py39 support and likely worth including).

[1] https://github.com/samcv/brainworkshop/commit/e5a934f
[2] https://github.com/samcv/brainworkshop/commit/5ba0335
Comment 3 Larry the Git Cow gentoo-dev 2021-06-02 08:53:23 UTC
The bug has been closed via the following commit(s):

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

commit a32137f8745defaf706509cc984c3beccdf6e310
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-06-02 08:30:21 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-06-02 08:50:41 +0000

    games-puzzle/brainworkshop: add 5.0.2
    
    - add python3_9
    - update HOMEPAGE/SRC_URI
    - update LICENSE (upstream clarified they use GPL-2+)
    - use upstream's newly provided .desktop
    
    edos2unix no longer needed, .py is provided over .pyw
    
    Closes: https://bugs.gentoo.org/776814
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 games-puzzle/brainworkshop/Manifest                |  1 +
 .../brainworkshop/brainworkshop-5.0.2.ebuild       | 48 ++++++++++++++++++++++
 .../files/brainworkshop-5.0.2-datadir.patch        |  7 ++++
 3 files changed, 56 insertions(+)