Closed ghost closed 3 years ago
Again - you've given a handful of code and an error message, but you haven't described what you've done to generate this error.
The "no module named encodings" error usually means you've configured the Xcode project incorrectly, and Python can't find the standard library. If you want a sample project that shows the configuration that is required, you can generate one with Briefcase.
Initializing Python runtime Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings'
NSString tmp_path; NSString python_home; wchar_t wpython_home; NSString resourcePath = [[NSBundle mainBundle] resourcePath];