Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't update python packages due to 'Invalid enviro [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
npaust
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Walla Walla, WA

PostPosted: Wed Jun 20, 2018 6:52 am    Post subject: Can't update python packages due to 'Invalid enviro [solved] Reply with quote

I have five different computers and I'm running into problems on one of them... which is frustrating because I can't figure out what's different between them.

When I run a world update, I'm currently getting blocked when updating dev-python/pathlib2
Code:
>>> Emerging (1 of 1) dev-python/pathlib2-2.3.0::gentoo
 * pathlib2-2.3.0.tar.gz BLAKE2B SHA512 size ;-) ...                     [ ok ]
>>> Unpacking source...
>>> Unpacking pathlib2-2.3.0.tar.gz to /var/tmp/portage/dev-python/pathlib2-2.3.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/pathlib2-2.3.0/work
>>> Preparing source in /var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
error in pathlib2 setup command: Invalid environment marker: python_version<"3.5"
 * ERROR: dev-python/pathlib2-2.3.0::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2586:  Called distutils-r1_src_compile
 *   environment, line  788:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  319:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2129:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1502:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1500:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  522:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  779:  Called distutils-r1_python_compile
 *   environment, line  654:  Called esetup.py 'build'
 *   environment, line 1047:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 *
 * If you need support, post the output of `emerge --info '=dev-python/pathlib2-2.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pathlib2-2.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pathlib2-2.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pathlib2-2.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0'
 * S: '/var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0'

>>> Failed to emerge dev-python/pathlib2-2.3.0, Log file:

>>>  '/var/tmp/portage/dev-python/pathlib2-2.3.0/temp/build.log'

 * Messages for package dev-python/pathlib2-2.3.0:

 * ERROR: dev-python/pathlib2-2.3.0::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2586:  Called distutils-r1_src_compile
 *   environment, line  788:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  319:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2129:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1502:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1500:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  522:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  779:  Called distutils-r1_python_compile
 *   environment, line  654:  Called esetup.py 'build'
 *   environment, line 1047:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 *
 * If you need support, post the output of `emerge --info '=dev-python/pathlib2-2.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pathlib2-2.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pathlib2-2.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pathlib2-2.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0'
 * S: '/var/tmp/portage/dev-python/pathlib2-2.3.0/work/pathlib2-2.3.0'


The emerge info is
Code:

Portage 2.3.24 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.26-r7, 4.9.95-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.4.1
KiB Mem:    18499156 total,   8579660 free
KiB Swap:    6287356 total,   6287356 free
Timestamp of repository gentoo: Tue, 19 Jun 2018 13:00:01 +0000
Head commit of repository gentoo: e13b5d814ae6368708c659ae6ff578a51e479ca4
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.10.3-r3::gentoo, 1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /data/rootextension/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
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="/data/rootextension/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
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="X Xaw3d \ a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluray branding bzip2 cairo cdda cdr cli consolekit crypt cups curl cxx daap dbus dri dts dvd dvdr emacs emboss encode exif fam fftw flac fortran ftp gd gdbm gif glamor gnutls gpm gtk iconv imagemagick imap java javascript jpeg latex lcms ldap libnotify libtirpc lightdm lm_sensors mad mng modules motif mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin nvidia offensive ogg opencl opengl openmp oss pam pango pcre pdf perl png policykit ppds python qt3support qt5 quicktime readline rss sasl sdl seccomp semantic-desktop session smp spell ssl startup-notification svg svg-systemd tcpd threads tiff tk truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xattr xcb xinetd xml xpm xv xvid xvmc zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="brightness clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I'm really stumped and could use some help.


Last edited by npaust on Fri Jun 29, 2018 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Jun 20, 2018 12:45 pm    Post subject: Reply with quote

npaust ...

the issue seems to be that your version of dev-python/setuptools doesn't understand the environment markers used in =dev-python/pathlib2-2.3.0's setup. I expect this is because when 2.3.0 was keyworded the developer was using ~arch and so had =dev-python/setuptools-38.5.1 ... and that fact went unnoticed. That or PYTHON_TARGETS was set in a way that doesn't build for python_targets_python2_7.

So, report it, it's a bug ... but you should be able to work around by updating to =dev-python/setuptools-38.5.1 or not building for the python2_7 target.

HTH & best ... khay
Back to top
View user's profile Send private message
npaust
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Walla Walla, WA

PostPosted: Fri Jun 29, 2018 8:18 am    Post subject: Reply with quote

A conclusion on this... I wasn't convinced that there was a bug with pathlib2 because I was getting the error on only one of several computers running the same general software. And pathlib2 wasn't the only package having the same problem.

After poking around trying to emerge packages one by one (and forcing a rebuild of all the things that python 2.7 depends on), I caught a reference to setuptools-0.9.6 in a set of errors. It turns out that there was a version of setup tools from 2014 hanging out in the the python2.7/site-packages directory and it was getting called for python2.7 programs.

I deleted that, and now everything works perfectly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum