Dadangdut33 / Speech-Translate

A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.
MIT License
436 stars 55 forks source link

failure to run main.py #3

Closed MRAWAY77 closed 1 year ago

MRAWAY77 commented 1 year ago

Successfully install the env and build.spec... is there something i miss out in the readME.md? Im using ubuntu 20.04

python Main.py Traceback (most recent call last): File "Main.py", line 27, in from speech_translate.Globals import app_icon, app_icon_missing, app_name, fJson, gClass File "/home/mraway/Desktop/src/Speech-Translate/speech_translate/Globals.py", line 16, in from .utils.Json import SettingJsonHandler File "/home/mraway/Desktop/src/Speech-Translate/speech_translate/utils/Json.py", line 7, in from speech_translate.components.MBox import Mbox File "/home/mraway/Desktop/src/Speech-Translate/speech_translate/components/MBox.py", line 10, in def Mbox(title: str, text: str, style: Literal[0, 1, 2, 3], parent: Tk | None = None): TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Screenshot from 2022-12-20 17-50-50

Dadangdut33 commented 1 year ago

hmm You are using python 3.8.5 and it seems that | operator is added in python 3.10.

I will add add that to the requirements. I will revert it to using the typing annotations from python.

Dadangdut33 commented 1 year ago

Let me know if it's still not working, thanks for the issue that you submitted :D

MRAWAY77 commented 1 year ago

Hi Thanks! the updates work for linux now. Do you happen to know if i can batch upload multiple files and process it together?

Dadangdut33 commented 1 year ago

Hi Thanks! the updates work for linux now. Do you happen to know if i can batch upload multiple files and process it together?

That's one of the feature that is gonna be implemented for this app, but I'm a little busy now so it might take a while. You can post it on issue as a feature request if you want @MRAWAY77