Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830130 - [torbrowser] www-client/torbrowser-launcher-0.3.2::torbrowser fails to emerge due to AttributeError: module 'platform' has no attribute 'dist'
Summary: [torbrowser] www-client/torbrowser-launcher-0.3.2::torbrowser fails to emerge...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: poncho
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 21:55 UTC by B Nice
Modified: 2021-12-28 22:52 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 B Nice 2021-12-27 21:55:06 UTC
Trying to emerge torbrowser-launcher leads to an error at the start of the ebuild saying: "AttributeError: module 'platform' has no attribute 'dist'"


Reproducible: Always

Steps to Reproduce:
1. emerge torbrowser-launcher
2. Download files
3. ebuild crashes with error: AttributeError: module 'platform' has no attribute 'dist'

Actual Results:  
* torbrowser-launcher-0.3.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                        [ ok ]
 * Using python3.8 to build
>>> Unpacking source...
>>> Unpacking torbrowser-launcher-0.3.2.tar.gz to /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work
>>> Source unpacked in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work
>>> Preparing source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
python3.8 setup.py build -j 5
Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    distro = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
 * ERROR: www-client/torbrowser-launcher-0.3.2::torbrowser failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2980:  Called distutils-r1_src_compile
 *   environment, line 1137:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  489:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1128:  Called distutils-r1_python_compile
 *   environment, line  987:  Called esetup.py 'build' '-j' '5'
 *   environment, line 1585:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 * 
 * If you need support, post the output of `emerge --info '=www-client/torbrowser-launcher-0.3.2::torbrowser'`,
 * the complete build log and the output of `emerge -pqv '=www-client/torbrowser-launcher-0.3.2::torbrowser'`.
 * The complete build log is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'
 * S: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'

>>> Failed to emerge www-client/torbrowser-launcher-0.3.2, Log file:

>>>  '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/build.log'

 * Messages for package www-client/torbrowser-launcher-0.3.2:

 * ERROR: www-client/torbrowser-launcher-0.3.2::torbrowser failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2980:  Called distutils-r1_src_compile
 *   environment, line 1137:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  489:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1128:  Called distutils-r1_python_compile
 *   environment, line  987:  Called esetup.py 'build' '-j' '5'
 *   environment, line 1585:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 * 
 * If you need support, post the output of `emerge --info '=www-client/torbrowser-launcher-0.3.2::torbrowser'`,
 * the complete build log and the output of `emerge -pqv '=www-client/torbrowser-launcher-0.3.2::torbrowser'`.
 * The complete build log is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'
 * S: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'

Expected Results:  
Successful install of the torbrowser-launcher

sudo emerge --info '=www-client/torbrowser-launcher-0.3.2::torbrowser'
Password: 
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r4, 5.15.6-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.6-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-1065G7_CPU_@_1.30GHz-with-glibc2.34
KiB Mem:    16127916 total,   5203836 free
KiB Swap:     524284 total,     95768 free
Timestamp of repository gentoo: Wed, 22 Dec 2021 21:30:01 +0000
Head commit of repository gentoo: 65b067b8fd7854b6ae7523b3d0d53ebf534df0aa
sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p12::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.1-r1::gentoo
dev-lang/rust:             1.57.0::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.1_p20211127::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r4::gentoo
Repositories:

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

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://rsync2.au.gentoo.org/gentoo-portage/ ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 ao bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gphoto2 gpm gstreamer gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lm-sensors mad matroska mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline samba scanner sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en_CA.UTF-8 en_CA" 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="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

sudo emerge -pqv '=www-client/torbrowser-launcher-0.3.2::torbrowser'
[ebuild  N    ] www-client/torbrowser-launcher-0.3.2  PYTHON_SINGLE_TARGET="python3_8" 

sudo cat /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/build.log
 * Package:    www-client/torbrowser-launcher-0.3.2
 * Repository: torbrowser
 * Maintainer: poncho@spahan.ch
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_single_target_python3_8 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.8 to build
>>> Unpacking source...
>>> Unpacking torbrowser-launcher-0.3.2.tar.gz to /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work
>>> Source unpacked in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work
>>> Preparing source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2 ...
python3.8 setup.py build -j 5
Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    distro = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
 * ERROR: www-client/torbrowser-launcher-0.3.2::torbrowser failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2980:  Called distutils-r1_src_compile
 *   environment, line 1137:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  489:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1128:  Called distutils-r1_python_compile
 *   environment, line  987:  Called esetup.py 'build' '-j' '5'
 *   environment, line 1585:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n;
 * 
 * If you need support, post the output of `emerge --info '=www-client/torbrowser-launcher-0.3.2::torbrowser'`,
 * the complete build log and the output of `emerge -pqv '=www-client/torbrowser-launcher-0.3.2::torbrowser'`.
 * The complete build log is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'
 * S: '/var/tmp/portage/www-client/torbrowser-launcher-0.3.2/work/torbrowser-launcher-0.3.2'
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-12-27 22:01:37 UTC
There's a working torbrowser-launcher in the GURU overlay.
Comment 2 poncho 2021-12-27 22:06:54 UTC
The current version from the torbrowser-overlay should work as well.

Why are you installing torbrowser-launcher-0.3.2 when torbrowser-launcher-0.3.4 is available in the overlay?
Comment 3 B Nice 2021-12-28 21:41:52 UTC
I do not have any overlays installed.  This is just using "vanilla" gentoo dists.  If an overlay is required, I suggest adding something to the error message that states it should be used with an overlay.


eix torbrowser-launcher
* www-client/torbrowser-launcher [1]
     Available versions:  (~)0.3.2 {PYTHON_SINGLE_TARGET="+python3_8"}
     Homepage:            https://github.com/micahflee/torbrowser-launcher
     Description:         A program to download, updated, and run the Tor Browser Bundle

[1] "torbrowser" /var/lib/layman/torbrowser
Comment 4 poncho 2021-12-28 22:02:21 UTC
(In reply to B Nice from comment #3)
> I do not have any overlays installed.  This is just using "vanilla" gentoo
> dists.
You do have overlays installed and torbrowser-launcher is not available in "vanilla" gentoo.

> [1] "torbrowser" /var/lib/layman/torbrowser
This tells you that the ebuild is from the torbrowser overlay and stored in /var/lib/layman/torbrowser
Comment 5 B Nice 2021-12-28 22:46:35 UTC
Apologies.  You are correct, I have layman installed.  No idea when or why or how, but it is there.
Comment 6 poncho 2021-12-28 22:52:19 UTC
(In reply to B Nice from comment #5)
> Apologies.  You are correct, I have layman installed.  No idea when or why
> or how, but it is there.

No worries. Bugzilla is not a good place to assist you further though. If you need help with managing overlays, have a look at https://www.gentoo.org/support/