Open IgorGanapolsky opened 1 month ago
can you run pip show colorama
I was having a similar issue on my Windows PC trying to run the same command and it was giving me the following error:
The term 'fastapi' is not recognized as the name of a cmdlet, function, script file, or operable program.
The following stackoverflow post helped me out: https://stackoverflow.com/questions/64936440/python-uvicorn-the-term-uvicorn-is-not-recognized-as-the-name-of-a-cmdlet-f
I would recommend running the virtualenv
command first and then try the fastapi dev server.py
This is referenced in a similar fashion here: https://stackoverflow.com/a/67068837
Process: Python [1080] Path: /Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.12.3 (3.12.3) Code Type: X86-64 (Native) Parent Process: zsh [641] Responsible: Terminal [639] User ID: 501
Date/Time: 2024-05-30 16:36:31.835 +0800 OS Version: macOS 11.7.10 (20G1427) Report Version: 12 Anonymous UUID: 1AF54A21-FE12-BE5D-5DB0-9AF75E84717A
Time Awake Since Boot: 560 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [1080]
Application Specific Information: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pyarrow/libarrow.1601.dylib
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libarrow.1601.dylib 0x0000000121bb385e malloc_conf_init_helper + 302 1 libarrow.1601.dylib 0x0000000121bb3207 malloc_init_hard_a0_locked + 135 2 libarrow.1601.dylib 0x0000000121bb6c1f malloc_init_hard + 159 3 dyld 0x000000011cf3ab47 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 535 4 dyld 0x000000011cf3af52 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 40 5 dyld 0x000000011cf35ae6 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 492 6 dyld 0x000000011cf35a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343 7 dyld 0x000000011cf35a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343 8 dyld 0x000000011cf35a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343 9 dyld 0x000000011cf35a51 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 343 10 dyld 0x000000011cf3389f ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 191 11 dyld 0x000000011cf33940 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 82 12 dyld 0x000000011cf23a12 dyld::runInitializers(ImageLoader) + 82 13 dyld 0x000000011cf2f11a dlopen_internal + 616 14 libdyld.dylib 0x00007fff204b4c94 dlopen_internal(char const, int, void) + 185 15 libdyld.dylib 0x00007fff204a307e dlopen + 28 16 org.python.python 0x000000010f674ceb _PyImport_FindSharedFuncptr + 139 17 org.python.python 0x000000010f615b75 _PyImport_LoadDynamicModuleWithSpec + 549 18 org.python.python 0x000000010f614c29 _imp_create_dynamic + 265 19 org.python.python 0x000000010f4e2efa cfunction_vectorcall_FASTCALL + 106 20 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 21 org.python.python 0x000000010f4753ca object_vacall + 426 22 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 23 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 24 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 25 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 26 org.python.python 0x000000010f5b50bf builtin_exec + 527 27 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 28 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 29 org.python.python 0x000000010f4753ca object_vacall + 426 30 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 31 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 32 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 33 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 34 org.python.python 0x000000010f5b50bf builtin_exec + 527 35 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 36 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 37 org.python.python 0x000000010f4753ca object_vacall + 426 38 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 39 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 40 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 41 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 42 org.python.python 0x000000010f5b50bf builtin_exec + 527 43 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 44 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 45 org.python.python 0x000000010f4753ca object_vacall + 426 46 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 47 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 48 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 49 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 50 org.python.python 0x000000010f5b50bf builtin_exec + 527 51 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 52 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 53 org.python.python 0x000000010f4753ca object_vacall + 426 54 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 55 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 56 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 57 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 58 org.python.python 0x000000010f5b50bf builtin_exec + 527 59 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 60 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 61 org.python.python 0x000000010f4753ca object_vacall + 426 62 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 63 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 64 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 65 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 66 org.python.python 0x000000010f5b50bf builtin_exec + 527 67 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 68 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 69 org.python.python 0x000000010f4753ca object_vacall + 426 70 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 71 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 72 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 73 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 74 org.python.python 0x000000010f5b50bf builtin_exec + 527 75 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 76 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 77 org.python.python 0x000000010f4753ca object_vacall + 426 78 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 79 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 80 org.python.python 0x000000010f5b3504 builtin_import__ + 196 81 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 82 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 83 org.python.python 0x000000010f4753ca object_vacall + 426 84 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 85 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 86 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 87 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 88 org.python.python 0x000000010f5b50bf builtin_exec + 527 89 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 90 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 91 org.python.python 0x000000010f4753ca object_vacall + 426 92 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 93 org.python.python 0x000000010f6114f1 PyImportImportModuleLevelObject + 1329 94 org.python.python 0x000000010f5b3504 builtinimport + 196 95 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 96 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 97 org.python.python 0x000000010f4753ca object_vacall + 426 98 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 99 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 100 org.python.python 0x000000010f5b3504 builtin_import + 196 101 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 102 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 103 org.python.python 0x000000010f4753ca object_vacall + 426 104 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 105 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 106 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 107 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 108 org.python.python 0x000000010f5b50bf builtin_exec + 527 109 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 110 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 111 org.python.python 0x000000010f4753ca object_vacall + 426 112 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 113 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 114 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 115 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 116 org.python.python 0x000000010f5b50bf builtin_exec + 527 117 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 118 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 119 org.python.python 0x000000010f4753ca object_vacall + 426 120 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 121 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 122 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 123 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 124 org.python.python 0x000000010f5b50bf builtin_exec + 527 125 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 126 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 127 org.python.python 0x000000010f4753ca object_vacall + 426 128 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 129 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 130 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 131 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 132 org.python.python 0x000000010f5b50bf builtin_exec + 527 133 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 134 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 135 org.python.python 0x000000010f4753ca object_vacall + 426 136 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 137 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 138 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 139 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 140 org.python.python 0x000000010f5b50bf builtin_exec + 527 141 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 142 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 143 org.python.python 0x000000010f4753ca object_vacall + 426 144 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 145 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 146 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 147 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 148 org.python.python 0x000000010f5b50bf builtin_exec + 527 149 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 150 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 151 org.python.python 0x000000010f4753ca object_vacall + 426 152 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 153 org.python.python 0x000000010f6114f1 PyImportImportModuleLevelObject + 1329 154 org.python.python 0x000000010f5b3504 builtinimport__ + 196 155 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 156 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 157 org.python.python 0x000000010f4753ca object_vacall + 426 158 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 159 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 160 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 161 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 162 org.python.python 0x000000010f5b50bf builtin_exec + 527 163 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 164 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 165 org.python.python 0x000000010f4753ca object_vacall + 426 166 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 167 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 168 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 169 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 170 org.python.python 0x000000010f5b50bf builtin_exec + 527 171 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 172 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 173 org.python.python 0x000000010f4753ca object_vacall + 426 174 org.python.python 0x000000010f4751ca PyObject_CallMethodObjArgs + 234 175 org.python.python 0x000000010f6114f1 PyImport_ImportModuleLevelObject + 1329 176 org.python.python 0x000000010f5c3d55 _PyEval_EvalFrameDefault + 41013 177 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 178 org.python.python 0x000000010f5b50bf builtin_exec + 527 179 org.python.python 0x000000010f4e2fe2 cfunction_vectorcall_FASTCALL_KEYWORDS + 98 180 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 181 org.python.python 0x000000010f476683 method_vectorcall + 371 182 org.python.python 0x000000010f473023 _PyObject_Call + 259 183 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 184 org.python.python 0x000000010f4766e2 method_vectorcall + 466 185 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 186 org.python.python 0x000000010f471d2f _PyObject_FastCallDictTstate + 95 187 org.python.python 0x000000010f510cc7 slot_tp_call + 199 188 org.python.python 0x000000010f472faf _PyObject_Call + 143 189 org.python.python 0x000000010f5ca160 _PyEval_EvalFrameDefault + 66624 190 org.python.python 0x000000010f471d2f _PyObject_FastCallDictTstate + 95 191 org.python.python 0x000000010f510cc7 slot_tp_call + 199 192 org.python.python 0x000000010f471fa8 _PyObject_MakeTpCall + 136 193 org.python.python 0x000000010f5c7ce3 _PyEval_EvalFrameDefault + 57283 194 org.python.python 0x000000010f5b9a35 PyEval_EvalCode + 309 195 org.python.python 0x000000010f647f5e run_mod + 158 196 org.python.python 0x000000010f647027 pyrun_file + 151 197 org.python.python 0x000000010f646030 _PyRun_SimpleFileObject + 304 198 org.python.python 0x000000010f645c70 _PyRun_AnyFileObject + 160 199 org.python.python 0x000000010f676032 pymain_run_file_obj + 226 200 org.python.python 0x000000010f675da9 pymain_run_file + 89 201 org.python.python 0x000000010f6754ef Py_RunMain + 1679 202 org.python.python 0x000000010f6756c3 pymain_main + 35 203 org.python.python 0x000000010f67589a Py_BytesMain + 42 204 libdyld.dylib 0x00007fff204b2f3d start + 1
Thread 1: 0 libsystem_pthread.dylib 0x00007fff20493420 start_wqthread + 0
Thread 2: 0 libsystem_pthread.dylib 0x00007fff20493420 start_wqthread + 0
Thread 3: 0 libsystem_kernel.dylib 0x00007fff20464cbe __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff20497e49 _pthread_condwait + 1298 2 libopenblas64.0.dylib 0x00000001152332df blas_thread_server + 207 3 libsystem_pthread.dylib 0x00007fff204978fc _pthread_start + 224 4 libsystem_pthread.dylib 0x00007fff20493443 thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007ffee081d9c0 rbx: 0x01000007feedfacf rcx: 0x0000000121bb63c0 rdx: 0x0000000000000103 rdi: 0x00007fff807c62b8 rsi: 0x0000000000000103 rbp: 0x00007ffee081bb60 rsp: 0x00007ffee081bac0 r8: 0x0000000000000014 r9: 0x0000000000000014 r10: 0x00007f8c625befb8 r11: 0x000000000000025f r12: 0x0000000121bb63d4 r13: 0x0000000000000004 r14: 0x00007ffee081d5b0 r15: 0x00000001222a042d rip: 0x0000000121bb385e rfl: 0x0000000000010206 cr2: 0x000000012233405d
Logical CPU: 0 Error Code: 0x00000000 Trap Number: 13
Thread 0 instruction stream: 3a 00 8b 18 ba 00 04 00-00 48 8d 3d 4f 08 78 00 :........H.=O.x. 4c 89 f6 e8 66 ca 3a 00-48 83 f8 ff 75 09 e8 f7 L...f.:.H...u... c4 3a 00 89 18 31 c0 41-c6 04 06 00 4c 89 f3 eb .:...1.A....L... 1b e8 b4 c7 3a 00 85 c0-0f 84 4e 2b 00 00 31 db ....:.....N+..1. eb 0a 48 8b 05 99 81 7e-00 48 8b 18 48 8b 85 70 ..H....~.H..H..p ff ff ff 4a 89 1c e8 48-85 db 0f 84 12 ff ff ff ...J...H........ [0f]b6 03 84 c0 0f 84 05-2b 00 00 48 89 d9 48 83 ........+..H..H. <== c3 02 49 89 cf 0f be c0-83 f8 7a 0f 87 dc 2a 00 ..I.......z.... 00 90 49 63 04 84 4c 01-e0 ff e0 41 0f b6 47 01 ..Ic..L....A..G. 49 ff c7 48 ff c3 0f be-c0 83 f8 7a 76 e4 e9 ba I..H.......zv... 2a 00 00 66 66 66 66 66-66 2e 0f 1f 84 00 00 00 ..ffffff....... 00 00 49 8d 47 01 48 89-45 c0 48 89 c8 48 f7 d0 ..I.G.H.E.H..H..
Thread 0 last branch register state not available.
Binary Images:
0x10f3d4000 - 0x10f3d7fff +org.python.python (3.12.3 - 3.12.3) <8B129D8B-D923-34CD-8EB7-2B0AAEF93D54> /Library/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
0x10f3e7000 - 0x10f7f6fff +org.python.python (3.12.3, [c] 2001-2023 Python Software Foundation. - 3.12.3) <2FCDBD59-93E6-3597-8F58-C9737273F5C1> /Library/Frameworks/Python.framework/Versions/3.12/Python
0x10feba000 - 0x10fec5fff +math.cpython-312-darwin.so (0) <9D32F284-EE13-3A0A-BBFD-58EC6BA98152> /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/math.cpython-312-darwin.so
0x10ffd6000 - 0x10ffddfff +zlib.cpython-312-darwin.so (0)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=842.3M resident=0K(0%) swapped_out_or_unallocated=842.3M(100%) Writable regions: Total=217.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=217.6M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 Dispatch continuations 32.0M 1 Kernel Alloc Once 8K 1 MALLOC 56.3M 57 MALLOC guard page 16K 4 MALLOC_LARGE (reserved) 256K 2 reserved VM address space (unallocated) STACK GUARD 16K 4 Stack 17.5M 4 VM_ALLOCATE 108.0M 50 DATA 17.4M 333 DATA_CONST 12.0M 156 DATA_DIRTY 504K 87 __FONT_DATA 4K 1 LINKEDIT 530.8M 128 OBJC_RO 70.3M 1 __OBJC_RW 2496K 2 TEXT 311.9M 332 __UNICODE 588K 1 mapped file 36K 1 shared memory 40K 4 =========== ======= ======= TOTAL 1.1G 1170 TOTAL, minus reserved VM space 1.1G 1170
Model: MacBook8,1, BootROM 481.0.0.0.0, 2 processors, Dual-Core Intel Core M, 1.1 GHz, 8 GB, SMC 2.25f87 Graphics: kHW_IntelHD5300Item, Intel HD Graphics 5300, spdisplays_builtin Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x4544464231363441314D412D47442D462020 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x4544464231363441314D412D47442D462020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x131), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1680.11) Bluetooth: Version 8.0.5d7, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.0 Bus Thunderbolt Bus:
What is this error?
Hi
I got the same issue here.
I guess it is because I have installed fastapi
server after running pip install -r requirements.txt
So I have run :
pip install --force -r requirements.txt
And it works.
pip install --force -r requirements.txt
@StanThall
Thanks! I excuted that command,but the probolem is the same.
@picografix Here is my colorama stats:
Name: colorama Version: 0.4.6 Summary: Cross-platform colored terminal text. Home-page: Author: Author-email: Jonathan Hartley tartley@tartley.com License: Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages Requires: Required-by: azure-ai-ml, promptflow-devkit
@wollintb Why such a long stacktrace for us?
@wollintb Why such a long stacktrace for us?
@picografix Here is my colorama stats:
Name: colorama Version: 0.4.6 Summary: Cross-platform colored terminal text. Home-page: Author: Author-email: Jonathan Hartley tartley@tartley.com License: Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages Requires: Required-by: azure-ai-ml, promptflow-devkit
It should not happen technically, colorama is installed correctly, you can try using a virtual env or conda env ?
I was having a similar issue on my Windows PC trying to run the same command and it was giving me the following error:
The term 'fastapi' is not recognized as the name of a cmdlet, function, script file, or operable program.
The following stackoverflow post helped me out: https://stackoverflow.com/questions/64936440/python-uvicorn-the-term-uvicorn-is-not-recognized-as-the-name-of-a-cmdlet-f
I would recommend running the
virtualenv
command first and then try thefastapi dev server.py
This is referenced in a similar fashion here: https://stackoverflow.com/a/67068837
When virtuelenv command? I installed virtuelenv and I type the command to create it but it doesn't recognize it
@Lowievhb I had to install fastapi in post via pip install --upgrade fastapi
. Remember to have your venv activated.
Hello, I followed your instructions on my Mac. When I run the command
I get this error: ModuleNotFoundError: No module named 'colorama'
But I already installed the pip package. Can you help me why this is happening?