MacOS Big Sur Python Quit unexpectedly

Dear All,
i have followed the following guide to install Frappe on my mac .


and i managed to get bench start

but during the site setup the browser always popup an error tellen that python quit unexpectedly

with the below details

Process: Python [2277]
Path: /usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.9.2 (3.9.2)
Code Type: X86-64 (Native)
Parent Process: Python [2017]
Responsible: Terminal [1729]
User ID: 501

Date/Time: 2021-03-01 10:34:16.575 +0200
OS Version: macOS 11.2.2 (20D80)
Report Version: 12
Anonymous UUID: 19C852CC-A77F-0BDF-34E0-836F65E7D65A

Time Awake Since Boot: 1000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace OBJC, Code 0x1

Application Specific Information:
objc[2277]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
+[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
crashed on child side of fork pre-exec

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff20339792 __abort_with_payload + 10
1 libsystem_kernel.dylib 0x00007fff2033b1d9 abort_with_payload_wrapper_internal + 80
2 libsystem_kernel.dylib 0x00007fff2033b189 abort_with_reason + 19
3 libobjc.A.dylib 0x00007fff20208b6a _objc_fatalv(unsigned long long, unsigned long long, char const*, __va_list_tag*) + 114
4 libobjc.A.dylib 0x00007fff20208af8 _objc_fatal(char const*, …) + 135
5 libobjc.A.dylib 0x00007fff201f8ea9 performForkChildInitialize(objc_class*, objc_class*) + 308
6 libobjc.A.dylib 0x00007fff201f94b7 initializeNonMetaClass + 607
7 libobjc.A.dylib 0x00007fff201fa5b0 initializeAndMaybeRelock(objc_class*, objc_object*, mutex_tt&, bool) + 232
8 libobjc.A.dylib 0x00007fff201ea2b2 lookUpImpOrForward + 1126
9 libobjc.A.dylib 0x00007fff201e989b _objc_msgSend_uncached + 75
10 com.apple.CoreFoundation 0x00007fff203e4808 -[__NSDictionaryM __setObject:forKey:] + 504
11 com.apple.CoreFoundation 0x00007fff203e1b65 parseXMLElement + 2769
12 com.apple.CoreFoundation 0x00007fff203e14e3 parseXMLElement + 1103
13 com.apple.CoreFoundation 0x00007fff203e057f _CFPropertyListCreateFromUTF8Data + 1405
14 com.apple.CoreFoundation 0x00007fff204e110d _CFPropertyListCreateWithData + 811
15 com.apple.CoreFoundation 0x00007fff203dfa9a CFPropertyListCreateWithData + 51
16 com.apple.CoreFoundation 0x00007fff203de9b6 _CFBundleCopyInfoDictionaryInDirectoryWithVersion + 906
17 com.apple.CoreFoundation 0x00007fff203de2ce _CFBundleRefreshInfoDictionaryAlreadyLocked + 111
18 com.apple.CoreFoundation 0x00007fff203de240 CFBundleGetInfoDictionary + 44
19 com.apple.CoreFoundation 0x00007fff204e047e _CFBundleCreate + 903
20 com.apple.CoreFoundation 0x00007fff203ce7da CFBundleGetMainBundle + 148
21 com.apple.CoreFoundation 0x00007fff203f02d1 _CFPrefsGetCacheStringForBundleID + 71
22 com.apple.CoreFoundation 0x00007fff203f6d4c -[CFPrefsPlistSource setDomainIdentifier:] + 100
23 com.apple.CoreFoundation 0x00007fff203f6c81 -[CFPrefsPlistSource initWithDomain:user:byHost:containerPath:containingPreferences:] + 99
24 com.apple.CoreFoundation 0x00007fff203f6b69 __85-[_CFXPreferences(PlistSourceAdditions) withManagedSourceForIdentifier:user:perform:]_block_invoke + 156
25 com.apple.CoreFoundation 0x00007fff20528b46 -[_CFXPreferences withSources:] + 60
26 com.apple.CoreFoundation 0x00007fff2056e675 -[_CFXPreferences withManagedSourceForIdentifier:user:perform:] + 240
27 com.apple.CoreFoundation 0x00007fff203f19dc -[CFPrefsSearchListSource addManagedSourceForIdentifier:user:] + 98
28 com.apple.CoreFoundation 0x00007fff20549e38 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke.166 + 283
29 com.apple.CoreFoundation 0x00007fff20549b0c -[_CFXPreferences withSearchLists:] + 60
30 com.apple.CoreFoundation 0x00007fff203f1772 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 279
31 com.apple.CoreFoundation 0x00007fff20549c9b -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 372
32 com.apple.CoreFoundation 0x00007fff203f1244 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 137
33 com.apple.CoreFoundation 0x00007fff203f117e _CFPreferencesCopyAppValueWithContainerAndConfiguration + 101
34 com.apple.SystemConfiguration 0x00007fff20e89e4b SCDynamicStoreCopyProxiesWithOptions + 155
35 _scproxy.cpython-39-darwin.so 0x0000000103f758cd get_proxy_settings + 32
36 org.python.python 0x00000001030ab3a6 cfunction_vectorcall_NOARGS + 104
37 org.python.python 0x0000000103158d93 call_function + 168
38 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
39 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
40 org.python.python 0x0000000103158d93 call_function + 168
41 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
42 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
43 org.python.python 0x0000000103158d93 call_function + 168
44 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
45 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
46 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
47 org.python.python 0x0000000103158d93 call_function + 168
48 org.python.python 0x0000000103156747 _PyEval_EvalFrameDefault + 45643
49 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
50 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
51 org.python.python 0x0000000103158d93 call_function + 168
52 org.python.python 0x0000000103156747 _PyEval_EvalFrameDefault + 45643
53 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
54 org.python.python 0x0000000103158d93 call_function + 168
55 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
56 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
57 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
58 org.python.python 0x0000000103063a4e method_vectorcall + 160
59 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
60 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
61 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
62 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
63 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
64 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
65 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
66 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
67 org.python.python 0x0000000103158d93 call_function + 168
68 org.python.python 0x000000010315665b _PyEval_EvalFrameDefault + 45407
69 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
70 org.python.python 0x0000000103158d93 call_function + 168
71 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
72 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
73 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
74 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
75 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
76 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
77 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
78 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
79 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
80 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
81 org.python.python 0x0000000103158d93 call_function + 168
82 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
83 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
84 org.python.python 0x0000000103158d93 call_function + 168
85 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
86 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
87 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
88 org.python.python 0x0000000103158d93 call_function + 168
89 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
90 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
91 org.python.python 0x0000000103158d93 call_function + 168
92 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
93 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
94 org.python.python 0x0000000103158d93 call_function + 168
95 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
96 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
97 org.python.python 0x0000000103158d93 call_function + 168
98 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
99 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
100 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
101 org.python.python 0x0000000103063a4e method_vectorcall + 160
102 org.python.python 0x0000000103158d93 call_function + 168
103 org.python.python 0x0000000103156747 _PyEval_EvalFrameDefault + 45643
104 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
105 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
106 org.python.python 0x0000000103158d93 call_function + 168
107 org.python.python 0x0000000103156747 _PyEval_EvalFrameDefault + 45643
108 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
109 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
110 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
111 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
112 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
113 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
114 org.python.python 0x0000000103063a4e method_vectorcall + 160
115 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
116 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
117 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
118 org.python.python 0x0000000103158d93 call_function + 168
119 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
120 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
121 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
122 org.python.python 0x0000000103158d93 call_function + 168
123 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
124 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
125 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
126 org.python.python 0x0000000103158d93 call_function + 168
127 org.python.python 0x00000001031565be _PyEval_EvalFrameDefault + 45250
128 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
129 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
130 org.python.python 0x0000000103063a4e method_vectorcall + 160
131 org.python.python 0x0000000103060ab5 PyVectorcall_Call + 164
132 org.python.python 0x0000000103156893 _PyEval_EvalFrameDefault + 45975
133 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
134 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
135 org.python.python 0x000000010306055b _PyObject_FastCallDictTstate + 215
136 org.python.python 0x00000001030cd582 slot_tp_call + 187
137 org.python.python 0x00000001030602ae _PyObject_MakeTpCall + 129
138 org.python.python 0x0000000103158e01 call_function + 278
139 org.python.python 0x0000000103156747 _PyEval_EvalFrameDefault + 45643
140 org.python.python 0x0000000103060e14 _PyFunction_Vectorcall + 192
141 org.python.python 0x0000000103158d93 call_function + 168
142 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
143 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
144 org.python.python 0x00000001031450c0 builtin_exec + 389
145 org.python.python 0x00000001030ab59f cfunction_vectorcall_FASTCALL + 95
146 org.python.python 0x0000000103158d93 call_function + 168
147 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
148 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
149 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
150 org.python.python 0x0000000103158d93 call_function + 168
151 org.python.python 0x0000000103156697 _PyEval_EvalFrameDefault + 45467
152 org.python.python 0x000000010314a3b8 _PyEval_EvalCode + 403
153 org.python.python 0x0000000103060ecc _PyFunction_Vectorcall + 376
154 org.python.python 0x00000001031c9b82 pymain_run_module + 212
155 org.python.python 0x00000001031c964c pymain_run_python + 433
156 org.python.python 0x00000001031c945f Py_RunMain + 23
157 org.python.python 0x00000001031ca77c pymain_main + 35
158 org.python.python 0x00000001031caa52 Py_BytesMain + 42
159 libdyld.dylib 0x00007fff20367621 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000080 rcx: 0x00007ffeecc0c558 rdx: 0x0000000000000000
rdi: 0x0000000000000008 rsi: 0x0000000000000001 rbp: 0x00007ffeecc0c5a0 rsp: 0x00007ffeecc0c558
r8: 0x00007f7f0b349960 r9: 0x0000000000000080 r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x0000000000000008
rip: 0x00007fff20339792 rfl: 0x0000000000000246 cr2: 0x0000000105e18000

can anyone tell me what is the problem?

thanks in advance

Hey @ahmedfme,

This seems like a MacOS issue, and not an ERPNext one.

I found a couple of posts that you may want to look at for it.

Thanks, but unfortunately , i tried but still have the same problem

Hi Rohan,
thanks for your support, unfortunately nothing helped.

after searching solution is put the following in environment
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

1 Like

This works!!
Thanks