So when I try to run the Kivy sample app here - https://github.com/cztomczak/cefpython/blob/master/src/linux/binaries_64bit/kivy_.py
I get the following error -
[CEF Python] Initialize() called
[CEF Python] CefExecuteProcess(): exitCode = -1
[CEF Python] CefInitialize()
[CEF Python] App_OnBeforeCommandLineProcessing_BrowserProcess()
[CEF Python] App: Command line string for the browser process: --browser-subprocess-path=/Users/Jon/Downloads/cefpython3-31.2-macosx-setup 5/cefpython3/subprocess --lang=en-US --log-file=debug.log --log-severity=info --enable-release-dcheck --resources-dir-path=/Users/Jon/Downloads/cefpython3-31.2-macosx-setup 5/cefpython3 --locales-dir-path=/Users/Jon/Downloads/cefpython3-31.2-macosx-setup 5/cefpython3/locales --remote-debugging-port=65436 --no-sandbox
[0605/180015:WARNING:resource_bundle.cc(269)] locale_file_path.empty()
[0605/180015:FATAL:main_delegate.cc(449)] Check failed: !loaded_locale.empty(). Locale could not be found for en-US
I've tried searching for answers but they all seem to be quite old and refer to a locale.pak that I can't seem to find. How can I resolve this issue?
g_switches = {
"locale_pak": cefpython.GetModuleDirectory()
+"/Resources/en.lproj/locale.pak"
}
cefpython.Initialize(g_applicationSettings, g_switches)I added this to the settings -
"resources_dir_path": cefpython.GetModuleDirectory()+"/Resources",
and then added this array -
switches = {
# On Mac it is required to provide path to a specific
# locale.pak file. On Win/Linux you only specify the
# ApplicationSettings.locales_dir_path option.
"locale_pak": cefpython.GetModuleDirectory()
+"/Resources/en.lproj/locale.pak",
# "proxy-server": "socks5://127.0.0.1:8888",
# "no-proxy-server": "",
# "enable-media-stream": "",
# "remote-debugging-port": "12345",
# "disable-gpu": "",
# "--invalid-switch": "" -> Invalid switch name
}
Then initialized CEF like so:
cefpython.Initialize(settings, switches)