subdownloader ubuntu Error "Unable to download subtitle abc.srt"

Bug #790753 reported by Sigurður Hrafn Pétursson
86
This bug affects 18 people
Affects Status Importance Assigned to Milestone
SubDownloader
New
Undecided
Unassigned

Bug Description

I always get this error when I try to download a subtitle. It happened suddenly when I was updating my system.
The error I get is "Unable to download subtitle abc.srt" and if I run Subdownloader in terminal with this command "subdownloader -d" then the error output is after I press download:

[15:43] DEBUG::subdownloader.gui.main # Downloading to: u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
[15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
[15:43] DEBUG::subdownloader.gui.main # Downloading subtitle '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
[15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading subtitle from url: http://www.opensubtitles.org/en/download/file/1952866062.gz
[15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
Traceback (most recent call last):
  File "/usr/share/subdownloader/gui/main.py", line 1126, in onButtonDownload
    osHttpRequests.download('http://www.opensubtitles.org/en/download/file/%s.gz' %sub.getIdFileOnline(), destinationPath)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in download
    self.unpack_subtitle(gz_path, local_path)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in unpack_subtitle
    fileContent = fileObj.readlines();
  File "/usr/lib/python2.7/gzip.py", line 446, in readline
    c = self.read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 252, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 287, in _read
    self._read_gzip_header()
  File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

I've already tried to download subdownloader and install it again, but I'm only able to find the latest version and that's the one that seems corrupted.

Revision history for this message
FatGiant (fatgiant) wrote :

Same here, was working perfectly, after a few subtitles downloaded started giving me the error. Unable to download subtitle...

Running in CLI, this is the result:

Traceback (most recent call last):
  File "/usr/share/subdownloader/gui/main.py", line 1126, in onButtonDownload
    osHttpRequests.download('http://www.opensubtitles.org/en/download/file/%s.gz' %sub.getIdFileOnline(), destinationPath)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in download
    self.unpack_subtitle(gz_path, local_path)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in unpack_subtitle
    fileContent = fileObj.readlines();
  File "/usr/lib/python2.7/gzip.py", line 446, in readline
    c = self.read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 252, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 287, in _read
    self._read_gzip_header()
  File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

Ubuntu 11.04

Revision history for this message
Wouter Veldeman (wouterveldeman) wrote :

This is probably related to this:

Does your site implement antileech protection? ^
Yes. Explanation - even if we are OpenSubtitles, leeching is forbidden. If you want to download more subtitles for any reason, just contact us, write what you want and why and we will see. This antileech protection is good for regular users, server is responding faster. Please do not try running any download bots on our site. Thanks.
Limit is: 1 IP/max 50 subtitles/12 hours

Please provide a patch or other solution

Revision history for this message
badillin (badillin) wrote :

I started having this problem a few hours ago, i know that i downloaded WAY over 50 subs in the past 12hrs.. so i guess im going to use a proxy and see if this fixes it...

Revision history for this message
lisa (lisa-calderoni) wrote :

Hi, this happens me, too, and I didn't download any subtitle in the last 12 hours (to be precise I didn't use subDownloader for the last 2 days) before getting the error. Any solution yet?

Thank you very much.

Revision history for this message
Ivan Garcia (capiscuas) wrote : Re: [Bug 790753] Re: subdownloader ubuntu Error "Unable to download subtitle abc.srt"

We are working on it. Expect a new release fixing this very soon.

On Sat, Dec 28, 2013 at 3:59 PM, lisa <email address hidden> wrote:

> Hi, this happens me, too, and I didn't download any subtitle in the last
> 12 hours (to be precise I didn't use subDownloader for the last 2 days)
> before getting the error. Any solution yet?
>
> Thank you very much.
>
> --
> You received this bug notification because you are a member of
> Developers of SubDownloader, which is subscribed to SubDownloader.
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>

Revision history for this message
Ivan Garcia (capiscuas) wrote :

In the next few days we will release, on the meanwhile you can use the button or right click option of "Subtitle Info" to go to the opensubtitles.org link to download the subtitle. We apologize for the delay but we didn't expected the Captcha option new installed in opensubtitles.org website.

Revision history for this message
Richard Genoud (richard-genoud) wrote :

I run also into this captcha problem, even if I have a VIP account on opensubtilte.org.
That's weird because in VIP mode, we shouldn't have any captcha.
But It seems that for downloading, subdownloader doesn't log in the user.
I retrieved this line in the captcha downloaded page :
"<div id="logindetail" class="top_info_left"><strong>You are not logged in!</strong>"
But the subdownloader logs told that I was logged in : "Login ended in 0.019 with status: 200 OK"
weird...

Richard.

Revision history for this message
Richard Genoud (richard-genoud) wrote :

I attached a quick and dirty patch that use credentials for downloading subtitles.
So, in the case you're a vip member on opentubtitle.org, there's no more captchas.
As I'm not a python guru, I just did this little change that worksforme(r), but It may break some other things...

Richard.

Revision history for this message
p3tris (p3tris) wrote :

After so many years, still the problem persists. The patch from Richard Genoud did the trick!

Revision history for this message
Flash (gabor-balazs2) wrote :

I also have the same issue. It was started some days ago. Can you please help?

Traceback (most recent call last):
  File "/usr/share/subdownloader/gui/main.py", line 1126, in onButtonDownload
    osHttpRequests.download('http://www.opensubtitles.org/en/download/file/%s.gz' %sub.getIdFileOnline(), destinationPath)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in download
    self.unpack_subtitle(gz_path, local_path)
  File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in unpack_subtitle
    fileContent = fileObj.readlines();
  File "/usr/lib/python2.7/gzip.py", line 450, in readline
    c = self.read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 256, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 291, in _read
    self._read_gzip_header()
  File "/usr/lib/python2.7/gzip.py", line 185, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

Revision history for this message
Ivan Garcia (capiscuas) wrote :

A fixed will be release in the next days cause this is becoming a bottleneck for many users.

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

Bottleneck? I consider it MAJOR FAIL. Like through the app away...

On Sat, Dec 26, 2015, 18:50 Ivan Garcia <email address hidden> wrote:

> A fixed will be release in the next days cause this is becoming a
> bottleneck for many users.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
Mauricio Farell Perezgrovas (mfarell) wrote :

The patch from Richard solved the problem for me too, thank you Richard!

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

Yeah, working good :)
1st time to patch python script...

On Thu, Jan 7, 2016, 08:32 Mauricio Farell Perezgrovas <
<email address hidden>> wrote:

> The patch from Richard solved the problem for me too, thank you Richard!
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
teresavet (psicologiaveterinaria) wrote :

I have the same problem since mid december. I updatded the program version, but still doesn't work. Not for just one subtitle a day. I select the subtitle to download, and get the error message can't download srt. It downloads a .zip arcive, but it's empty. Any solution to this?
thanks!
Teresa

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

you must patch one line in the main.py as the maintainer is still drunk
from Christmas

On Thu, Jan 7, 2016, 17:30 teresavet <email address hidden>
wrote:

> I have the same problem since mid december. I updatded the program
> version, but still doesn't work. Not for just one subtitle a day. I select
> the subtitle to download, and get the error message can't download srt. It
> downloads a .zip arcive, but it's empty. Any solution to this?
> thanks!
> Teresa
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
Simone (tigerjack89) wrote :

@Filip could you explain how to do that? What editor should we use? What line should we replace? Is the patch working for non-vip users also?

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

the patch is just 1 line replacement using "sudo nano" or "sudo gedit",
works on downloads issue, not related to VIP status

I am at Tesco, will try to fetch you the patch

On Thu, Jan 7, 2016, 18:21 Simone <email address hidden> wrote:

> @Filip could you explain how to do that? What editor should we use? What
> line should we replace? Is the patch working for non-vip users also?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :
Download full text (3.6 KiB)

start xterm or similar CLI terminal, enter:

sudo nano /usr/share/subdownloader/gui/main.py

find using CTRL+W this line:

osHttpRequests.download('http://www.opensubtitles.org/en/download/file/%s.gz'
%sub.getIdFileOnline(), destinationPath)

and replace it with:

self.OSDBServer.DownloadSubtitles({sub.getIdFileOnline():destinationPath})

CTRL+O to write, CTRL+X to exit & start the app

Hope this helps! Cheers, Filip 😆

On Thu, Jan 7, 2016, 18:24 Filip Oščádal ☯ mxd.cz <email address hidden> wrote:

> the patch is just 1 line replacement using "sudo nano" or "sudo gedit",
> works on downloads issue, not related to VIP status
>
> I am at Tesco, will try to fetch you the patch
>
>
> On Thu, Jan 7, 2016, 18:21 Simone <email address hidden> wrote:
>
>> @Filip could you explain how to do that? What editor should we use? What
>> line should we replace? Is the patch working for non-vip users also?
>>
>> --
>> You received this bug notification because you are subscribed to a
>> duplicate bug report (1264365).
>> https://bugs.launchpad.net/bugs/790753
>>
>> Title:
>> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>>
>> Status in SubDownloader:
>> New
>>
>> Bug description:
>> I always get this error when I try to download a subtitle. It happened
>> suddenly when I was updating my system.
>> The error I get is "Unable to download subtitle abc.srt" and if I run
>> Subdownloader in terminal with this command "subdownloader -d" then the
>> error output is after I press download:
>>
>> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
>> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
>> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
>> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
>> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
>> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
>> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
>> subtitle from url:
>> http://www.opensubtitles.org/en/download/file/1952866062.gz
>> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
>> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
>> Traceback (most recent call last):
>> File "/usr/share/subdownloader/gui/main.py", line 1126, in
>> onButtonDownload
>> osHttpRequests.download('
>> http://www.opensubtitles.org/en/download/file/%s.gz'
>> %sub.getIdFileOnline(), destinationPath)
>> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72,
>> in download
>> self.unpack_subtitle(gz_path, local_path)
>> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51,
>> in unpack_subtitle
>> fileContent = fileObj.readlines();
>> File "/usr/lib/python2.7/gzip.py", line 446, in readline
>> c = self.read(readsize)
>> File "/usr/lib/python2.7/gzip.py", line 252, in read
>> self._read(readsize)
>> File "/usr/lib/python2.7/gzip.py", line 287, in _read
>> self._read_gzip_header()
>> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
>> raise IOError, 'Not a gzipped file'
>> IOError: Not a g...

Read more...

Revision history for this message
Simone (tigerjack89) wrote :

And I suppose it is one of the line after 1126, right?
Ok, but the problem with me is that I can't open it using "gedit" or "nano" or any other editor. gedit, for instance, returns "Invalid byte sequence in conversion input". According to you, what could be the issue?

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

can't help you standing in the snow hacking Ingress portal 😮

wait an hour or so... I will send you the replacement main.py

On Thu, Jan 7, 2016, 18:46 Simone <email address hidden> wrote:

> And I suppose it is one of the line after 1126, right?
> Ok, but the problem with me is that I can't open it using "gedit" or
> "nano" or any other editor. gedit, for instance, returns "Invalid byte
> sequence in conversion input". According to you, what could be the issue?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
teresavet (psicologiaveterinaria) wrote :

I've tried the patch, and now the program doesn't even open ;(

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :
  • main.py Edit (89.5 KiB, text/x-python; charset=UTF-8; name="main.py")

here's the file to replace, replace it as root!

 /usr/share/subdownloader/gui/main.py

Filip Oščádal
*System Architect*
*https://mxd.cz <https://mxd.cz>*

On Thu, Jan 7, 2016 at 7:08 PM, teresavet <email address hidden>
wrote:

> I've tried the patch, and now the program doesn't even open ;(
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>

Revision history for this message
Simone (tigerjack89) wrote :

Works like a charm!!
Thanks a lot :)

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

no problem, enjoy!
meanwhile I have switched to Netflix...

On Fri, Jan 8, 2016, 11:25 Simone <email address hidden> wrote:

> Works like a charm!!
> Thanks a lot :)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
DalaiDakkar (dalaidakkar) wrote :

Filip Oščádal (filip-mxd-cz) Thank you very much now it works again (using debian 8)

Revision history for this message
msreekanth (sreekanth-manga) wrote :

I dont have the file itself:

sudo nano /usr/share/subdownloader/gui/main.py

Please help

Revision history for this message
msreekanth (sreekanth-manga) wrote :

To me it is at: /usr/share/pyshared/subdownloader/gui/main.py

And it worked fine after replacing the main.py.

Thanks A Lot :)

Revision history for this message
Javier Marino (marino-javier) wrote :

thank you so much Filip Oščádal, i work like a charm again!!!

 best regards

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

good luck!

On Sat, Feb 6, 2016, 18:30 Javier Marino <email address hidden> wrote:

> thank you so much Filip Oščádal, i work like a charm again!!!
>
> best regards
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal, mobile
system architect
ATELIER\L SKKP-BRNO

Revision history for this message
Javier Marino (marino-javier) wrote :

hi Filip Oščádal (filip-mxd-cz) i try again your fix but when i replace the main.py the app dosent want to open

i am using version 2.0.14

Revision history for this message
Javier Marino (marino-javier) wrote :

forget it i instal version 2.018 and the path work!!

thanks1!!!

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

yeah, always use the version that is the patch destination

On Mon, Jun 27, 2016, 04:30 Javier Marino <email address hidden> wrote:

> forget it i instal version 2.018 and the path work!!
>
> thanks1!!!
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

Filip Oščádal
CTO ATELIER\L s.r.o.
https://mxd.cz/kontakt

Revision history for this message
Fenix (anderson-f-queiroz) wrote :

The problem persists, but the patch works :)

Revision history for this message
Filip Oščádal (filip-mxd-cz) wrote :

it looks the same project is dead, I've already stopped using it

On Sun, Jan 8, 2017, 13:54 Fenix <email address hidden> wrote:

> The problem persists, but the patch works :)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1264365).
> https://bugs.launchpad.net/bugs/790753
>
> Title:
> subdownloader ubuntu Error "Unable to download subtitle abc.srt"
>
> Status in SubDownloader:
> New
>
> Bug description:
> I always get this error when I try to download a subtitle. It happened
> suddenly when I was updating my system.
> The error I get is "Unable to download subtitle abc.srt" and if I run
> Subdownloader in terminal with this command "subdownloader -d" then the
> error output is after I press download:
>
> [15:43] DEBUG::subdownloader.gui.main # Downloading to:
> u'/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Trying to download subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.gui.main # Downloading subtitle
> '/home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt'
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Downloading
> subtitle from url:
> http://www.opensubtitles.org/en/download/file/1952866062.gz
> [15:43] DEBUG::subdownloader.httpsearch.OSHttpSearch # Unpacking and
> savinng to: /home/siggihp/Downloads/Cougar.Town.S02E21E22.HDTV.XviD-LOL.srt
> Traceback (most recent call last):
> File "/usr/share/subdownloader/gui/main.py", line 1126, in
> onButtonDownload
> osHttpRequests.download('
> http://www.opensubtitles.org/en/download/file/%s.gz'
> %sub.getIdFileOnline(), destinationPath)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 72, in
> download
> self.unpack_subtitle(gz_path, local_path)
> File "/usr/share/subdownloader/modules/OSHttpRequests.py", line 51, in
> unpack_subtitle
> fileContent = fileObj.readlines();
> File "/usr/lib/python2.7/gzip.py", line 446, in readline
> c = self.read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 252, in read
> self._read(readsize)
> File "/usr/lib/python2.7/gzip.py", line 287, in _read
> self._read_gzip_header()
> File "/usr/lib/python2.7/gzip.py", line 181, in _read_gzip_header
> raise IOError, 'Not a gzipped file'
> IOError: Not a gzipped file
>
> I've already tried to download subdownloader and install it again, but
> I'm only able to find the latest version and that's the one that seems
> corrupted.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/subdownloader/+bug/790753/+subscriptions
>
--

*Filip Oščádal, CTO/CIO/root*

*https://mxd.cz/contact <https://mxd.cz/contact>*

Revision history for this message
Maarten (madebr) wrote :

This project has been forked at https://github.com/subdownloader/subdownloader

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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