Upgraded yesterday to klive-0.23 and now, the klive service cannot start. The error is as follows: /etc/init.d/klive start * Starting KLive ... Failed to load application: cannot import name app [ !! ] Reproducible: Always Steps to Reproduce: emerge --info Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r4 i686) ================================================================= System uname: 2.6.19-gentoo-r4 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.6 Last Sync: Mon, 15 Jan 2007 20:30:01 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.31-r2 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="ftp://ftp.uoi.gr/mirror/OS/gentoo/ ftp://ftp.physics.auth.gr/pub/mirrors/gentoo/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.bih.net.ba/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ " LINGUAS="en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac acl acpi alsa alsa_cards_emu10k1 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 arts artswrappersuid asf bash-completion berkdb bitmap-fonts bluetooth branding bzip2 bzlib cairo caps cdr charconv chm cli cracklib crypt css ctype cups curl dba dbus dlloader dmi doc dri dts dvd dvdr dvdread effects elibc_glibc emboss encode esd examples exif expat fam fbcon ffmpeg firefox flac flatfile foomaticdb fortran ftp gcj gd gdbm gif gimp gimpprint glx gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk hal hddtemp howl iconv imagemagick imap imlib innodb input_devices_keyboard input_devices_mouse isdnlog jabber java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lcms ldap libg++ libsamplerate libwww linguas_en lm_sensors mad maildir mailwrapper mhash mikmod mime mmx mmxext motif mozbranding mozdevelop mozilla mozsvg mp3 mpeg mplayer mpm-worker multiuser mysql mysqli ncurses nls no-old-linux nodrm nomalloccheck nptl nptlonly nsplugin nvidia objc odbc offensive ogg opengl pam pcntl pcre pdf pear perl php pic plugin png posix postgres postgresi ppds pppd python qt3 qt4 quicktime rar rdesktop readline recode reflection ruby sasl scanner sdl server session slang sndfile soap sockets speex spell spl spreadsheet sqlite sse ssl subtitles subversion svga symlink tcltk tcpd tetex threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 vda video_cards_nvidia visualization vorbis win32codecs wmf wv wxgtk1 xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid xvmc zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Additional info from /var/log/messages: Jan 16 21:08:54 helios twisted: [-] Log opened. Jan 16 21:08:54 helios twisted: [-] twistd 2.5.0 (/usr/bin/python 2.4.3) starting up Jan 16 21:08:54 helios twisted: [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> Jan 16 21:08:54 helios twisted: [-] Loading /usr/share/klive/klive.tac... Jan 16 21:08:54 helios twisted: [-] Traceback (most recent call last): Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/app.py", line 218, in getApplication Jan 16 21:08:54 helios twisted: [-] application = service.loadApplication(filename, style, passphrase) Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/service.py", line 341, in loadApplication Jan 16 21:08:54 helios twisted: [-] application = sob.loadValueFromFile(filename, 'application', passphrase) Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/persisted/sob.py", line 215, in loa dValueFromFile Jan 16 21:08:54 helios twisted: [-] exec fileObj in d, d Jan 16 21:08:54 helios twisted: [-] File "/usr/share/klive/klive.tac", line 272, in ? Jan 16 21:08:54 helios twisted: [-] from twisted.internet import app Jan 16 21:08:54 helios twisted: [-] ImportError: cannot import name app Jan 16 21:08:54 helios twisted: [-] Failed to load application: cannot import name app Jan 16 21:08:54 helios twisted: [-] Traceback (most recent call last): Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/app.py", line 379, in run Jan 16 21:08:54 helios twisted: [-] runApp(config) Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/scripts/twistd.py", line 23, in runApp Jan 16 21:08:54 helios twisted: [-] _SomeApplicationRunner(config).run() Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/app.py", line 157, in run Jan 16 21:08:54 helios twisted: [-] self.application = self.createOrGetApplication() Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/app.py", line 207, in createOrGetApplication Jan 16 21:08:54 helios twisted: [-] application = getApplication(self.config, passphrase) Jan 16 21:08:54 helios twisted: [-] --- <exception caught here> --- Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/app.py", line 218, in getApplication Jan 16 21:08:54 helios twisted: [-] application = service.loadApplication(filename, style, passphrase) Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/application/service.py", line 341, in loadApplication Jan 16 21:08:54 helios twisted: [-] application = sob.loadValueFromFile(filename, 'application', passphrase) Jan 16 21:08:54 helios twisted: [-] File "/usr/lib/python2.4/site-packages/twisted/persisted/sob.py", line 215, in loadValueFromFile Jan 16 21:08:54 helios twisted: [-] exec fileObj in d, d Jan 16 21:08:54 helios twisted: [-] File "/usr/share/klive/klive.tac", line 272, in ? Jan 16 21:08:54 helios twisted: [-] from twisted.internet import app Jan 16 21:08:54 helios twisted: [-] exceptions.ImportError: cannot import name app
Run python-updater and reopen if it doesn't work then...
(In reply to comment #2) > Run python-updater and reopen if it doesn't work then... Running it gives the error: # python-updater * Can't determine any previous Python version(s).
twisted-2.5.0 was the problem. I downgraded to 2.4.0 and now klive starts. So, I think that the problem resides in twisted and not in klive, should you mark the bug closed?
(In reply to comment #4) > twisted-2.5.0 was the problem. Interesting, it works here...
Same identical issue here, but with freevo (freevo recordserver doesn't starts with twisted-2.5.0....)
Files : /usr/lib/python2.4/site-packages/twisted/internet/app.py /usr/lib/python2.4/site-packages/twisted/test/test_app.py seems to be present/installed in twisted-2.4.0 but not in 2.5.0 release....
Please, file a new bug about freevo.
klive 0.27 works with new twisted just copy/rename klive-0.23 ebuild
klive 0.28 is out now and also works fine with twisted 2.5.0
Poke? Could we get a newer and working version of klive in portage and drop the old and non working version please?
Created attachment 115752 [details] KLive 0.28 ebuild (works)
Sorry that I'm doing a bad job with maintenance of this package, due to being too busy with other things. As such I've slated it to be removed: http://archives.gentoo.org/gentoo-dev/msg_144369.xml
Thanks, fixed in CVS.