msgsplit crashed with IOError in <module>()

Bug #582052 reported by Jonathan Thomas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkg-kde-tools (Ubuntu)
Fix Released
Low
Harald Sitter

Bug Description

Binary package hint: pkg-kde-tools

This happened while doing a local build of the akonadi source package, during message extraction via the kubuntu-l10n cdbs scripts:

touch debian/stamp-man-pages
 fakeroot debian/rules binary
test -x debian/rules
dh_testroot
dh_clean -k
dh_installdirs -A
mkdir -p po
extract-messages.sh
extract-xml.sh
for file in po/*pot; do \
                sed "s/charset=CHARSET/charset=UTF-8/" -i $file; \
        done
sed: can't read po/*pot: No such file or directory
make: [common-install-prehook-impl] Error 2 (ignored)
# generate .po files for .desktop etc files
if [ -z ${KUBUNTU_DESKTOP_POT} ]; then \
                KUBUNTU_DESKTOP_POT=akonadi; \
        fi; \
        echo KUBUNTU_DESKTOP_POT: ${KUBUNTU_DESKTOP_POT}; \
        if [ -f /usr/lib/kubuntu-desktop-i18n/createdesktopcontext.pl ]; then \
          sh /usr/lib/kubuntu-desktop-i18n/findfiles LIST; \
          sed /\.pc/d LIST -i; \
          cat LIST; \
          perl /usr/lib/kubuntu-desktop-i18n/createdesktopcontext.pl --file-list=LIST --base-dir=. > desktop.${KUBUNTU_DESKTOP_POT}.tmp; \
          msguniq --to-code=UTF-8 --no-wrap -o desktop.${KUBUNTU_DESKTOP_POT} desktop.${KUBUNTU_DESKTOP_POT}.tmp 2>/dev/null; \
          python /usr/lib/kubuntu-desktop-i18n/msgsplit desktop.${KUBUNTU_DESKTOP_POT}; \
          mv desktop.${KUBUNTU_DESKTOP_POT} po/desktop_${KUBUNTU_DESKTOP_POT}.pot; \
          rm -f desktop.${KUBUNTU_DESKTOP_POT} desktop.${KUBUNTU_DESKTOP_POT}.tmp; \
          # add translation domain to files \
          for file in `cat LIST`; do \
            echo X-Ubuntu-Gettext-Domain=desktop_${KUBUNTU_DESKTOP_POT} >> ${file}; \
          done; \
          rm -f LIST; \
        fi
KUBUNTU_DESKTOP_POT: akonadi
find: `./apps/konqueror': No such file or directory
find: `./kdesktop': No such file or directory
find: `./runtime/drkonqi': No such file or directory
find: `./workspace/khotkeys': No such file or directory
find: `./workspace/kwin': No such file or directory
find: `./runtime/kioslave/desktop': No such file or directory
cat: ./kolf/courses.list: No such file or directory
find: `./bovo/themes': No such file or directory
find: `./katomic/levels': No such file or directory
find: `./amor/data': No such file or directory
find: `./kdeprint': No such file or directory
find: `./kopete': No such file or directory
find: `./digikam': No such file or directory
Traceback (most recent call last):
  File "/usr/lib/kubuntu-desktop-i18n/msgsplit", line 94, in <module>
    orig_file = open(file, open_type)
IOError: [Errno 2] No such file or directory: 'desktop.akonadi'
mv: cannot stat `desktop.akonadi': No such file or directory
mkdir -p "obj-x86_64-linux-gnu"
DEB_MAKE_CHECK_TARGET unset, not running checks
/usr/bin/make -C obj-x86_64-linux-gnu install DESTDIR=/home/jonathan/ubuntu/akonadi/current/akonadi-1.3.1/debian/tmp/

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: pkg-kde-tools 0.6.4ubuntu5
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Mon May 17 23:50:45 2010
ExecutablePath: /usr/lib/kubuntu-desktop-i18n/msgsplit
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100416)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: python /usr/lib/kubuntu-desktop-i18n/msgsplit desktop.akonadi
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/lib/kubuntu-desktop-i18n/msgsplit', 'desktop.akonadi']
SourcePackage: pkg-kde-tools
Title: msgsplit crashed with IOError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/kubuntu-desktop-i18n/msgsplit", line 94, in <module>
     orig_file = open(file, open_type)
 IOError: [Errno 2] No such file or directory: 'desktop.akonadi'
UserGroups:

Revision history for this message
Jonathan Thomas (echidnaman) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Revision history for this message
Harald Sitter (apachelogger) wrote :

me@osiris:~/tmp/ak/akonadi-1.3.1$ find ./ -name "*.desktop"
me@osiris:~/tmp/ak/akonadi-1.3.1$

Also please note that cat LIST in the pasted output does return nothing, since obviously there are no desktop files in the source. So I suppose just checking the LIST file for emptyness should be enough to prevent this issue from appearing.

Changed in pkg-kde-tools (Ubuntu):
assignee: nobody → Harald Sitter (apachelogger)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Harald Sitter (apachelogger) wrote :

Generally heads up - with latested pkg-kde-tools change this should not be happening anymore because l10n stuff is only done for archive builds now, the issue however is technical still there.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Considering in fixed ;)

Changed in pkg-kde-tools (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.