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

Failed to execute script 'pronterface' due to unhandled exception: C++ assertion #1348

Closed
379820 opened this issue Apr 27, 2023 · 6 comments
Closed

Comments

@379820
Copy link

379820 commented Apr 27, 2023

/Applications/pronterface.app/Contents/MacOS/pronterface

Traceback (most recent call last):
  File "pronterface.py", line 62, in <module>
  File "printrun/pronterface.py", line 2581, in __init__
wx._core.wxAssertionError: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at /Users/robind/projects/bb2/dist-osx-py310/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?
[41290] Failed to execute script 'pronterface' due to unhandled exception: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at /Users/robind/projects/bb2/dist-osx-py310/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?
[41290] Traceback:
Traceback (most recent call last):
  File "pronterface.py", line 62, in <module>
  File "printrun/pronterface.py", line 2581, in __init__
wx._core.wxAssertionError: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at /Users/robind/projects/bb2/dist-osx-py310/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?

[0] % locale

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

uname -a
Darwin MacBook-Pro 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64

@ZoyaZ126
Copy link

ZoyaZ126 commented May 4, 2023

Hi, I had the same problem until I changed my system language to English…

@DivingDuck
Copy link
Collaborator

Interesting. What was your language setup before?

@ZoyaZ126
Copy link

ZoyaZ126 commented May 4, 2023

Chinese

@DivingDuck
Copy link
Collaborator

Thanks. Good to know. Maybe generating/making a translation file could help.

@rockstorm101
Copy link
Collaborator

I'm able to reproduce this on my Linux box so I've removed the 'macOS' flag.

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
@dymbox
Copy link

dymbox commented May 12, 2023

Same here for macOS 11.7.6, added US-English locale to .zshrc with no success. My current locale is:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

The console error strings look like

Failed to execute script 'pronterface' due to unhandled exception: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at /Users/robind/projects/bb2/dist-osx-py310/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?

Traceback:
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 /Users/robind/projects/bb2/dist-osx-py310/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale

Sure I'm running the macOS 11 version, but tried both 10.15 & 12 too, same result.

BTW, the Printrun 2.0.0rc8 runs just fine

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

5 participants