MetaGPT
MetaGPT copied to clipboard
macos 11.6, python3.9 运行不了metagpt的例子
我想先确认下,使用macos真的需要13.x的版本吗?我看到文档上要求是13.x的版本。
下面是我在我11.6系统终端的运行,都是这个报错:
2023-11-27 22:23:15.379 | INFO | metagpt.const:get_project_root:21 - PROJECT_ROOT set to /Users/huk/Documents/python/metagpt/metagpt
2023-11-27 22:23:15.490 | INFO | metagpt.config:__init__:44 - Config loading done.
[1] 5547 segmentation fault python3 startup.py --idea "write a cli blackjack game"
于是,我打开了万年不用的Pycharm开始调试,还是崩溃,问了gpt,认为我的protobuf库与arrow库冲突,使用pip3重装了,还是不行,以下是奔溃内容,:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_pthread.dylib 0x0000000185221d9c pthread_mutex_lock + 0
1 libc++.1.dylib 0x00000001851b4af4 std::__1::mutex::lock() + 16
2 libarrow.1400.dylib 0x0000000153fab2d0 google::protobuf::internal::OnShutdownRun(void (*)(void const*), void const*) + 72
3 libarrow.1400.dylib 0x0000000153fa2820 google::protobuf::internal::InitProtobufDefaultsSlow() + 84
4 libarrow.1400.dylib 0x000000015403bc48 google::protobuf::(anonymous namespace)::AddDescriptors(google::protobuf::internal::DescriptorTable const*) + 128
5 libarrow.1400.dylib 0x000000015403bc8c google::protobuf::internal::AddDescriptorsRunner::AddDescriptorsRunner(google::protobuf::internal::DescriptorTable const*) + 24
6 dyld 0x0000000100ee0b54 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 468
7 dyld 0x0000000100ee0f6c ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 56
8 dyld 0x0000000100eda8a4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 620
9 dyld 0x0000000100eda7ec ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 436
10 dyld 0x0000000100eda7ec ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 436
11 dyld 0x0000000100eda7ec ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 436
12 dyld 0x0000000100eda7ec ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 436
13 dyld 0x0000000100ed8260 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 192
14 dyld 0x0000000100ed832c ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 96
15 dyld 0x0000000100ec6fa4 dyld::runInitializers(ImageLoader*) + 92
16 dyld 0x0000000100ed31e4 dlopen_internal + 660
17 libdyld.dylib 0x0000000185248a48 dlopen_internal(char const*, int, void*) + 300
18 org.python.python 0x000000010113ad64 _PyImport_FindSharedFuncptr + 304
19 org.python.python 0x000000010110a980 _PyImport_LoadDynamicModuleWithSpec + 464
20 org.python.python 0x000000010110a25c _imp_create_dynamic + 404
21 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
22 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
23 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
24 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
25 org.python.python 0x00000001010e2ac8 call_function + 416
26 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
27 org.python.python 0x000000010100cf5c function_code_fastcall + 112
28 org.python.python 0x00000001010e2ac8 call_function + 416
29 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
30 org.python.python 0x000000010100cf5c function_code_fastcall + 112
31 org.python.python 0x00000001010e2ac8 call_function + 416
32 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
33 org.python.python 0x000000010100cf5c function_code_fastcall + 112
34 org.python.python 0x00000001010e2ac8 call_function + 416
35 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
36 org.python.python 0x000000010100cf5c function_code_fastcall + 112
37 org.python.python 0x00000001010e2ac8 call_function + 416
38 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
39 org.python.python 0x000000010100cf5c function_code_fastcall + 112
40 org.python.python 0x000000010100dee4 object_vacall + 256
41 org.python.python 0x000000010100e080 _PyObject_CallMethodIdObjArgs + 112
42 org.python.python 0x0000000101108fec PyImport_ImportModuleLevelObject + 1300
43 org.python.python 0x00000001010dede4 _PyEval_EvalFrameDefault + 18112
44 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
45 org.python.python 0x00000001010da65c PyEval_EvalCode + 80
46 org.python.python 0x00000001010d7404 builtin_exec + 672
47 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
48 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
49 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
50 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
51 org.python.python 0x00000001010e2ac8 call_function + 416
52 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
53 org.python.python 0x000000010100cf5c function_code_fastcall + 112
54 org.python.python 0x00000001010e2ac8 call_function + 416
55 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
56 org.python.python 0x000000010100cf5c function_code_fastcall + 112
57 org.python.python 0x00000001010e2ac8 call_function + 416
58 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
59 org.python.python 0x000000010100cf5c function_code_fastcall + 112
60 org.python.python 0x00000001010e2ac8 call_function + 416
61 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
62 org.python.python 0x000000010100cf5c function_code_fastcall + 112
63 org.python.python 0x000000010100dee4 object_vacall + 256
64 org.python.python 0x000000010100e080 _PyObject_CallMethodIdObjArgs + 112
65 org.python.python 0x0000000101108fec PyImport_ImportModuleLevelObject + 1300
66 org.python.python 0x00000001010dede4 _PyEval_EvalFrameDefault + 18112
67 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
68 org.python.python 0x00000001010da65c PyEval_EvalCode + 80
69 org.python.python 0x00000001010d7404 builtin_exec + 672
70 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
71 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
72 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
73 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
74 org.python.python 0x00000001010e2ac8 call_function + 416
75 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
76 org.python.python 0x000000010100cf5c function_code_fastcall + 112
77 org.python.python 0x00000001010e2ac8 call_function + 416
78 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
79 org.python.python 0x000000010100cf5c function_code_fastcall + 112
80 org.python.python 0x00000001010e2ac8 call_function + 416
81 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
82 org.python.python 0x000000010100cf5c function_code_fastcall + 112
83 org.python.python 0x00000001010e2ac8 call_function + 416
84 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
85 org.python.python 0x000000010100cf5c function_code_fastcall + 112
86 org.python.python 0x000000010100dee4 object_vacall + 256
87 org.python.python 0x000000010100e080 _PyObject_CallMethodIdObjArgs + 112
88 org.python.python 0x0000000101108fec PyImport_ImportModuleLevelObject + 1300
89 org.python.python 0x00000001010dede4 _PyEval_EvalFrameDefault + 18112
90 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
91 org.python.python 0x00000001010da65c PyEval_EvalCode + 80
92 org.python.python 0x00000001010d7404 builtin_exec + 672
93 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
94 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
95 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
96 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
97 org.python.python 0x00000001010e2ac8 call_function + 416
98 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
99 org.python.python 0x000000010100cf5c function_code_fastcall + 112
100 org.python.python 0x00000001010e2ac8 call_function + 416
101 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
102 org.python.python 0x000000010100cf5c function_code_fastcall + 112
103 org.python.python 0x00000001010e2ac8 call_function + 416
104 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
105 org.python.python 0x000000010100cf5c function_code_fastcall + 112
106 org.python.python 0x00000001010e2ac8 call_function + 416
107 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
108 org.python.python 0x000000010100cf5c function_code_fastcall + 112
109 org.python.python 0x000000010100dee4 object_vacall + 256
110 org.python.python 0x000000010100e080 _PyObject_CallMethodIdObjArgs + 112
111 org.python.python 0x0000000101108fec PyImport_ImportModuleLevelObject + 1300
112 org.python.python 0x00000001010dede4 _PyEval_EvalFrameDefault + 18112
113 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
114 org.python.python 0x00000001010da65c PyEval_EvalCode + 80
115 org.python.python 0x00000001010d7404 builtin_exec + 672
116 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
117 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
118 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
119 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
120 org.python.python 0x00000001010e2ac8 call_function + 416
121 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
122 org.python.python 0x000000010100cf5c function_code_fastcall + 112
123 org.python.python 0x00000001010e2ac8 call_function + 416
124 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
125 org.python.python 0x000000010100cf5c function_code_fastcall + 112
126 org.python.python 0x00000001010e2ac8 call_function + 416
127 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
128 org.python.python 0x000000010100cf5c function_code_fastcall + 112
129 org.python.python 0x00000001010e2ac8 call_function + 416
130 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
131 org.python.python 0x000000010100cf5c function_code_fastcall + 112
132 org.python.python 0x000000010100dee4 object_vacall + 256
133 org.python.python 0x000000010100e080 _PyObject_CallMethodIdObjArgs + 112
134 org.python.python 0x0000000101108fec PyImport_ImportModuleLevelObject + 1300
135 org.python.python 0x00000001010dede4 _PyEval_EvalFrameDefault + 18112
136 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
137 org.python.python 0x00000001010da65c PyEval_EvalCode + 80
138 org.python.python 0x00000001010d7404 builtin_exec + 672
139 org.python.python 0x000000010104e8ec cfunction_vectorcall_FASTCALL + 232
140 org.python.python 0x00000001010e046c _PyEval_EvalFrameDefault + 23880
141 org.python.python 0x00000001010e39f0 _PyEval_EvalCode + 2988
142 org.python.python 0x000000010100cee0 _PyFunction_Vectorcall + 256
143 org.python.python 0x00000001010e2ac8 call_function + 416
144 org.python.python 0x00000001010e0168 _PyEval_EvalFrameDefault + 23108
145 org.python.python 0x000000010100cf5c function_code_fastcall + 112
146 org.python.python 0x00000001010e2ac8 call_function + 416
147 org.python.python 0x00000001010e0144 _PyEval_EvalFrameDefault + 23072
148 org.python.python 0x000000010100cf5c function_code_fastcall + 112
149 org.python.python 0x00000001010e2ac8 call_function + 416
150 org.python.python 0x00000001010e01e4 _PyEval_EvalFrameDefault + 23232
151 org.python.python 0x000000010100cf5c function_code_fastcall + 112
Binary Images:
0x100b28000 - 0x100b2bfff +org.python.python (3.9.12 - 3.9.12) <4B6FE7E8-B54A-3E48-8B54-3DD86DC6A57D> /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
0x100d48000 - 0x100d4bfff +_heapq.cpython-39-darwin.so (0) <6F1CA85B-D6A3-3033-9CFD-B2F169CB132E> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_heapq.cpython-39-darwin.so
0x100e9c000 - 0x100e9ffff +_opcode.cpython-39-darwin.so (0) <F293D262-314E-38A4-A1CA-5A09FB19EF12> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_opcode.cpython-39-darwin.so
0x100eb0000 - 0x100eb3fff +_websocket.cpython-39-darwin.so (0) <4DC38226-57DD-3B6B-AFAB-0A233E591124> /Users/USER/Documents/*/_websocket.cpython-39-darwin.so
0x100ec0000 - 0x100f3ffff dyld (852.2) <38657979-1ABE-3C9A-BF64-EF3B746216AB> /usr/lib/dyld
0x100fc8000 - 0x101237fff +org.python.python (3.9.12, [c] 2001-2021 Python Software Foundation. - 3.9.12) <2863E5C2-E717-39CA-8FCB-C5474FEDB080> /Library/Frameworks/Python.framework/Versions/3.9/Python
0x101440000 - 0x101443fff +grp.cpython-39-darwin.so (0) <55F81875-E773-3DE3-A4E8-321FB5F79BCC> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/grp.cpython-39-darwin.so
0x101454000 - 0x101457fff +_posixsubprocess.cpython-39-darwin.so (0) <077E9873-DC98-398E-B5F3-A03EEC36A0A8> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_posixsubprocess.cpython-39-darwin.so
0x101468000 - 0x10146ffff +select.cpython-39-darwin.so (0) <E11653B6-DB65-3FF0-8A95-9E1C91E094E2> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/select.cpython-39-darwin.so
0x101480000 - 0x10148bfff +math.cpython-39-darwin.so (0) <0B20DAEB-E2BE-3DB3-BA7F-0F387163D650> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/math.cpython-39-darwin.so
0x1014a0000 - 0x1014affff +_socket.cpython-39-darwin.so (0) <EDD21A2F-6FA1-3A12-B6C6-042498994524> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_socket.cpython-39-darwin.so
0x1014c4000 - 0x1014cbfff +array.cpython-39-darwin.so (0) <AD2E5E60-3B66-3039-A446-A22143461067> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/array.cpython-39-darwin.so
0x101520000 - 0x101523fff +_queue.cpython-39-darwin.so (0) <47E340FE-D31B-3821-A01E-DE7E29D73817> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_queue.cpython-39-darwin.so
0x101534000 - 0x10153bfff +_struct.cpython-39-darwin.so (0) <2D822186-B764-3801-A416-3593636CD2FF> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_struct.cpython-39-darwin.so
0x101550000 - 0x101557fff +binascii.cpython-39-darwin.so (0) <48BC062C-B316-374C-AB1B-4259E9FEE1AA> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/binascii.cpython-39-darwin.so
0x1015a8000 - 0x1015bbfff +_datetime.cpython-39-darwin.so (0) <8DC29825-BCD6-341D-80B4-C347CBF612A8> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_datetime.cpython-39-darwin.so
0x1015d4000 - 0x101613fff +_decimal.cpython-39-darwin.so (0) <8D96245F-F179-3553-BB23-FAAFB80F2E31> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_decimal.cpython-39-darwin.so
0x1016b8000 - 0x1016bbfff +_bisect.cpython-39-darwin.so (0) <8F9CF38B-D8E4-3792-ADE4-BA2D47EE16A0> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_bisect.cpython-39-darwin.so
不一定要macOS 13.x,使用虚拟环境安装的依赖吗,或者试试docker
试试最新的版本?