Public bug reported:

Every time I run subliminal, on Ubuntu 22.04, to download subtitles, the
program fails and quits without downloading the subtitles.

The error for one of the attempts I made is just below.

--------------------------------------------

INFO:subliminal.core:Scanning video 'The.Outpost.something.mkv' in ''
DEBUG:subliminal.core:Size is 327306870
DEBUG:subliminal.core:Found subtitles {}
INFO:subliminal.core:Refining video with hash
DEBUG:subliminal.refiners.hash:Computing hashes for 'The.Outpost.something.mkv'
DEBUG:subliminal.refiners.hash:Computed hashes {'opensubtitles': 
'4023cb315376a0e2'}
INFO:subliminal.core:Refining video with metadata
DEBUG:subliminal.refiners.metadata:Found resolution 720p
DEBUG:subliminal.refiners.metadata:Found video_codec H.264
DEBUG:subliminal.refiners.metadata:Found audio_codec AAC
DEBUG:subliminal.refiners.metadata:Found embedded subtitle {<Language [und]>}
INFO:subliminal.core:Refining video with tvdb
INFO:subliminal.refiners.tvdb:Searching series 'The Outpost'
DEBUG:subliminal.refiners.tvdb:Found 1 results
DEBUG:subliminal.refiners.tvdb:Found exact match on series 'The Outpost'
DEBUG:subliminal.refiners.tvdb:Found series {'id': 345831, 'seriesId': '', 
'seriesName': 'The Outpost', 'aliases': [], 'season': '4', 'poster': 
'posters/5b448b1907561.jpg', 'banner': 
'series/345831/banners/5f9c807da8430.jpg', 'fanart': 
'series/345831/backgrounds/5f1864919b679.jpg', 'status': 'Ended', 'firstAired': 
'2018-07-10', 'network': 'The CW', 'networkId': '267', 'runtime': '45', 
'language': 'en', 'genre': ['Action', 'Adventure', 'Drama', 'Fantasy'], 
'overview': 'Talon is a survivor. The last of the Blackblood race, she also 
endured the destruction of her entire village by a gang of brutal missionaries. 
Years after that life-defining attack, she travels to a lawless fortress along 
the edge of the civilized world, tracking the individuals who killed her 
family. As she makes the journey, she discovers that she possesses a mysterious 
supernatural power that she must now learn to control, not only to save herself 
but to defend the world against the tyranny of a fanatical religious 
dictator.', 'lastUpdated': 1722176072, 'airsDayOfWeek': 'Thursday', 'airsTime': 
'9:00 PM', 'rating': 'TV-PG', 'imdbId': 'tt7612548', 'zap2itId': '', 'added': 
'2018-04-09 00:10:27', 'addedBy': 126519, 'siteRating': 0, 'siteRatingCount': 
0, 'slug': 'the-outpost'}
INFO:subliminal.refiners.tvdb:Getting series episode 4x1
DEBUG:subliminal.refiners.tvdb:Found episode {'id': 8513057, 'airedSeason': 4, 
'airedSeasonID': 1942219, 'airedEpisodeNumber': 1, 'episodeName': 'Someone Has 
to Rule', 'firstAired': '2021-07-15', 'guestStars': [], 'directors': ['Milan 
Todorovic'], 'writers': ['Jason Faller', 'Kynan Griffin'], 'overview': 'Garret 
wants Talon to take the throne, while a mysterious assassin seeks revenge. 
Falista mourns for Tobin but hatches a new plan. Zed wants Wren to be High 
Priestess and uncovers a secret about her.', 'language': {'episodeName': 'en', 
'overview': 'en'}, 'productionCode': '', 'showUrl': '', 'lastUpdated': 
1651559878, 'dvdDiscid': '', 'dvdSeason': 4, 'dvdEpisodeNumber': 1, 
'dvdChapter': None, 'absoluteNumber': 37, 'filename': 
'v4/episode/8513057/screencap/6105ffec31531.jpg', 'seriesId': 345831, 
'lastUpdatedBy': 115558, 'airsAfterSeason': None, 'airsBeforeSeason': None, 
'airsBeforeEpisode': None, 'imdbId': 'tt13233466', 'contentRating': 'TV-PG', 
'thumbAuthor': 46704, 'thumbAdded': '2021-08-01 01:59:08', 'thumbWidth': '640', 
'thumbHeight': '360', 'siteRating': 0, 'siteRatingCount': 0, 'isMovie': 0}
INFO:subliminal.core:Refining video with omdb
WARNING:subliminal.refiners.omdb:No apikey. Skipping omdb refiner.
Collecting videos  [####################################]  100%                 
                                      
1 video collected / 0 video ignored / 0 error
Downloading subtitles  [------------------------------------]    0%  
The.Outpost.something.mkvINFO:subliminal.core:Listing subtitles with provider 
'addic7ed' and languages {<Language [pt]>}
INFO:subliminal.core:Initializing provider addic7ed
INFO:subliminal.core:Skipping provider 'argenteam': no language to search for
INFO:subliminal.core:Listing subtitles with provider 'legendastv' and languages 
{<Language [pt]>}
INFO:subliminal.core:Initializing provider legendastv
ERROR:subliminal.utils:Unexpected error. Provider legendastv
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/subliminal/core.py", line 115, in 
list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
           ~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/core.py", line 66, in 
__getitem__
    provider = provider_manager[name].plugin(**self.provider_configs.get(name, 
{}))
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/providers/legendastv.py", 
line 164, in __init__
    rarfile.custom_check([rarfile.UNRAR_TOOL], True)
    ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'rarfile' has no attribute 'custom_check'
INFO:subliminal.core:Listing subtitles with provider 'opensubtitles' and 
languages {<Language [pt]>}
DEBUG:subliminal.providers.addic7ed:Getting show id with year
DEBUG:subliminal.providers.addic7ed:Getting show id
INFO:subliminal.core:Skipping provider 'shooter': no language to search for
INFO:subliminal.core:Skipping provider 'thesubdb': not a valid video
INFO:subliminal.core:Listing subtitles with provider 'tvsubtitles' and 
languages {<Language [pt]>}
INFO:subliminal.core:Initializing provider opensubtitles
INFO:subliminal.core:Listing subtitles with provider 'podnapisi' and languages 
{<Language [pt]>}
INFO:subliminal.providers.addic7ed:Getting the page of show id 6911, season 4
INFO:subliminal.core:Initializing provider tvsubtitles
INFO:subliminal.providers.opensubtitles:Logging in
INFO:subliminal.core:Initializing provider podnapisi
ERROR:subliminal.providers.tvsubtitles:No show id found for 'The Outpost' 
({'year': 2018})
INFO:subliminal.providers.podnapisi:Searching subtitles {'sXML': 1, 'sL': 'pt', 
'sK': 'The Outpost', 'sTS': 4, 'sTE': 1, 'sY': 2018}
ERROR:subliminal.utils:Unexpected error. Provider opensubtitles
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/subliminal/core.py", line 115, in 
list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
           ~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/core.py", line 67, in 
__getitem__
    provider.initialize()
  File "/usr/lib/python3/dist-packages/subliminal/providers/opensubtitles.py", 
line 129, in initialize
    response = checked(self.server.LogIn(self.username, self.password, 'eng', 
self.user_agent))
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/providers/opensubtitles.py", 
line 278, in checked
    raise Unauthorized
subliminal.providers.opensubtitles.Unauthorized
ERROR:subliminal.utils:HTTP error 429. Provider podnapisi
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/subliminal/core.py", line 115, in 
list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/providers/podnapisi.py", line 
161, in list_subtitles
    self.query(l, title, season=season, episode=episode, year=video.year)]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/subliminal/providers/podnapisi.py", line 
99, in query
    r.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 1021, in 
raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: 
https://www.podnapisi.net/subtitles/search/old?sXML=1&sL=pt&sK=The+Outpost&sTS=4&sTE=1&sY=2018
ERROR:subliminal.utils:Request timed out. Provider addic7ed
INFO:subliminal.core:Discarding provider addic7ed
INFO:subliminal.core:Discarding provider legendastv
INFO:subliminal.core:Discarding provider opensubtitles
INFO:subliminal.core:Discarding provider podnapisi
Downloading subtitles  [####################################]  100%             
                                          
Some providers have been discarded due to unexpected errors: opensubtitles, 
addic7ed, legendastv, podnapisi
DEBUG:subliminal.core:Terminating initialized providers
INFO:subliminal.core:Terminating provider addic7ed
INFO:subliminal.core:Terminating provider tvsubtitles
INFO:subliminal.core:Terminating provider podnapisi
Downloaded 0 subtitle

--------------------------------------------


I've tried version 2.2.0-1, on Debian Testing, and it is working as expected.


Below, is the output from ubuntu-bug for my system.

--------------------------------------------

ProblemType: Bug
ApportVersion: 2.28.1-0ubuntu3.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan  6 11:36:56 2025
Dependencies:
 apt 2.7.14build2
 apt-utils 2.7.14build2
 base-passwd 3.6.3build1
 ca-certificates 20240203
 debconf 1.5.86ubuntu1
 debconf-i18n 1.5.86ubuntu1
 dpkg 1.22.6ubuntu6.1
 gcc-14-base 14.2.0-4ubuntu2~24.04
 gpgv 2.4.4-2ubuntu17
 libacl1 2.3.2-1build1.1
 libapt-pkg6.0t64 2.7.14build2
 libassuan0 2.5.6-1build1
 libbz2-1.0 1.0.8-5.1build0.1
 libc6 2.39-0ubuntu8.3
 libcap2 1:2.66-5ubuntu2
 libcrypt1 1:4.4.36-4build1
 libdb5.3t64 5.3.28+dfsg2-7
 libdebconfclient0 0.271ubuntu3
 libexpat1 2.6.1-2ubuntu0.2
 libffi8 3.4.6-1build1
 libgcc-s1 14.2.0-4ubuntu2~24.04
 libgcrypt20 1.10.3-2build1
 libgmp10 2:6.3.0+dfsg-2ubuntu6
 libgnutls30t64 3.8.3-1.1ubuntu3.2
 libgpg-error-l10n 1.47-3build2
 libgpg-error0 1.47-3build2
 libgpm2 1.20.7-11
 libhogweed6t64 3.9.1-2.2build1.1
 libicu74 74.2-1ubuntu3.1
 libidn2-0 2.3.7-2build1
 liblocale-gettext-perl 1.07-6ubuntu5
 liblz4-1 1.9.4-1build1.1
 liblzma5 5.6.1+really5.4.5-1build0.1
 libmd0 1.1.0-2build1
 libncursesw6 6.4+20240113-1ubuntu2
 libnettle8t64 3.9.1-2.2build1.1
 libnpth0t64 1.6-3.1build1
 libp11-kit0 0.25.3-4ubuntu2.1
 libpcre2-8-0 10.42-4ubuntu2
 libpython3-stdlib 3.12.3-0ubuntu2
 libpython3.12-minimal 3.12.3-1ubuntu0.3
 libpython3.12-stdlib 3.12.3-1ubuntu0.3
 libreadline8t64 8.2-4build1
 libseccomp2 2.5.5-1ubuntu3.1
 libselinux1 3.5-2ubuntu2
 libsqlite3-0 3.45.1-1ubuntu2
 libssl3t64 3.0.13-0ubuntu3.4
 libstdc++6 14.2.0-4ubuntu2~24.04
 libsystemd0 255.4-1ubuntu8.4
 libtasn1-6 4.19.0-3build1
 libtext-charwidth-perl 0.04-11build3
 libtext-iconv-perl 1.7-8build3
 libtext-wrapi18n-perl 0.06-10
 libtinfo6 6.4+20240113-1ubuntu2
 libudev1 255.4-1ubuntu8.4
 libunistring5 1.1-2build1
 libxml2 2.9.14+dfsg-1.3ubuntu3
 libxslt1.1 1.1.39-0exp1build1
 libxxhash0 0.8.2-2build1
 libzstd1 1.5.5+dfsg2-2build1.1
 media-types 10.1.0
 netbase 6.4
 openssl 3.0.13-0ubuntu3.4
 perl-base 5.38.2-3.2build2
 python3 3.12.3-0ubuntu2
 python3-appdirs 1.4.4-4
 python3-babelfish 0.6.0-2
 python3-bs4 4.12.3-1
 python3-certifi 2023.11.17-1
 python3-chardet 5.2.0+dfsg-1
 python3-click 8.1.6-2
 python3-colorama 0.4.6-4
 python3-cssselect 1.2.0-2
 python3-dateutil 2.8.2-3ubuntu1
 python3-decorator 5.1.1-5
 python3-dogpile.cache 1.1.8-3
 python3-enzyme 0.4.1-3
 python3-guessit 3.8.0-2
 python3-html5lib 1.1-6
 python3-idna 3.6-2ubuntu0.1
 python3-importlib-metadata 4.12.0-1
 python3-lxml 5.2.1-1
 python3-mako 1.3.2-1
 python3-markupsafe 2.1.5-1build2
 python3-minimal 3.12.3-0ubuntu2
 python3-more-itertools 10.2.0-1
 python3-pbr 5.11.1-0ubuntu1
 python3-pkg-resources 68.1.2-2ubuntu1.1
 python3-pycryptodome 3.20.0+dfsg-1
 python3-pysrt 1.0.1-3
 python3-rarfile 4.1-2
 python3-rebulk 3.3.0-2
 python3-requests 2.31.0+dfsg-1ubuntu1
 python3-setuptools 68.1.2-2ubuntu1.1
 python3-six 1.16.0-4
 python3-soupsieve 2.5-1
 python3-stevedore 1:5.1.0-0ubuntu1
 python3-subliminal 2.1.0-3
 python3-toposort 1.10-1
 python3-typing-extensions 4.10.0-1
 python3-tz 2024.1-2
 python3-urllib3 2.0.7-1ubuntu0.1
 python3-webencodings 0.5.1-5
 python3-zipp 1.0.0-6ubuntu0.1
 python3.12 3.12.3-1ubuntu0.3
 python3.12-minimal 3.12.3-1ubuntu0.3
 readline-common 8.2-4build1
 tar 1.35+dfsg-3build1
 tzdata 2024a-3ubuntu1.1
 ubuntu-keyring 2023.11.28.1
 zlib1g 1:1.3.dfsg-3.1ubuntu2.1
DistroRelease: Ubuntu 24.04
InstallationDate: Installed on 2024-12-20 (17 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 
(20240827.1)
Package: subliminal 2.1.0-3
PackageArchitecture: all
ProcCpuinfoMinimal:
 processor      : 7
 vendor_id      : GenuineIntel
 cpu family     : 6
 model          : 140
 model name     : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
 stepping       : 1
 microcode      : 0xb8
 cpu MHz                : 1454.504
 cache size     : 12288 KB
 physical id    : 0
 siblings       : 8
 core id                : 3
 cpu cores      : 4
 apicid         : 7
 initial apicid : 7
 fpu            : yes
 fpu_exception  : yes
 cpuid level    : 27
 wp             : yes
 flags          : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb 
rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology 
nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl 
vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe 
popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch 
cpuid_fault epb cat_l2 cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow 
flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms 
invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb 
intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves 
split_lock_detect user_shstk dtherm ida arat pln pts hwp hwp_notify 
hwp_act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke avx512_vbmi2 
gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri 
movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities
 vmx flags      : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad 
ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid 
unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling
 bugs           : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb 
gds bhi
 bogomips       : 5606.40
 clflush size   : 64
 cache_alignment        : 64
 address sizes  : 39 bits physical, 48 bits virtual
 power management:
ProcEnviron:
 LANG=pt_PT.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/zsh
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcVersionSignature: Ubuntu 6.8.0-51.52-generic 6.8.12
SourcePackage: subliminal
Tags: noble wayland-session
Uname: Linux 6.8.0-51-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True

--------------------------------------------

** Affects: subliminal (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2093096

Title:
  Program outputs several erros and quits without downloading the
  subtitles

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subliminal/+bug/2093096/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to