Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347081 - Bug between app-admin/eselect-python-20100321 and app-admin/python-updater-0.8 - Current Gentoo x86_64
Summary: Bug between app-admin/eselect-python-20100321 and app-admin/python-updater-0....
Status: RESOLVED DUPLICATE of bug 347639
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 20:44 UTC by Jim Bair
Modified: 2011-01-01 18:34 UTC (History)
0 users

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 Jim Bair 2010-11-28 20:44:18 UTC
When installing a system fresh as 10.1 Gentoo 64-bit, after upgrading portage/world by doing the following commands:

emerge -u portage # Upgrades portage for us
emerge -uDN world # Update everything else

Everything looks good. However, when trying to run python-updater, we get the following error:

--
deploy-test ~ # python-updater -v
 * '/usr/bin/python3' is not valid symlink
--

I also noticed that if I upgrade portage (which upgrades Python 2.x with it) that if I tried running python-updater, it would exit with a code of 1 but no output. I did an emerge -u python-updater and got the same error as above. I then did the emerge -uDN world command to update the entire OS, and the error persisted.

It was at this point I tried setting the Python version to 3, then did a which on the python3 app, and noticed it showed up. It appears that eselect needs to create this symlink, but on new installs, doesn't do it.

The entire output from console can be found under Additional Information.

Reproducible: Always

Steps to Reproduce:
1. Install Gentoo 10.1 64-bit
2. Update entire system to current packages
3. Attempt to run python-updater

Actual Results:  
deploy-test ~ # python-updater -v
 * '/usr/bin/python3' is not valid symlink

Expected Results:  
Python searches for packages that need reinstalled. Currently, when fixed, it finds dev-python/setuptools-0.6.14.

The following is the bug as well as the fix.

deploy-test ~ # python-updater 
 * '/usr/bin/python3' is not valid symlink
deploy-test ~ # python-updater -v
 * '/usr/bin/python3' is not valid symlink
deploy-test ~ # eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
deploy-test ~ # eselect python set 1
deploy-test ~ # python-updater -v
 * '/usr/bin/python3' is not valid symlink
deploy-test ~ # which python3
which: no python3 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4)
deploy-test ~ # eselect python set 2
deploy-test ~ # which python3
/usr/bin/python3
deploy-test ~ # eselect python set 1
deploy-test ~ # which python3
/usr/bin/python3
deploy-test ~ # eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
deploy-test ~ # python-updater -v
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     3.1
 * check "shared_linking" enabled.
 * check "static_linking" enabled.
 * check "pylibdir" enabled.
 * check "manual" enabled.
 * check "need_rebuild" enabled.
 *   Adding to list: dev-python/setuptools:0
 *     check: PYTHON_ABIS [ Previous Python ABIs: 2.6, new Python ABIs: 2.6 3.1 ]
 * emerge -Dv1 --keep-going dev-python/setuptools:0

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-python/setuptools-0.6.14  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/setuptools-0.6.14
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-12-01 12:41:59 UTC
Can you give your emerge --info?
Comment 2 Ryan Pessa 2010-12-02 02:21:58 UTC
I can confirm the same issue on updating an existing system that previously did not have python3. Switching active system Python to version 3 then back to 2 resolved the issue for me as well.

Portage 2.1.9.24 (hardened/linux/amd64/no-multilib, gcc-4.5.1, glibc-2.11.2-r3, 2.6.34-hardened-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-hardened-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-gentoo-2.0.1
Timestamp of tree: Tue, 30 Nov 2010 18:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7, 2.1.9-r2
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.5
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.1-r3::<unknown repository>, 4.3.4, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow acl acpi amd64 apache2 apm bash-completion berkdb bzip2 cli cracklib crypt ctype cups curl curlwrappers cxx dbus dell dovecot-sasl dri filter fontconfig ftp gd gdbm gif gnutls gpm gzip hal hardened hash iconv imap java javascript jpeg json justify ldap ldap-sasl libnotify loop-aes mhash mime mmap mmx modules mp3 mpeg mudflap mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl nptlonly odbc openmp pam pcre pdf pdo perl php pic png pop3d posix pppd python readline reflection samba sample sasl server session sieve snmp sockets spell spl srp sse sse2 ssl startup-notification suhosin svg sysfs syslog sysvipc tcl tcpd threads tidy tokenizer truetype unicode urandom usb xattr xinetd xml xmlreader xmlwriter xorg xsl zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Ulrich Müller gentoo-dev 2010-12-03 10:30:55 UTC
Not a bug in eselect proper.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-01 18:34:05 UTC

*** This bug has been marked as a duplicate of bug 347639 ***