| View previous topic :: View next topic |
| Author |
Message |
listerkanister n00b


Joined: 02 Oct 2006 Posts: 9 Location: Linz, Austria
|
Posted: Mon Aug 03, 2009 3:02 pm Post subject: emerge -avuD world broke my python !? |
|
|
hi,
i'm a little bit confused right now. i was on vacation for 3 weeks an didn't update my server. so now after this "long" time i started | Code: | | # emerge -avuD world | as i use to do. after some time emerge stopped with a message (sorry i accidentally closed the terminal) that a package couldn't be downloaded. i tried to run | Code: | | # emerge -avuD world | again. This is what i get:
| Code: | # emerge -avuD world
import: unable to open X server `' @ import.c/ImportImageCommand/367.
/usr/bin/emerge: line 8: try:: command not found
import: unable to open X server `' @ import.c/ImportImageCommand/367.
/usr/bin/emerge: line 11: syntax error near unexpected token `('
/usr/bin/emerge: line 11: ` def exithandler(signum,frame):' |
i looked at the emerge history with genlop:
| Code: | Mon Aug 3 10:46:35 2009 >>> sys-libs/timezone-data-2009j
Mon Aug 3 10:46:42 2009 >>> media-sound/alsa-headers-1.0.19
Mon Aug 3 10:48:07 2009 >>> media-plugins/live-2009.06.02
Mon Aug 3 10:48:42 2009 >>> sys-fs/ntfs3g-2009.3.8
Mon Aug 3 10:51:32 2009 >>> dev-libs/icu-4.2
Mon Aug 3 10:51:54 2009 >>> dev-libs/libevent-1.4.11
Mon Aug 3 10:52:35 2009 >>> media-libs/tiff-3.8.2-r8
Mon Aug 3 10:52:55 2009 >>> dev-libs/nspr-4.8
Mon Aug 3 10:53:13 2009 >>> media-libs/libao-0.8.8
Mon Aug 3 10:53:37 2009 >>> dev-libs/libksba-1.0.6
Mon Aug 3 10:54:22 2009 >>> sys-apps/man-pages-3.21
Mon Aug 3 10:54:39 2009 >>> net-wireless/wpa_supplicant-0.6.9
Mon Aug 3 10:54:51 2009 >>> sys-devel/autoconf-2.63-r1
Mon Aug 3 10:54:57 2009 >>> dev-perl/Class-Data-Inheritable-0.08
Mon Aug 3 10:55:04 2009 >>> dev-perl/File-Slurp-9999.13
Mon Aug 3 10:55:12 2009 >>> dev-perl/URI-1.38
Mon Aug 3 10:55:18 2009 >>> dev-perl/IO-Socket-SSL-1.26
Mon Aug 3 10:55:25 2009 >>> dev-perl/Class-Autouse-1.29
Mon Aug 3 10:56:34 2009 >>> www-servers/apache-2.2.11-r2
Mon Aug 3 10:56:58 2009 >>> x11-libs/libdrm-2.4.12
Mon Aug 3 10:57:40 2009 >>> media-libs/libcaca-0.99_beta16
Mon Aug 3 10:59:39 2009 >>> media-libs/libmp4v2-1.5.0.1-r2
Mon Aug 3 11:00:03 2009 >>> media-libs/faac-1.28
Mon Aug 3 11:00:09 2009 >>> dev-perl/Authen-SASL-2.12
Mon Aug 3 11:00:30 2009 >>> sys-apps/sg3_utils-1.27.20080726
Mon Aug 3 11:01:08 2009 >>> x11-libs/cairo-1.8.8
Mon Aug 3 11:01:34 2009 >>> sys-apps/sed-4.2
Mon Aug 3 11:01:55 2009 >>> dev-lang/yasm-0.8.0
Mon Aug 3 11:02:22 2009 >>> app-text/recode-3.6_p15-r1
Mon Aug 3 11:02:44 2009 >>> net-dns/libidn-1.14
Mon Aug 3 11:02:48 2009 >>> app-admin/eselect-python-20090801
Mon Aug 3 11:03:16 2009 >>> media-sound/vorbis-tools-1.2.0-r2
Mon Aug 3 11:07:09 2009 >>> dev-util/subversion-1.6.3
Mon Aug 3 11:09:30 2009 >>> dev-lang/python-2.6.2-r1
|
as you can see, python was the last updated (the version installed before was dev-lang/python-2.5.4-r2), so i think this might be related to this. i tried to run emerge like this:
| Code: | | # python /usr/bin/emerge -avuD world |
which works quiet ok. but when emerge calls "ebuild" it fails (unsurprisingly) again:
| Code: | Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 42) app-admin/python-updater-0.7
[Errno 8] Exec format error:
/usr/lib/portage/bin/ebuild /usr/portage/app-admin/python-updater/python-updater-0.7.ebuild fetch
* Fetch failed for 'app-admin/python-updater-0.7', Log file:
* '/var/tmp/portage/app-admin/python-updater-0.7/temp/build.log'
>>> Failed to emerge app-admin/python-updater-0.7, Log file:
>>> '/var/tmp/portage/app-admin/python-updater-0.7/temp/build.log'
* Messages for package app-admin/python-updater-0.7:
* Fetch failed for 'app-admin/python-updater-0.7', Log file:
* '/var/tmp/portage/app-admin/python-updater-0.7/temp/build.log' |
if i run "ebuild" by hand i get the same error:
| Code: | # /usr/lib/portage/bin/ebuild /usr/portage/app-admin/python-updater/python-updater-0.7.ebuild fetch
import: unable to open X server `' @ import.c/ImportImageCommand/367.
/usr/lib/portage/bin/ebuild: line 8: try:: command not found
import: unable to open X server `' @ import.c/ImportImageCommand/367.
/usr/lib/portage/bin/ebuild: line 11: syntax error near unexpected token `('
/usr/lib/portage/bin/ebuild: line 11: ` def exithandler(signum,frame): |
as i said: i'm clueless how i could fix this problem... any hint is appreciated.
thx, simon
ps.: this is my emerge --info:
| Code: | # python /usr/bin/emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.26-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Mon, 03 Aug 2009 01:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python: 2.4.4-r13, 2.5.4-r2, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 2.0
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/mnt/local/distfiles"
FEATURES="buildpkg candy ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm gtk iconv ipv6 isdnlog mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode vim-syntax xorg 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="mesa"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
|
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Aug 03, 2009 3:18 pm Post subject: |
|
|
Did you run python-updater  |
|
| Back to top |
|
 |
Naib Advocate


Joined: 21 May 2004 Posts: 3882 Location: UK - Birmingham
|
Posted: Mon Aug 03, 2009 3:57 pm Post subject: |
|
|
| Mike Hunt wrote: | Did you run python-updater  |
not python-update problem
its the /usr/bin/python shell wrapper which has been introduced as a means for multiple python ABI _________________
| Quote: | | Voting holds no real power, he who counts the votes has the true power. |
Weaver Projects
whats the difference between 9/11 and a cow?
u stop milking a cow after 10 years |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Aug 03, 2009 4:10 pm Post subject: |
|
|
| Naib wrote: | | Mike Hunt wrote: | Did you run python-updater  |
not python-update problem
its the /usr/bin/python shell wrapper which has been introduced as a means for multiple python ABI |
Ah ok. I didn't know that. Thanks.  |
|
| Back to top |
|
 |
Naib Advocate


Joined: 21 May 2004 Posts: 3882 Location: UK - Birmingham
|
Posted: Mon Aug 03, 2009 4:15 pm Post subject: |
|
|
| Mike Hunt wrote: | | Naib wrote: | | Mike Hunt wrote: | Did you run python-updater  |
not python-update problem
its the /usr/bin/python shell wrapper which has been introduced as a means for multiple python ABI |
Ah ok. I didn't know that. Thanks.  |
its actually the same problem for all these emerge/python problems
previously /usr/bin/python was a symlink to /usr/bin/python2.6 (controlled via eselect python set ...)
HOWEVER since python3 has entered the tree and as python3 app's also start coming in its no longer possible to just patch a python script for the slight breakages between python-2.x & python-2.x+1
basically python-2.x and python-3.x are going to have to live side by side for quite some time - throw into the mix the fact that there are still apps that only work with python-2.4 (I am looking at you plone!!!) and suddenly some mechanism to sanely manage multiple python ABI's are needed
the dev's came up with using a wrapper script for /usr/bin/python (its just a bash script) and eselect python then sets the default. An envionemental variable EPYTHON can then be used to set what python a script is to use
I personally think a few bits are missing from this multiABI thing but as a 1st stab when it isn't really a nessacity is great!! _________________
| Quote: | | Voting holds no real power, he who counts the votes has the true power. |
Weaver Projects
whats the difference between 9/11 and a cow?
u stop milking a cow after 10 years
Last edited by Naib on Mon Aug 03, 2009 4:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Aug 03, 2009 4:23 pm Post subject: |
|
|
Thanks Naib for your very nice explanation. I understand now how all that works (at least on the surface).
The python-3.1 is masked here for now. And I do have that /usr/bin/python wrapper script, and python 2.6.
So far no issues here.  |
|
| Back to top |
|
 |
listerkanister n00b


Joined: 02 Oct 2006 Posts: 9 Location: Linz, Austria
|
Posted: Tue Aug 04, 2009 6:17 am Post subject: |
|
|
thanks for your quick replies. but i'm not sure how to use these infos...
could you give me a hint what i could do to fix this?
thx, simon |
|
| Back to top |
|
 |
Naib Advocate


Joined: 21 May 2004 Posts: 3882 Location: UK - Birmingham
|
Posted: Tue Aug 04, 2009 8:42 am Post subject: |
|
|
Two possible ways to fix it
1) upgrade your kernel to 2.6.30-r* (it is the kernel that deals with the shebangs and something within the 2.6.30 line allows cascaded shebangs via scripts)
2) rm /usr/bin/python && ln -s /usr/bin/python2.6 /usr/bin/python (a hack but it will work)
Gentoo dev's are working on a /usr/bin/python being a symlink to a binary program ( /usr/bin/python-wrapper ) to bypass this cascaded shebang issue
They are also masking the present eselect-python (the one which generate a bash script for /usr/bin/python) and reverting to the symlink method until this is fixed _________________
| Quote: | | Voting holds no real power, he who counts the votes has the true power. |
Weaver Projects
whats the difference between 9/11 and a cow?
u stop milking a cow after 10 years |
|
| Back to top |
|
 |
listerkanister n00b


Joined: 02 Oct 2006 Posts: 9 Location: Linz, Austria
|
Posted: Tue Aug 04, 2009 8:51 am Post subject: |
|
|
solution 2 worked for me, will upgrade my kernel in the next days though.
thx for your help
simon |
|
| Back to top |
|
 |
|