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

unhandled exception #1345

Closed
sujdovicluka opened this issue Apr 23, 2023 · 8 comments
Closed

unhandled exception #1345

sujdovicluka opened this issue Apr 23, 2023 · 8 comments

Comments

@sujdovicluka
Copy link

When I run pronterface/ printrun, error occures:

I have no clue on how to solve this but this is what console says:

Traceback (most recent call last):
File "pronterface.py", line 62, in
File "printrun\pronterface.py", line 2581, in init
wx._core.wxAssertionError: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at ....\src\common\intl.cpp(425) in wxLocale::Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?

pronter

Can you help me with this? /- my email is > sujdovic21@gmail.com
Thanks.

@DivingDuck
Copy link
Collaborator

DivingDuck commented Apr 23, 2023

Hi @sujdovicluka
Can you tell me what operating system are you running Pronterface and what version is used? In addition what language is used.

@sujdovicluka
Copy link
Author

Windows 10 Pro, 20H2, 2021. , Windows Feature Experience Pack 120.2212.2020.0,

@DivingDuck
Copy link
Collaborator

DivingDuck commented Apr 23, 2023

What version of Pronterface did you try to run?
What is the language setting of your computer?

Edit:
I'm quite sure you are not running the latest version (what would explain the wxpython error). Please download the latest version here: https://github.com/kliment/Printrun/releases/tag/printrun-2.0.0

@sujdovicluka
Copy link
Author

https://github.com/kliment/Printrun/releases/tag/printrun-2.0.0 this is the latest, I have no access to the older version.

Language - English?

@DivingDuck
Copy link
Collaborator

Thanks for this additional information.
I'm running as well Windows 10 Pro, but with latest version 22H2.
I'm just fishing and try to understand what is different to my system as I can't force this error here.

Maybe a additional question, is English meant en-US or similar or something else?

Background:
We had an user a couple weeks ago on a macOS who was using a language setting like en-AT, what is not a supported combination for pronterface, but possible to set up. He needed to switch to a common combination like de-AT or en-GB, en-US etc.
Peoples choose those kind of settings usually if they have a different keyboard layout like for example a French system language with an English keyboard layout.

@neofelis2X
Copy link
Contributor

It may actually be a similar but not the same problem.

In this case it could be that wx.Local doesn't recognise a language it supports. Unfortunately, there is no safeguard to check if GetSystemLanguage was actually successful.

wx.LANGUAGE_UNKNOWN | Unknown language, returned if wx.Locale.GetSystemLanguage fails.
Source: https://docs.wxpython.org/wx.Language.enumeration.html#wx-language

@DivingDuck
Copy link
Collaborator

@neofelis2X, thanks for pointing to this.

@rockstorm101
Copy link
Collaborator

Same issue as #1348. Reproduced. Not platform specific.

rockstorm101 added a commit that referenced this issue May 10, 2023
Function `wx.Locale.GetSystemLanguage` returns `wx.LANGUAGE_UNKNOWN`
when unable to identify the system's language. And `wx.Locale`
constructor does not allow `wx.LANGUAGE_UNKNOWN` as an argument.

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

No branches or pull requests

4 participants