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

Bug 565954

Summary: dev-python/elasticsearch-curator-3.2.3 fails to work with py3.4
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: [OLD] UnspecifiedAssignee: Tomáš Mózes <hydrapolic>
Status: RESOLVED WORKSFORME    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2015-11-16 15:55:33 UTC
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 612, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 918, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 810, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (elasticsearch 2.0.0 (/usr/lib64/python3.4/site-packages), Requirement.parse('elasticsearch<2.0.0,>=1.0.0'), {'elasticsearch-curator'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/curator", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 614, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 627, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 975, in __init__
    self.scan(search_path)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 1005, in scan
    self.add(dist)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 1025, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: NoneType() < str()


Works with py2.7 ...


Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.4, glibc-2.20-r2, 3.18.7-gentoo x86_64)
=================================================================
System uname: Linux-3.18.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_0_@_2.00GHz-with-gentoo-2.2
KiB Mem:    65967036 total,  15762116 free
KiB Swap:    9764860 total,   9761500 free
Timestamp of repository gentoo: Sun, 15 Nov 2015 17:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.1.21/gentoo-portage
    priority: -1000

adjust
    location: /var/lib/layman/adjust
    masters: gentoo                                                                                                                                                                                                                                                            
    priority: 0                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                               
ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                                                                        
ACCEPT_LICENSE="* -@EULA"                                                                                                                                                                                                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                   
CFLAGS="-O2 -pipe -march=corei7-avx"                                                                                                                                                                                                                                           
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                    
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"                                                                                                                                                                                                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                                                                               
CXXFLAGS="-O2 -pipe -march=corei7-avx"                                                                                                                                                                                                                                         
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                                                               
FCFLAGS="-O2 -pipe"                                                                                                                                                                                                                                                            
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"                                                                                                                                                                                                                                                                 
FFLAGS="-O2 -pipe"                                                                                                                                                                                                                                                             
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"                                                                                                                                        
LANG="en_US.UTF-8"                                                                                                                                                                                                                                                             
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                                                                              
MAKEOPTS="-j12"                                                                                                                                                                                                                                                                
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"                                               
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                                                                                      
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm git iconv iproute2 ipv6 mmx mmxext modules ncurses nls nptl openmp pam pcre perl python readline seccomp session sse sse2 ssl tcpd unicode vim-syntax xattr zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, USE_PYTHON
Comment 1 Tomáš Mózes 2015-11-17 03:45:19 UTC
Hello Patrick, please post the output of:
emerge -pvq dev-python/elasticsearch-curator dev-python/elasticsearch-py
Comment 2 Patrick Lauer gentoo-dev 2015-11-20 09:57:34 UTC
Calculating dependencies  .... done!
[binary   R   ~] dev-python/elasticsearch-py-1.8.0::gentoo  USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3" 0 KiB
[binary   R   ~] dev-python/elasticsearch-curator-3.2.3::gentoo  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_4 -python3_3" 0 KiB
Comment 3 Tomáš Mózes 2015-11-21 20:18:09 UTC
Strange, just tested on the same versions and I was able to delete old indices. What command did you run? Does the newer version (3.4.0) work please?
Comment 4 Tomáš Mózes 2015-11-23 13:21:19 UTC
Seems like Patrick got it working on test environment, only fails on production. Cannot reproduce on same versions on my testing computer. Closing for now.