SRTranslator: New GUI Version not opening giving error

Hi @sinedie Thank you for creating the GUI version for all of us. I am getting error when trying to run the new GUI version of the translator but its not working. I am getting the below error.

Traceback (most recent call last): File "\app\srtranslatorGUI\__main__.py", line 1, in <module> from srtranslatorGUI.app import main File "\app\srtranslatorGUI\app.py", line 3, in <module> import toga ModuleNotFoundError: No module named 'toga' image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 55 (30 by maintainers)

Most upvoted comments

@sinedie @k-aito , Now the application opens but it freezes when try to translate subs.

image

Finally I manage to work on this. I decided to start over with another python/flutter framework called Flet. It is functional in both linux and windows. There is a new version 0.3.9 to support something in the new UI. You can find it in the master branch.

Currently I’m working on a github action to generate the executables but if you wanna test it you could go to the folder GUI, install the requirements and run flet app:

cd ./GUI
pip install -r ./requirements.txt
flet run main.py

And if you want to pack it yourself, run flet pack main.py or flet build main.py. (Check the flet documentation it is pretty simple)

There will be issues as it is work in progress but it is better than the other GUI. App size is one of them but I think there is no workaround for that. Also, by now you can queue multiple srt files at the same time but it will only translate one at the time

Ty for waiting and using this, hope you like it. Also, I’m open to recieve feedback.

@jaum20, I’ll be back to this issue this week. I took too many time. I think I’ll use another framework for the GUI as briefcase didn’t work as planned

There is an error again, the same one.

image

Hello @merida77 @arlovibre @h4rdkor1

I tried to add “toga” to the windows requires can you give it a try, I cannot try it myself because I don’t have a windows.

master-windows-2022.msi.zip