Fatal python error when trying to launch OCLP from terminal

Hope this helps someone

Running Macbook late 2008 with nvidia gpu

Opencore Legacy Patcher didnt launch, so tried to launch it with terminal via /Applications/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher, got this error:

Python path configuration:
PYTHONHOME = '/Applications/OpenCore-Patcher.app/Contents/MacOS'
PYTHONPATH = (not set)
program name = '/Applications/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher'
isolated = 0
environment = 0
user site = 0
safe_path = 0
import site = 0
is in build tree = 0
stdlib dir = ''
sys._base_executable = '/Applications/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher'
sys.base_prefix = ''
sys.base_exec_prefix = ''
sys.platlibdir = 'lib'
sys.executable = '/Applications/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher'
sys.prefix = ''
sys.exec_prefix = ''
sys.path = [
'/Applications/OpenCore-Patcher.app/Contents/MacOS/base_library.zip',
'/Applications/OpenCore-Patcher.app/Contents/MacOS/lib-dynload',
'/Applications/OpenCore-Patcher.app/Contents/MacOS',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x000000010ec8ae00 (most recent call first):
<no Python frame>

Turns out it is important that Patcher .app.zip is extracted(unzipped) automatially on the mac you installing it. My El Capitan for some reason decided to archive it instead of unpacking and launching, so i unzipped the .app on another pc(sorry if stupid, barely familiar with macos)

Soleved by wiping drive(older os wont install over newer one, and El Capitan was last official for my macbook), installing Yosemite, where Finder figured out what to do with.app.zip and upgraded to Big Sur from there

submitted by /u/far_walker
[link] [comments]