I have a new install; I have emerged wicd: [ebuild N ] net-misc/wicd-1.7.1_beta2-r3 USE="X gtk ncurses nls pm-utils (-ioctl) -libnotify" wicd-curses fails with # wicd-curses File "/usr/share/wicd/curses/wicd-curses.py", line 1031 except Exception, e: ^ SyntaxError: invalid syntax wicd-client fails (in wmaker) with error # wicd-client File "/usr/share/wicd/gtk/wicd-client.py", line 77 print 'Unable to load tray icon: Missing both egg.trayicon and gtk.StatusIcon modules.' ^ SyntaxError: invalid syntax Reproducible: Always Steps to Reproduce: 1. new install 2. emerge wicd 3. run wicd-curses installed versions of relevant(?) packages: * app-admin/eselect-python version: 20100321 * app-admin/python-updater version: 0.8-r1 * dev-lang/python version: 3.1.3-r1 * dev-python/dbus-python version: 0.83.2 * dev-python/urwid version: 0.9.9.1 * sys-libs/ncurses version: 5.7-r7 eselect python list Available Python interpreters: [1] python2.6 [2] python3.1 * emerge --info app-shells/bash: 4.1_p9 dev-lang/python: 2.6.6-r2, 3.1.3-r1 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.11.3 virtual/os-headers: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=i686 -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" FFLAGS="" GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ " LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB es" 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://192.168.1.3/gentoo-portage" Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.36-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.36-gentoo-r8-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-gentoo-2.0.2 Timestamp of tree: Fri, 29 Apr 2011 19:45:01 +0000 USE="X acl acpi aim all-options alsa aspell auth auto-completion autoipd automount avahi bash-completion berkdb binary-drivers bittorrent bonjour bzip2 case cdda cddb cdparanoia cdrkit cdrom cdrtools cg cgi chm cli clipboard colors config-log consolekit context cracklib crypt css cups curl curlwrappers cxx daemon dbus desktopglobe dga dhcp dhcpcd dirac directfb divx djvu dovecot-sasl dri dvd dvdarchive dvdchapjump dvdnav dvi emerald epiphany fat fbcon fbcondecor fbdev fbsplash firefox3 fortran fortune ftp fuse games gd gdbm gif gpm grub gstreamer gtk hardened html http httpd iconv id3 id3tag imagemagick imap injection ipv6 jadetex john jpeg lame laptop largefile latex libsexy libssh2 libwww lm_sensors logrotate maildir md5sum mdnsresponder-compat mixer mmx mode-force mode-owner mode-paranoid modperl modules mozilla mp3 mpe mpe-sdk mpeg mpu401 msn mudflap mysql mysqli nat ncurses net network networking nfs nls nmap nntp normalize nptl nptlonly nvidia offensive ogg opengl openmp openssl opensslcrypt oscar pam passwd passwdqc pcre perl php pidgin pm-utils png pop3d pppd procmail ps python quarantine quota quotas radius rar raytracerx rdesktop readline regex resolvconf rss rsync rtf samba sametime sasl screen sendmail session sftp sms sound spam-auth-user sse sse2 ssl ssse3 stream symlink sysfs syslog tcpd transparency tremor truetype ui underscores unicode unzip video vim vorbis wad wav wavpack weather webinterface webmail wifi win32codecs winbind winetools wmf wps x264 x86 xfce xfs xhtml xml xorg xterm xterm-color xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" CAMERAS="ptp2" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB es" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 271929 [details, diff] wicd.patch
(In reply to comment #1) > Created attachment 271929 [details, diff] > wicd.patch Hmm, so there is nothing that prevents the user from running a software with RESTRICT_PYTHON_ABIS="3.*" with python-3 anyway? What is it good for then? Why isn't that handled automagically? In any case, why did you restrict *-jython in your patch?
(In reply to comment #2) > (In reply to comment #1) > > Created attachment 271929 [details, diff] > > wicd.patch > > Hmm, so there is nothing that prevents the user from running a software with > RESTRICT_PYTHON_ABIS="3.*" > with python-3 anyway? What is it good for then? Why isn't that handled > automagically? Build system of this package hardcodes /usr/bin/python in shell scripts regardless of Python version used during building. > In any case, why did you restrict *-jython in your patch? There was a problem during attempt of installation for Jython.
hi, not sure if I was supposed to, but I updated the ebuild with the patch and emerged the wicd again, ensuring it was using the ebuild in the custom overlay; the errors are more numerous; not sure if I need more flags on dbus: $ wicd-client Traceback (most recent call last): File "/usr/share/wicd/gtk/wicd-client.py", line 63, in <module> from wicd import dbusmanager File "/usr/lib/python2.6/site-packages/wicd/dbusmanager.py", line 93, in <module> DBUS_MANAGER = DBusManager() File "/usr/lib/python2.6/site-packages/wicd/dbusmanager.py", line 57, in __init__ self._bus = dbus.SystemBus() File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 202, in __new__ private=private) File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 108, in __new__ bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 125, in __new__ bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory $wicd-curses Traceback (most recent call last): File "/usr/share/wicd/curses/wicd-curses.py", line 52, in <module> from wicd import dbusmanager File "/usr/lib/python2.6/site-packages/wicd/dbusmanager.py", line 93, in <module> DBUS_MANAGER = DBusManager() File "/usr/lib/python2.6/site-packages/wicd/dbusmanager.py", line 57, in __init__ self._bus = dbus.SystemBus() File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 202, in __new__ private=private) File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 108, in __new__ bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop) File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 125, in __new__ bus = cls._new_for_bus(address_or_type, mainloop=mainloop) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory emerge -pqv dbus [ebuild R ] sys-apps/dbus-1.4.6 USE="X -debug -doc (-selinux) -static-libs -test"
(In reply to comment #4) These exceptions are not related to original problem.
sorted; just had to restart the wicd after reboot; suspect boot order issue from parallel start, I'll try ordered start and submit feedback in a new bug report if needed. Otherwise, I can confirm this patch works for me, thanks muchly :)
Should be fixed in -r4. Please reopen if not. Thanks for the patch arfrever! +*wicd-1.7.1_beta2-r4 (07 May 2011) + + 07 May 2011; Thomas Kahle <tomka@gentoo.org> +wicd-1.7.1_beta2-r4.ebuild, + +files/wicd-init-sve-start.patch: + Fix install with Python3 as the main interpreter (Bug 365635, thx for patch + by arfrever), fix init script to use sve-start (Bug 365767) +