sinedie / SRTranslator

SRT files translator
Do What The F*ck You Want To Public License
212 stars 25 forks source link

How to use and What is the difference with GUI? #66

Closed arlovibre closed 11 months ago

arlovibre commented 11 months ago

Hello. I normally use SRTranslatorGUI, but I am having some problems with it. It is not working smoothly. What is the difference between yours and GUI? When something is not working with GUI, does this mean there is something wrong with DeepL or Firefox that affects your version as well? And as I am a non-technical user, I could not manage to get your version to work. I have anaconda3 on my pc, how do I use your SRTranslator? Sorry for asking a lot, I am just trying to learn. Thank you for your great work.

sinedie commented 11 months ago

Hey, the GUI is a wrapper around this library -I didn't make it so don't know details about its implementation-.

Errors on traslation could be cause of proxies, firefox, deepl, changes on the deepl page or this package, etc. GUI can have an outdated version of this package and is most probably the issue. Try to open an issue in @KryptoST package to fix it.

The easy way to use this package is from the command line (windows CMD). Just need to copy this (and change the path to the file and the source and target language)

python -m srtranslator ./filepath/to/srt -i en -o es

Check here for the supported languages and docs.

arlovibre commented 11 months ago

Hey, the GUI is a wrapper around this library -I didn't make it so don't know details about its implementation-.

Errors on traslation could be cause of proxies, firefox, deepl, changes on the deepl page or this package, etc. GUI can have an outdated version of this package and is most probably the issue. Try to open an issue in @KryptoST package to fix it.

The easy way to use this package is from the command line (windows CMD). Just need to copy this (and change the path to the file and the source and target language)

python -m srtranslator ./filepath/to/srt -i en -o es

Check here for the supported languages and docs.

Thank you so much for quick and detailed reply, and your patience. Best wishes to you.

arlovibre commented 11 months ago

Hello again. I am having an issue, and do not know what to do. Would you kindly help me out?

image

sinedie commented 11 months ago

Try to reinstall it, I made a mistake. It is fixed by now on version 0.3.1

arlovibre commented 11 months ago

Try to reinstall it, I made a mistake. It is fixed by now on version 0.3.1

I did what you had told me, but now I am getting: OSError: [Errno 22] Invalid Argument

or when I try to write the line like this: python -m srtranslator C:\Users...\Masaüstü\lll.srt/to/srt -i en -o tr

instead of like this: python -m srtranslator ./C:\Users...\Masaüstü\lll.srt/to/srt -i en -o tr

I am getting this error: FileNotFoundError: [Errno 2] No such file or directory.

What am I doing wrong exactly?

sinedie commented 11 months ago

dont mix \ with / (and if you are using absolute path, dont put ./ at the beggining)

python -m srtranslator C:/Users.../Masaüstü/lll.srt/to/srt -i en -o tr

arlovibre commented 11 months ago

I am getting this error now. I also tried lll.srt. image

sinedie commented 11 months ago

sure that file/folder exists? seems like it doesnt

arlovibre commented 11 months ago

sure that file/folder exists? seems like it doesnt

I am sure it exists. I tried putting it directly into C folder, but the same error again...

sinedie commented 11 months ago

did you put the extension in the filepath?

arlovibre commented 11 months ago

did you put the extension in the filepath?

Could you please explain what this means? This is what I am writing: python -m srtranslator C:/Users/mutta/Masaüstü/lll.srt/to/srt -i en -o tr

sinedie commented 11 months ago

srt is a file or a folder?

arlovibre commented 11 months ago

srt is a file or a folder?

It is a file. Like this: image I am using Aegisub to edit it. That's why it's symbol is an eye.

arlovibre commented 11 months ago

Here is the file type: image

sinedie commented 11 months ago

python -m srtranslator C:/Users/mutta/Masaüstü/lll.srt/to/srt.srt -i en -o tr

need the .srt extension

arlovibre commented 11 months ago

I tried this, did not work again. The same error. 😐

sinedie commented 11 months ago

Can't help you more beyond that. The issue is not this package, the system won't find that file -thats a python error, not srtranslator error-.

The path must be wrong or maybe the special characters in Masaüstü break it.

arlovibre commented 11 months ago

Well, you did everything you can, and I am grateful for that. Thank you so much. I will update, if I can fix this somehow.

arlovibre commented 11 months ago

Hello, it's me again. I tried writing Desktop instead of Masaüstü, and I tried all of this with another pc as well, and it did not work again. Both pcs have anaconda3, and we both try to do this from there. Could this be an anaconda issue, if so what else I can use? I've read that phyton sometimes does not see system files or something like this, and tried the fixes they recommended, but it did not work again. Sorry for opening this again, I am trying to learn how to use stuff. Maybe the problem is directly from anaconda3 and you have a recommendation...

arlovibre commented 11 months ago

Additionally, can I use this in Google Colaboratory?

sinedie commented 11 months ago

If the issue is anaconda, then use python directly, https://www.python.org/downloads/.

I haven't use it in google colab, but should work, dont see why not.

arlovibre commented 11 months ago

Okay, thank you so much for your answers.