Bug#434437: syncropated: Wrong imports for ElementTree if running with python2.4

2007-07-23 Thread Mykola Nikishov
Package: syncropated
Version: 0.2.0-0ubuntu4
Severity: grave
Tags: patch
Justification: renders package unusable

While starting with Python 2.4 it dies with:

Traceback (most recent call last):
  File /usr/bin/syncropated, line 24, in ?
from syncropated.Syncropated import init_app; init_app()
  File /var/lib/python-support/python2.4/syncropated/Syncropated.py, line 34, 
in ?
import PlaylistParserRhythmbox
  File 
/var/lib/python-support/python2.4/syncropated/PlaylistParserRhythmbox.py, 
line 27, in ?
from xml.etree.ElementTree import ElementTree
ImportError: No module named etree.ElementTree

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'gutsy'), (99, 'unstable'), (9, 
'experimental'), (1, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-k7 (SMP w/2 CPU cores)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages syncropated depends on:
ii  gazpacho  0.7.1-1GTK+ User Interface Designer
ii  python2.4.4-6An interactive high-level object-o
ii  python-id31.2-6.2Python module for id3-tags manipul
ii  python-pysqlite2  2.3.4-2python interface to SQLite 3
ii  python-support0.7.1  automated rebuilding support for p

Versions of packages syncropated recommends:
pn  glade-2   none (no description available)
ii  python-gtk2   2.10.6-1   Python bindings for the GTK+ widge

-- debconf-show failed
--- /var/lib/python-support/python2.4/syncropated/PlaylistParserRhythmbox.py.orig	2007-07-23 23:39:40.0 +0300
+++ /var/lib/python-support/python2.4/syncropated/PlaylistParserRhythmbox.py	2007-07-23 23:41:05.0 +0300
@@ -24,7 +24,12 @@
 import os
 import sys
 import gtk
-from xml.etree.ElementTree import ElementTree
+try:
+	# try the python 2.5 way
+	from xml.etree.ElementTree import ElementTree
+except ImportError:
+	# then try the python 2.4 way
+	from elementtree.ElementTree import ElementTree
 import Utils
 
 def parse_playlists(path):


Bug#434437: syncropated: Wrong imports for ElementTree if running with python2.4

2007-07-23 Thread Martin Michlmayr
* Mykola Nikishov [EMAIL PROTECTED] [2007-07-23 23:48]:
 Package: syncropated
 Version: 0.2.0-0ubuntu4

I cannot find this package in Debian and the version information
suggests you obtained in from Ubuntu.  If you confirm this, I'll close
this bug in the Debian bug tracker.  Please open a new one in the
Ubuntu bug tracker.
-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]