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

win11 #2

Closed
ccybc opened this issue May 18, 2023 · 15 comments
Closed

win11 #2

ccybc opened this issue May 18, 2023 · 15 comments

Comments

@ccybc
Copy link

ccybc commented May 18, 2023

The executable file compiled on Win11 reports an error and cannot be run

@ccybc
Copy link
Author

ccybc commented May 18, 2023

Traceback (most recent call last):
File "pyvls.pyw", line 1600, in stop_ffmpeg_windows
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 4: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pyvls.pyw", line 3519, in
File "pyvls.pyw", line 2598, in main
File "pyvls.pyw", line 1619, in stop_ffmpeg_windows
File "pyvls.pyw", line 2370, in show_error_messages
NameError: name 'main_window' is not defined

@ccybc
Copy link
Author

ccybc commented May 18, 2023

I used a lot of your software, none of them worked, and they all went wrong

@botbahlul
Copy link
Owner

botbahlul commented May 18, 2023

which version is it?
it looks like you're not using the latest version

image

please use latest version
If you're still get some troubles you can try to install python and install this app with pip

pip install pyvosklivesubtitle

I've deleted some buggy releases
let me know others, and I'll delete them

@ccybc
Copy link
Author

ccybc commented May 18, 2023

The latest version 0.16 I used,I tested all the versions,Only 0.13 of them can be used,0.15 and 0.16 cannot be opened, and an error is reported,The Android version is very stable to use,YOUR VERSION OF PYTHON AND JAVA NEVER RUNS,I HAVE THE JAVA RUNTIME INSTALLED, BUT NOT THE PYTHON RUNTIME

@ccybc
Copy link
Author

ccybc commented May 18, 2023

Only python 0.13 can run, Java Edition and other pythons have failed

@ccybc
Copy link
Author

ccybc commented May 18, 2023

I don't know what the problem is?,Do I need to install the Python runtime to run the compiled exe program?

@ccybc
Copy link
Author

ccybc commented May 18, 2023

The system is the latest version of WIN11 and has been successfully configured for recording

@botbahlul
Copy link
Owner

botbahlul commented May 19, 2023

The latest version now is 0.1.12 (just uploaded it) :
https://github.com/botbahlul/pyvosklivesubtitle/releases/download/pyvosklivesubtitle-0.1.12/pyvosklivesubtitle-0.1.12.zip

It seems that I need to reconfigure mypyinstaller.bat file if a user doesn't want to install python.

If you have installed python runtime I'm pretty sure most of my releases will work. But please use python version between 3.8.12 to 3.10.4. I can't guarantee it will run on another versions.

Which JRE version do you use?
I developed java version with Oracle Java v1.8.0_351.
If you use different version I'm not sure it will work.
And remember to install those fonts I included in compressed zip file of the release file (extract them into c:\windows\fonts)

@ccybc
Copy link
Author

ccybc commented May 19, 2023

Traceback (most recent call last):
File "pyvls.pyw", line 1564, in stop_ffmpeg_windows
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 4: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pyvls.pyw", line 3450, in
File "pyvls.pyw", line 2532, in main
File "pyvls.pyw", line 1583, in stop_ffmpeg_windows
File "pyvls.pyw", line 2331, in show_error_messages
NameError: name 'main_window' is not defined

@ccybc
Copy link
Author

ccybc commented May 19, 2023

The latest 0.1.12 and python installed

@ccybc
Copy link
Author

ccybc commented May 19, 2023

屏幕截图 2023-05-19 134725

@ccybc
Copy link
Author

ccybc commented May 19, 2023

https://zhuanlan.zhihu.com/p/150371648
There seems to be a solution to the problem here

@ccybc
Copy link
Author

ccybc commented May 19, 2023

Is it that our computers are different,Mine is a Chinese system, so UTF-8 encoding is not universal?

@ccybc
Copy link
Author

ccybc commented May 19, 2023

屏幕截图 2023-05-19 142538

@botbahlul
Copy link
Owner

botbahlul commented May 19, 2023

it seems that you forgot to put those ffmpeg.exe and ffprobe.exe into c:\windows\system32

have you done that?

BTW, I just upload version 0.1.13
https://github.com/botbahlul/pyvosklivesubtitle/releases/download/pyvosklivesubtitle-0.1.13/pyvosklivesubtitle-0.1.13.zip

pyvosklivesubtitle-0.1.13.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants