Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failure to run main.py #3

Closed
MRAWAY77 opened this issue Dec 20, 2022 · 4 comments
Closed

failure to run main.py #3

MRAWAY77 opened this issue Dec 20, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@MRAWAY77
Copy link

MRAWAY77 commented Dec 20, 2022

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
Copy link
Owner

Dadangdut33 commented Dec 20, 2022

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
Copy link
Owner

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

@MRAWAY77
Copy link
Author

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
Copy link
Owner

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

@Dadangdut33 Dadangdut33 added the bug Something isn't working label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants