Your message dated Wed, 09 Oct 2024 19:56:49 +0200
with message-id <[email protected]>
and subject line Re: Bug#1084811: sub2po: Fail on simple .srt file
has caused the Debian Bug report #1084811,
regarding sub2po: Fail on simple .srt file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1084811: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1084811
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: translate-toolkit
Version: 3.8.4-1

I'm trying to use sub2po for the first time, and I only get a strange
error message and no POT file.  Is there something wrong with the
implementation?

Here is from a test run, with a very trunkated example file:

% cat > Ada_Zangeman_English.en.srt <<EOF
1
00:00:00,960 --> 00:00:10,120
 Ada and Zangamon, a tale of software, skateboards, and raspberry ice cream.

2
00:00:10,120 --> 00:00:14,680
 Once upon a time, there was a little girl named Ada.
EOF
% sub2po --progress=verbose -P Ada_Zangeman_English.en.srt 
Ada_Zangeman_English.en.pot 
processing 1 files...
sub2po: WARNING: Error processing: input Ada_Zangeman_English.en.srt, output 
Ada_Zangeman_English.en.pot, template None: marshal data too short
Ada_Zangeman_English.en.srt
[###########################################] 100%
%

I expected some content in the generated POT file, but it has size zero.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
The problem seem to be corrupt pyc files in some of the Debian packages.
I found a web page that suggested the pyc files were a problem, used the
strace output to locate relevant files, and ran this command to get rid
of them:

  sudo rm  $(grep pyc test.strace |cut -d\" -f 2|sort -u)

After getting rid of all pyc files, the script started working. :)

No idea which pyc files were corrupt.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---

Reply via email to