-
Notifications
You must be signed in to change notification settings - Fork 8
Longer subtitles problem #14
Comments
It should work without trouble but maybe we can figure out what is wrong. That error happens cause we need to wait until srt portion is translated, maximun 1 min wait, so something deepl can take more, idk, dont think so. First, check that there are not this character on the srt Try using If you want, send me the srt file i could try on my computer and check if i had the same trouble. Probably i should change the way the program knows when the translation is done. At the moment it check if the same amount or phrases are in the both text areas and there is no [...] on the translation. Let me know if you see something, if not, i'll think in another way to check this. |
With -s, 'Access temporarily suspended' message appears. EN David Wilcock Explores Lost Pyramids Of An Advanced Ancient Global Civilization.txt |
@andy144 couldnt replicate, it works out of the box on my computer. I dont know why you got access suspended, maybe the proxy was unavailable. It translate it all in one run. |
Ok, I tried with another computer, same internet connection, |
mmm, thats weird, anyway, keep track of #15, when i solve that this should be solved as well. Right now im working, so probably the weekend i'll work on it. |
Subtitles.str /opt/anaconda3/envs/general/lib/python3.9/site-packages/srt_deepl/main.py in translate(filepath, lang_from, lang_to, wrap_limit, delete_old, driver) /opt/anaconda3/envs/general/lib/python3.9/site-packages/srt_deepl/utils.py in get_proxies(https) /opt/anaconda3/envs/general/lib/python3.9/site-packages/srt_deepl/elements.py in init(self, driver, locate_by, locate_value, multiple) /opt/anaconda3/envs/general/lib/python3.9/site-packages/selenium/webdriver/support/wait.py in until(self, method, message) TimeoutException: Message: ` |
In PR #22 there is a new way to get the proxy... Merging when test are complete. |
I was using srt-deepl 0.8.9, last version without proxies, |
With 0.9.1 this is what I get: Traceback (most recent call last): adding -s argument is opening https://free-proxy-list.net/ page and that's it. I tried with tor but when I run tor_driver.py I get [chi@PC examples]$ python -m tor_driver.py And with the other file I get this: python -m translate_using_tor_service.py Sorry for the long message... |
Ok... in the first error.. yeah, it is the proxy... you could pass your own selenium driver if u want to avoid this issue.... (gonna fixed in the night tho). The second, need to install "tbselenium" library to make it work The third... I dont know the way you started tor service... look into #18 (comment) |
Ok, it works now. |
No problem, this weekend proxy issue sould be solved and new version come out. Wait for it. |
I uninstalled old srt-deepl and reinstalled,
then launched it as usual with
python -m srt_deepl -g
1000 lines srt works fine,
then I tested with 1700 lines and these errors appear:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/chi/.local/lib/python3.9/site-packages/srt_deepl/main.py", line 112, in
translate(
File "/home/chi/.local/lib/python3.9/site-packages/srt_deepl/main.py", line 127, in translate
subs = translator.translate(
File "/home/chi/.local/lib/python3.9/site-packages/srt_deepl/deepl.py", line 84, in translate
raise Exception(
Exception: Timeout for traslating portion.
The text was updated successfully, but these errors were encountered: