生活是苦难的,我又划着我的断桨出发了。——博尔赫斯

大致如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
Last login: Tue Nov 26 16:55:06 on ttys007

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) GithubIireAchao:blog achao$ which python
/opt/homebrew/Caskroom/miniconda/base/bin/python
(base) GithubIireAchao:blog achao$ sudo memos init
Password:
Database initialized successfully at /Users/achao/.memos/database.db
Initialization completed successfully.
(base) GithubIireAchao:blog achao$ sudo memos enable
Generated launch script at None
Generated plist file at /Users/achao/Library/LaunchAgents/com.user.memos.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootout` is a recommended alternative.
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Loaded plist file. Memos is started and will run at next startup or when 'start' command is used.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Not Running - - -
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:04:03
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Not Running - - -
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:04:10
(base) GithubIireAchao:blog achao$ sudo memos start serve
Usage: memos start [OPTIONS]
Try 'memos start -h' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Got unexpected extra argument (serve) │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
(base) GithubIireAchao:blog achao$ sudo memos start -h

Usage: memos start [OPTIONS]

Start all Memos processes

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Not Running - - -
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:06:08
(base) GithubIireAchao:blog achao$ tail -f /Users/achao/.memos/logs/memos.log
tail -f /Users/achao/.memos/logs/memos.err
^C^C
(base) GithubIireAchao:blog achao$ cat /Users/achao/.memos/logs/memos.log
(base) GithubIireAchao:blog achao$ cat /Users/achao/.memos/logs/memos.log
(base) GithubIireAchao:blog achao$ cat /Users/achao/.memos/logs/memos.err
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
/opt/homebrew/Caskroom/miniconda/base/envs/memos-env/bin/python: Error while finding module specification for 'memos.commands' (ModuleNotFoundError: No module named 'memos')
(base) GithubIireAchao:blog achao$ pip show memos
WARNING: Package(s) not found: memos
(base) GithubIireAchao:blog achao$ pip install memos
Looking in indexes: https://pypi.org/simple, https://packagecloud.io/github/git-lfs/pypi/simple
Collecting memos
Using cached memos-0.21.3-py3-none-any.whl.metadata (26 kB)
Collecting fastapi (from memos)
Using cached fastapi-0.115.5-py3-none-any.whl.metadata (27 kB)
Collecting uvicorn (from memos)
Using cached uvicorn-0.32.1-py3-none-any.whl.metadata (6.6 kB)
Collecting httpx (from memos)
Using cached httpx-0.27.2-py3-none-any.whl.metadata (7.1 kB)
Collecting pydantic>=2.0 (from memos)
Using cached pydantic-2.10.2-py3-none-any.whl.metadata (170 kB)
Collecting sqlalchemy>=2.0 (from memos)
Downloading SQLAlchemy-2.0.36-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.7 kB)
Collecting typer>=0.13 (from memos)
Using cached typer-0.13.1-py3-none-any.whl.metadata (15 kB)
Collecting magika (from memos)
Using cached magika-0.5.1-py3-none-any.whl.metadata (5.1 kB)
Collecting pydantic-settings>=2.6 (from memos)
Using cached pydantic_settings-2.6.1-py3-none-any.whl.metadata (3.5 kB)
Collecting opencv-python (from memos)
Using cached opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl.metadata (20 kB)
Collecting pillow (from memos)
Downloading pillow-11.0.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.1 kB)
Collecting piexif (from memos)
Using cached piexif-1.1.3-py2.py3-none-any.whl.metadata (3.7 kB)
Collecting imagehash (from memos)
Using cached ImageHash-4.3.1-py2.py3-none-any.whl.metadata (8.0 kB)
Collecting rapidocr_onnxruntime (from memos)
Using cached rapidocr_onnxruntime-1.4.0-py3-none-any.whl.metadata (1.3 kB)
Collecting py-cpuinfo (from memos)
Using cached py_cpuinfo-9.0.0-py3-none-any.whl.metadata (794 bytes)
Collecting psutil (from memos)
Using cached psutil-6.1.0-cp36-abi3-macosx_11_0_arm64.whl.metadata (22 kB)
Collecting pyobjc-core (from memos)
Downloading pyobjc_core-10.3.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (2.5 kB)
Collecting pyobjc-framework-Quartz (from memos)
Downloading pyobjc_framework_Quartz-10.3.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.3 kB)
Collecting ocrmac (from memos)
Using cached ocrmac-1.0.0-py2.py3-none-any.whl.metadata (6.1 kB)
Collecting sentence-transformers (from memos)
Using cached sentence_transformers-3.3.1-py3-none-any.whl.metadata (10 kB)
Collecting torch (from memos)
Downloading torch-2.5.1-cp312-none-macosx_11_0_arm64.whl.metadata (28 kB)
Collecting numpy (from memos)
Downloading numpy-2.1.3-cp312-cp312-macosx_14_0_arm64.whl.metadata (62 kB)
Collecting timm (from memos)
Using cached timm-1.0.11-py3-none-any.whl.metadata (48 kB)
Collecting einops (from memos)
Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting modelscope (from memos)
Using cached modelscope-1.20.1-py3-none-any.whl.metadata (40 kB)
Collecting mss (from memos)
Using cached mss-10.0.0-py3-none-any.whl.metadata (6.1 kB)
Collecting sqlite_vec (from memos)
Using cached sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl.metadata (198 bytes)
Collecting watchdog (from memos)
Downloading watchdog-6.0.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (44 kB)
Collecting annotated-types>=0.6.0 (from pydantic>=2.0->memos)
Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.27.1 (from pydantic>=2.0->memos)
Downloading pydantic_core-2.27.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.12.2 (from pydantic>=2.0->memos)
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting python-dotenv>=0.21.0 (from pydantic-settings>=2.6->memos)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting click>=8.0.0 (from typer>=0.13->memos)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting shellingham>=1.3.0 (from typer>=0.13->memos)
Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting rich>=10.11.0 (from typer>=0.13->memos)
Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Collecting starlette<0.42.0,>=0.40.0 (from fastapi->memos)
Using cached starlette-0.41.3-py3-none-any.whl.metadata (6.0 kB)
Collecting anyio (from httpx->memos)
Using cached anyio-4.6.2.post1-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: certifi in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (2024.8.30)
Collecting httpcore==1.* (from httpx->memos)
Using cached httpcore-1.0.7-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: idna in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (3.7)
Collecting sniffio (from httpx->memos)
Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx->memos)
Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting PyWavelets (from imagehash->memos)
Downloading pywavelets-1.7.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.0 kB)
Collecting scipy (from imagehash->memos)
Downloading scipy-1.14.1-cp312-cp312-macosx_14_0_arm64.whl.metadata (60 kB)
Collecting numpy (from memos)
Downloading numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB)
Collecting onnxruntime<2.0.0,>=1.17.0 (from magika->memos)
Downloading onnxruntime-1.20.1-cp312-cp312-macosx_13_0_universal2.whl.metadata (4.5 kB)
Collecting tabulate<0.10.0,>=0.9.0 (from magika->memos)
Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: tqdm<5.0.0,>=4.66.2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from magika->memos) (4.66.5)
Requirement already satisfied: requests>=2.25 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from modelscope->memos) (2.32.3)
Requirement already satisfied: urllib3>=1.26 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from modelscope->memos) (2.2.3)
Collecting pyobjc-framework-Vision (from ocrmac->memos)
Using cached pyobjc_framework_Vision-10.3.1-cp36-abi3-macosx_11_0_universal2.whl.metadata (2.3 kB)
Collecting pyobjc-framework-Cocoa>=10.3.1 (from pyobjc-framework-Quartz->memos)
Downloading pyobjc_framework_Cocoa-10.3.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (2.3 kB)
Collecting pyclipper>=1.2.0 (from rapidocr_onnxruntime->memos)
Downloading pyclipper-1.3.0.post6-cp312-cp312-macosx_10_13_universal2.whl.metadata (9.0 kB)
Collecting six>=1.15.0 (from rapidocr_onnxruntime->memos)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting Shapely!=2.0.4,>=1.7.1 (from rapidocr_onnxruntime->memos)
Downloading shapely-2.0.6-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.0 kB)
Collecting PyYAML (from rapidocr_onnxruntime->memos)
Downloading PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting transformers<5.0.0,>=4.41.0 (from sentence-transformers->memos)
Using cached transformers-4.46.3-py3-none-any.whl.metadata (44 kB)
Collecting scikit-learn (from sentence-transformers->memos)
Downloading scikit_learn-1.5.2-cp312-cp312-macosx_12_0_arm64.whl.metadata (13 kB)
Collecting huggingface-hub>=0.20.0 (from sentence-transformers->memos)
Using cached huggingface_hub-0.26.2-py3-none-any.whl.metadata (13 kB)
Collecting filelock (from torch->memos)
Using cached filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting networkx (from torch->memos)
Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch->memos)
Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch->memos)
Using cached fsspec-2024.10.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: setuptools in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (75.1.0)
Collecting sympy==1.13.1 (from torch->memos)
Using cached sympy-1.13.1-py3-none-any.whl.metadata (12 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy==1.13.1->torch->memos)
Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting torchvision (from timm->memos)
Downloading torchvision-0.20.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.1 kB)
Collecting safetensors (from timm->memos)
Downloading safetensors-0.4.5-cp312-cp312-macosx_11_0_arm64.whl.metadata (3.8 kB)
Requirement already satisfied: packaging>=20.9 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from huggingface-hub>=0.20.0->sentence-transformers->memos) (24.1)
Collecting coloredlogs (from onnxruntime<2.0.0,>=1.17.0->magika->memos)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting flatbuffers (from onnxruntime<2.0.0,>=1.17.0->magika->memos)
Using cached flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)
Collecting protobuf (from onnxruntime<2.0.0,>=1.17.0->magika->memos)
Using cached protobuf-5.29.0-cp38-abi3-macosx_10_9_universal2.whl.metadata (592 bytes)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from requests>=2.25->modelscope->memos) (3.3.2)
Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer>=0.13->memos)
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->typer>=0.13->memos)
Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting regex!=2019.12.17 (from transformers<5.0.0,>=4.41.0->sentence-transformers->memos)
Downloading regex-2024.11.6-cp312-cp312-macosx_11_0_arm64.whl.metadata (40 kB)
Collecting tokenizers<0.21,>=0.20 (from transformers<5.0.0,>=4.41.0->sentence-transformers->memos)
Downloading tokenizers-0.20.3-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.7 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch->memos)
Downloading MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (4.0 kB)
Collecting pyobjc-framework-CoreML>=10.3.1 (from pyobjc-framework-Vision->ocrmac->memos)
Using cached pyobjc_framework_CoreML-10.3.1-cp36-abi3-macosx_11_0_universal2.whl.metadata (2.2 kB)
Collecting joblib>=1.2.0 (from scikit-learn->sentence-transformers->memos)
Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=3.1.0 (from scikit-learn->sentence-transformers->memos)
Using cached threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer>=0.13->memos)
Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime<2.0.0,>=1.17.0->magika->memos)
Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Using cached memos-0.21.3-py3-none-any.whl (21.8 MB)
Using cached pydantic-2.10.2-py3-none-any.whl (456 kB)
Downloading pydantic_core-2.27.1-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 1.3 MB/s eta 0:00:00
Using cached pydantic_settings-2.6.1-py3-none-any.whl (28 kB)
Downloading SQLAlchemy-2.0.36-cp312-cp312-macosx_11_0_arm64.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 720.8 kB/s eta 0:00:00
Using cached typer-0.13.1-py3-none-any.whl (44 kB)
Using cached einops-0.8.0-py3-none-any.whl (43 kB)
Using cached fastapi-0.115.5-py3-none-any.whl (94 kB)
Using cached httpx-0.27.2-py3-none-any.whl (76 kB)
Using cached httpcore-1.0.7-py3-none-any.whl (78 kB)
Using cached ImageHash-4.3.1-py2.py3-none-any.whl (296 kB)
Using cached magika-0.5.1-py3-none-any.whl (1.0 MB)
Downloading numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.7/13.7 MB 441.8 kB/s eta 0:00:00
Using cached modelscope-1.20.1-py3-none-any.whl (5.8 MB)
Using cached mss-10.0.0-py3-none-any.whl (24 kB)
Using cached ocrmac-1.0.0-py2.py3-none-any.whl (12 kB)
Using cached opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl (54.8 MB)
Using cached piexif-1.1.3-py2.py3-none-any.whl (20 kB)
Downloading pillow-11.0.0-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 565.7 kB/s eta 0:00:00
Using cached psutil-6.1.0-cp36-abi3-macosx_11_0_arm64.whl (248 kB)
Using cached py_cpuinfo-9.0.0-py3-none-any.whl (22 kB)
Downloading pyobjc_core-10.3.1-cp312-cp312-macosx_10_9_universal2.whl (825 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 826.0/826.0 kB 512.1 kB/s eta 0:00:00
Downloading pyobjc_framework_Quartz-10.3.1-cp312-cp312-macosx_10_9_universal2.whl (227 kB)
Using cached rapidocr_onnxruntime-1.4.0-py3-none-any.whl (14.9 MB)
Using cached sentence_transformers-3.3.1-py3-none-any.whl (268 kB)
Downloading torch-2.5.1-cp312-none-macosx_11_0_arm64.whl (63.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.9/63.9 MB 600.1 kB/s eta 0:00:00
Using cached sympy-1.13.1-py3-none-any.whl (6.2 MB)
Using cached sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl (165 kB)
Using cached timm-1.0.11-py3-none-any.whl (2.3 MB)
Using cached uvicorn-0.32.1-py3-none-any.whl (63 kB)
Downloading watchdog-6.0.0-cp312-cp312-macosx_11_0_arm64.whl (89 kB)
Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached huggingface_hub-0.26.2-py3-none-any.whl (447 kB)
Using cached fsspec-2024.10.0-py3-none-any.whl (179 kB)
Downloading onnxruntime-1.20.1-cp312-cp312-macosx_13_0_universal2.whl (31.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 31.0/31.0 MB 392.0 kB/s eta 0:00:00
Downloading pyclipper-1.3.0.post6-cp312-cp312-macosx_10_13_universal2.whl (270 kB)
Downloading pyobjc_framework_Cocoa-10.3.1-cp312-cp312-macosx_10_9_universal2.whl (396 kB)
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Downloading PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl (173 kB)
Using cached rich-13.9.4-py3-none-any.whl (242 kB)
Downloading shapely-2.0.6-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 580.2 kB/s eta 0:00:00
Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached starlette-0.41.3-py3-none-any.whl (73 kB)
Using cached anyio-4.6.2.post1-py3-none-any.whl (90 kB)
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Using cached transformers-4.46.3-py3-none-any.whl (10.0 MB)
Downloading safetensors-0.4.5-cp312-cp312-macosx_11_0_arm64.whl (381 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached filelock-3.16.1-py3-none-any.whl (16 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
Using cached pyobjc_framework_Vision-10.3.1-cp36-abi3-macosx_11_0_universal2.whl (17 kB)
Downloading pywavelets-1.7.0-cp312-cp312-macosx_11_0_arm64.whl (4.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 317.7 kB/s eta 0:00:00
Downloading scikit_learn-1.5.2-cp312-cp312-macosx_12_0_arm64.whl (11.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 MB 331.5 kB/s eta 0:00:00
Downloading scipy-1.14.1-cp312-cp312-macosx_14_0_arm64.whl (23.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.1/23.1 MB 426.6 kB/s eta 0:00:00
Downloading torchvision-0.20.1-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 300.3 kB/s eta 0:00:00
Using cached joblib-1.4.2-py3-none-any.whl (301 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Downloading MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl (12 kB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached pyobjc_framework_CoreML-10.3.1-cp36-abi3-macosx_11_0_universal2.whl (11 kB)
Downloading regex-2024.11.6-cp312-cp312-macosx_11_0_arm64.whl (284 kB)
Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Downloading tokenizers-0.20.3-cp312-cp312-macosx_11_0_arm64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 418.1 kB/s eta 0:00:00
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Using cached flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Using cached protobuf-5.29.0-cp38-abi3-macosx_10_9_universal2.whl (417 kB)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: sqlite_vec, pyclipper, py-cpuinfo, mpmath, flatbuffers, watchdog, typing-extensions, threadpoolctl, tabulate, sympy, sniffio, six, shellingham, safetensors, regex, PyYAML, python-dotenv, pyobjc-core, pygments, psutil, protobuf, pillow, piexif, numpy, networkx, mss, mdurl, MarkupSafe, joblib, humanfriendly, h11, fsspec, filelock, einops, click, annotated-types, uvicorn, sqlalchemy, Shapely, scipy, PyWavelets, pyobjc-framework-Cocoa, pydantic-core, opencv-python, modelscope, markdown-it-py, jinja2, huggingface-hub, httpcore, coloredlogs, anyio, torch, tokenizers, starlette, scikit-learn, rich, pyobjc-framework-Quartz, pyobjc-framework-CoreML, pydantic, onnxruntime, imagehash, httpx, typer, transformers, torchvision, rapidocr_onnxruntime, pyobjc-framework-Vision, pydantic-settings, magika, fastapi, timm, sentence-transformers, ocrmac, memos
Successfully installed MarkupSafe-3.0.2 PyWavelets-1.7.0 PyYAML-6.0.2 Shapely-2.0.6 annotated-types-0.7.0 anyio-4.6.2.post1 click-8.1.7 coloredlogs-15.0.1 einops-0.8.0 fastapi-0.115.5 filelock-3.16.1 flatbuffers-24.3.25 fsspec-2024.10.0 h11-0.14.0 httpcore-1.0.7 httpx-0.27.2 huggingface-hub-0.26.2 humanfriendly-10.0 imagehash-4.3.1 jinja2-3.1.4 joblib-1.4.2 magika-0.5.1 markdown-it-py-3.0.0 mdurl-0.1.2 memos-0.21.3 modelscope-1.20.1 mpmath-1.3.0 mss-10.0.0 networkx-3.4.2 numpy-1.26.4 ocrmac-1.0.0 onnxruntime-1.20.1 opencv-python-4.10.0.84 piexif-1.1.3 pillow-11.0.0 protobuf-5.29.0 psutil-6.1.0 py-cpuinfo-9.0.0 pyclipper-1.3.0.post6 pydantic-2.10.2 pydantic-core-2.27.1 pydantic-settings-2.6.1 pygments-2.18.0 pyobjc-core-10.3.1 pyobjc-framework-Cocoa-10.3.1 pyobjc-framework-CoreML-10.3.1 pyobjc-framework-Quartz-10.3.1 pyobjc-framework-Vision-10.3.1 python-dotenv-1.0.1 rapidocr_onnxruntime-1.4.0 regex-2024.11.6 rich-13.9.4 safetensors-0.4.5 scikit-learn-1.5.2 scipy-1.14.1 sentence-transformers-3.3.1 shellingham-1.5.4 six-1.16.0 sniffio-1.3.1 sqlalchemy-2.0.36 sqlite_vec-0.1.6 starlette-0.41.3 sympy-1.13.1 tabulate-0.9.0 threadpoolctl-3.5.0 timm-1.0.11 tokenizers-0.20.3 torch-2.5.1 torchvision-0.20.1 transformers-4.46.3 typer-0.13.1 typing-extensions-4.12.2 uvicorn-0.32.1 watchdog-6.0.0
(base) GithubIireAchao:blog achao$ sudo pip install memos
Password:
WARNING: The directory '/Users/achao/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://pypi.org/simple, https://packagecloud.io/github/git-lfs/pypi/simple
Requirement already satisfied: memos in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (0.21.3)
Requirement already satisfied: fastapi in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.115.5)
Requirement already satisfied: uvicorn in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.32.1)
Requirement already satisfied: httpx in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.27.2)
Requirement already satisfied: pydantic>=2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (2.10.2)
Requirement already satisfied: sqlalchemy>=2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (2.0.36)
Requirement already satisfied: typer>=0.13 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.13.1)
Requirement already satisfied: magika in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.5.1)
Requirement already satisfied: pydantic-settings>=2.6 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (2.6.1)
Requirement already satisfied: opencv-python in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (4.10.0.84)
Requirement already satisfied: pillow in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (11.0.0)
Requirement already satisfied: piexif in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.1.3)
Requirement already satisfied: imagehash in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (4.3.1)
Requirement already satisfied: rapidocr_onnxruntime in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.4.0)
Requirement already satisfied: py-cpuinfo in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (9.0.0)
Requirement already satisfied: psutil in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (6.1.0)
Requirement already satisfied: pyobjc-core in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (10.3.1)
Requirement already satisfied: pyobjc-framework-Quartz in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (10.3.1)
Requirement already satisfied: ocrmac in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.0.0)
Requirement already satisfied: sentence-transformers in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (3.3.1)
Requirement already satisfied: torch in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (2.5.1)
Requirement already satisfied: numpy in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.26.4)
Requirement already satisfied: timm in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.0.11)
Requirement already satisfied: einops in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.8.0)
Requirement already satisfied: modelscope in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (1.20.1)
Requirement already satisfied: mss in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (10.0.0)
Requirement already satisfied: sqlite_vec in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (0.1.6)
Requirement already satisfied: watchdog in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from memos) (6.0.0)
Requirement already satisfied: annotated-types>=0.6.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pydantic>=2.0->memos) (0.7.0)
Requirement already satisfied: pydantic-core==2.27.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pydantic>=2.0->memos) (2.27.1)
Requirement already satisfied: typing-extensions>=4.12.2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pydantic>=2.0->memos) (4.12.2)
Requirement already satisfied: python-dotenv>=0.21.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pydantic-settings>=2.6->memos) (1.0.1)
Requirement already satisfied: click>=8.0.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from typer>=0.13->memos) (8.1.7)
Requirement already satisfied: shellingham>=1.3.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from typer>=0.13->memos) (1.5.4)
Requirement already satisfied: rich>=10.11.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from typer>=0.13->memos) (13.9.4)
Requirement already satisfied: starlette<0.42.0,>=0.40.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from fastapi->memos) (0.41.3)
Requirement already satisfied: anyio in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (4.6.2.post1)
Requirement already satisfied: certifi in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (2024.8.30)
Requirement already satisfied: httpcore==1.* in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (1.0.7)
Requirement already satisfied: idna in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (3.7)
Requirement already satisfied: sniffio in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpx->memos) (1.3.1)
Requirement already satisfied: h11<0.15,>=0.13 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from httpcore==1.*->httpx->memos) (0.14.0)
Requirement already satisfied: PyWavelets in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from imagehash->memos) (1.7.0)
Requirement already satisfied: scipy in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from imagehash->memos) (1.14.1)
Requirement already satisfied: onnxruntime<2.0.0,>=1.17.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from magika->memos) (1.20.1)
Requirement already satisfied: tabulate<0.10.0,>=0.9.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from magika->memos) (0.9.0)
Requirement already satisfied: tqdm<5.0.0,>=4.66.2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from magika->memos) (4.66.5)
Requirement already satisfied: requests>=2.25 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from modelscope->memos) (2.32.3)
Requirement already satisfied: urllib3>=1.26 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from modelscope->memos) (2.2.3)
Requirement already satisfied: pyobjc-framework-Vision in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from ocrmac->memos) (10.3.1)
Requirement already satisfied: pyobjc-framework-Cocoa>=10.3.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pyobjc-framework-Quartz->memos) (10.3.1)
Requirement already satisfied: pyclipper>=1.2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rapidocr_onnxruntime->memos) (1.3.0.post6)
Requirement already satisfied: six>=1.15.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rapidocr_onnxruntime->memos) (1.16.0)
Requirement already satisfied: Shapely!=2.0.4,>=1.7.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rapidocr_onnxruntime->memos) (2.0.6)
Requirement already satisfied: PyYAML in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rapidocr_onnxruntime->memos) (6.0.2)
Requirement already satisfied: transformers<5.0.0,>=4.41.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from sentence-transformers->memos) (4.46.3)
Requirement already satisfied: scikit-learn in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from sentence-transformers->memos) (1.5.2)
Requirement already satisfied: huggingface-hub>=0.20.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from sentence-transformers->memos) (0.26.2)
Requirement already satisfied: filelock in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (3.16.1)
Requirement already satisfied: networkx in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (3.4.2)
Requirement already satisfied: jinja2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (3.1.4)
Requirement already satisfied: fsspec in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (2024.10.0)
Requirement already satisfied: setuptools in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (75.1.0)
Requirement already satisfied: sympy==1.13.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from torch->memos) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from sympy==1.13.1->torch->memos) (1.3.0)
Requirement already satisfied: torchvision in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from timm->memos) (0.20.1)
Requirement already satisfied: safetensors in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from timm->memos) (0.4.5)
Requirement already satisfied: packaging>=20.9 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from huggingface-hub>=0.20.0->sentence-transformers->memos) (24.1)
Requirement already satisfied: coloredlogs in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from onnxruntime<2.0.0,>=1.17.0->magika->memos) (15.0.1)
Requirement already satisfied: flatbuffers in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from onnxruntime<2.0.0,>=1.17.0->magika->memos) (24.3.25)
Requirement already satisfied: protobuf in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from onnxruntime<2.0.0,>=1.17.0->magika->memos) (5.29.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from requests>=2.25->modelscope->memos) (3.3.2)
Requirement already satisfied: markdown-it-py>=2.2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rich>=10.11.0->typer>=0.13->memos) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from rich>=10.11.0->typer>=0.13->memos) (2.18.0)
Requirement already satisfied: regex!=2019.12.17 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from transformers<5.0.0,>=4.41.0->sentence-transformers->memos) (2024.11.6)
Requirement already satisfied: tokenizers<0.21,>=0.20 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from transformers<5.0.0,>=4.41.0->sentence-transformers->memos) (0.20.3)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from jinja2->torch->memos) (3.0.2)
Requirement already satisfied: pyobjc-framework-CoreML>=10.3.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from pyobjc-framework-Vision->ocrmac->memos) (10.3.1)
Requirement already satisfied: joblib>=1.2.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from scikit-learn->sentence-transformers->memos) (1.4.2)
Requirement already satisfied: threadpoolctl>=3.1.0 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from scikit-learn->sentence-transformers->memos) (3.5.0)
Requirement already satisfied: mdurl~=0.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich>=10.11.0->typer>=0.13->memos) (0.1.2)
Requirement already satisfied: humanfriendly>=9.1 in /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages (from coloredlogs->onnxruntime<2.0.0,>=1.17.0->magika->memos) (10.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
(base) GithubIireAchao:blog achao$ sudo memos init
Database initialized successfully at /Users/achao/.memos/database.db
Initialization completed successfully.
(base) GithubIireAchao:blog achao$ sudo memos enable
Generated launch script at None
Generated plist file at /Users/achao/Library/LaunchAgents/com.user.memos.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootout` is a recommended alternative.
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Loaded plist file. Memos is started and will run at next startup or when 'start' command is used.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 76781 2024-11-28 17:13:08 0:00:08
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:22:07
record Running 76780 2024-11-28 17:13:08 0:00:08
(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Not Running - - -
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:22:31
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 77011 2024-11-28 17:13:47 0:00:02
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:22:39
record Running 77010 2024-11-28 17:13:47 0:00:02
(base) GithubIireAchao:blog achao$ sudo memos watch
Plugin is already bound to the library
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/memos/commands.py:277 in watch_default_library │
│ │
│ 274 │ """ │
│ 275 │ from .cmds.library import watch │
│ 276 │ │
│ ❱ 277 │ default_library = get_or_create_default_library() │
│ 278 │ if not default_library: │
│ 279 │ │ return │
│ 280 │
│ │
│ ╭──────── locals ─────────╮ │
│ │ sparsity_factor = 3.0 │ │
│ │ verbose = False │ │
│ │ window_size = 10 │ │
│ ╰─────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/memos/commands.py:144 in │
│ get_or_create_default_library │
│ │
│ 141 │ │ folder = { │
│ 142 │ │ │ "path": str(screenshots_dir), │
│ 143 │ │ │ "last_modified_at": datetime.fromtimestamp( │
│ ❱ 144 │ │ │ │ screenshots_dir.stat().st_mtime │
│ 145 │ │ │ ).isoformat(), │
│ 146 │ │ } │
│ 147 │ │ response = httpx.post( │
│ │
│ ╭──────────────────────────── locals ─────────────────────────────╮ │
│ │ default_library = { │ │
│ │ │ 'id': 1, │ │
│ │ │ 'name': 'screenshots', │ │
│ │ │ 'folders': [], │ │
│ │ │ 'plugins': [ │ │
│ │ │ │ { │ │
│ │ │ │ │ 'id': 2, │ │
│ │ │ │ │ 'name': 'builtin_ocr', │ │
│ │ │ │ │ 'description': 'OCR Plugin', │ │
│ │ │ │ │ 'webhook_url': '/plugins/ocr' │ │
│ │ │ │ }, │ │
│ │ │ │ { │ │
│ │ │ │ │ 'id': 1, │ │
│ │ │ │ │ 'name': 'builtin_vlm', │ │
│ │ │ │ │ 'description': 'VLM Plugin', │ │
│ │ │ │ │ 'webhook_url': '/plugins/vlm' │ │
│ │ │ │ } │ │
│ │ │ ] │ │
│ │ } │ │
│ │ libraries = [ │ │
│ │ │ { │ │
│ │ │ │ 'id': 1, │ │
│ │ │ │ 'name': 'screenshots', │ │
│ │ │ │ 'folders': [], │ │
│ │ │ │ 'plugins': [ │ │
│ │ │ │ │ { │ │
│ │ │ │ │ │ 'id': 2, │ │
│ │ │ │ │ │ 'name': 'builtin_ocr', │ │
│ │ │ │ │ │ 'description': 'OCR Plugin', │ │
│ │ │ │ │ │ 'webhook_url': '/plugins/ocr' │ │
│ │ │ │ │ }, │ │
│ │ │ │ │ { │ │
│ │ │ │ │ │ 'id': 1, │ │
│ │ │ │ │ │ 'name': 'builtin_vlm', │ │
│ │ │ │ │ │ 'description': 'VLM Plugin', │ │
│ │ │ │ │ │ 'webhook_url': '/plugins/vlm' │ │
│ │ │ │ │ } │ │
│ │ │ │ ] │ │
│ │ │ } │ │
│ │ ] │ │
│ │ plugin = 'builtin_ocr' │ │
│ │ response = <Response [200 OK]> │ │
│ │ screenshots_dir = PosixPath('/Users/achao/.memos/screenshots') │ │
│ ╰─────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/pathlib.py:840 in stat │
│ │
│ 837 │ │ Return the result of the stat() system call on this path, like │
│ 838 │ │ os.stat() does. │
│ 839 │ │ """ │
│ ❱ 840 │ │ return os.stat(self, follow_symlinks=follow_symlinks) │
│ 841 │ │
│ 842 │ def lstat(self): │
│ 843 │ │ """ │
│ │
│ ╭──────────────────────────── locals ────────────────────────────╮ │
│ │ follow_symlinks = True │ │
│ │ self = PosixPath('/Users/achao/.memos/screenshots') │ │
│ ╰────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory: '/Users/achao/.memos/screenshots'
(base) GithubIireAchao:blog achao$ sudo mkdir /Users/achao/.memos/screenshots
(base) GithubIireAchao:blog achao$ sudo memos watch
Plugin is already bound to the library
Added screenshots directory: /Users/achao/.memos/screenshots
2024-11-28 17:14:49,626 - INFO - Watching library 1 for changes...
Watching folder: /Users/achao/.memos/screenshots
^C(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 77011 2024-11-28 17:13:47 0:01:22
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:24:00
record Running 77010 2024-11-28 17:13:47 0:01:22
(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 77403 2024-11-28 17:15:20 0:00:03
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:24:12
record Running 77402 2024-11-28 17:15:20 0:00:03
(base) GithubIireAchao:blog achao$ sudo memos watch
Plugin is already bound to the library
2024-11-28 17:15:27,031 - INFO - Watching library 1 for changes...
Watching folder: /Users/achao/.memos/screenshots
^C(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ chmod 777 /Users/achao/.memos/screenshots
chmod: Unable to change file mode on /Users/achao/.memos/screenshots: Operation not permitted
(base) GithubIireAchao:blog achao$ sudo chmod 777 /Users/achao/.memos/screenshots
(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos stop
Password:
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos enable
Generated launch script at None
Generated plist file at /Users/achao/Library/LaunchAgents/com.user.memos.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
Loaded plist file. Memos is started and will run at next startup or when 'start' command is used.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 78085 2024-11-28 17:17:36 0:05:52
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:32:18
record Running 79699 2024-11-28 17:23:25 0:00:04
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 78085 2024-11-28 17:17:36 0:07:35
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:34:01
record Running 79699 2024-11-28 17:23:25 0:01:47
(base) GithubIireAchao:blog achao$ sudo memos watch
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_transports/default.py:72 in │
│ map_httpcore_exceptions │
│ │
│ 69 @contextlib.contextmanager │
│ 70 def map_httpcore_exceptions() -> typing.Iterator[None]: │
│ 71 │ try: │
│ ❱ 72 │ │ yield │
│ 73 │ except Exception as exc: │
│ 74 │ │ mapped_exc = None │
│ 75 │
│ │
│ ╭───────────────── locals ──────────────────╮ │
│ │ message = '[Errno 61] Connection refused' │ │
│ ╰───────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_transports/default.py:236 in │
│ handle_request │
│ │
│ 233 │ │ │ extensions=request.extensions, │
│ 234 │ │ ) │
│ 235 │ │ with map_httpcore_exceptions(): │
│ ❱ 236 │ │ │ resp = self._pool.handle_request(req) │
│ 237 │ │ │
│ 238 │ │ assert isinstance(resp.stream, typing.Iterable) │
│ 239 │
│ │
│ ╭─────────────────────────── locals ────────────────────────────╮ │
│ │ req = <Request [b'GET']> │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.HTTPTransport object at 0x10406a030> │ │
│ ╰───────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py:256 in │
│ handle_request │
│ │
│ 253 │ │ │ │ closing = self._assign_requests_to_connections() │
│ 254 │ │ │ │
│ 255 │ │ │ self._close_connections(closing) │
│ ❱ 256 │ │ │ raise exc from None │
│ 257 │ │ │
│ 258 │ │ # Return the response. Note that in this case we still have to manage │
│ 259 │ │ # the point at which the response is closed. │
│ │
│ ╭──────────────────────────────────────────── locals ────────────────────────────────────────────╮ │
│ │ closing = [] │ │
│ │ connection = <HTTPConnection [CONNECTION FAILED]> │ │
│ │ pool_request = <httpcore._sync.connection_pool.PoolRequest object at 0x10406a540> │ │
│ │ request = <Request [b'GET']> │ │
│ │ scheme = 'http' │ │
│ │ self = <ConnectionPool [Requests: 0 active, 0 queued | Connections: 0 active, 0 idle]> │ │
│ │ timeout = 5.0 │ │
│ │ timeouts = {'connect': 5.0, 'read': 5.0, 'write': 5.0, 'pool': 5.0} │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py:236 in │
│ handle_request │
│ │
│ 233 │ │ │ │ │
│ 234 │ │ │ │ try: │
│ 235 │ │ │ │ │ # Send the request on the assigned connection. │
│ ❱ 236 │ │ │ │ │ response = connection.handle_request( │
│ 237 │ │ │ │ │ │ pool_request.request │
│ 238 │ │ │ │ │ ) │
│ 239 │ │ │ │ except ConnectionNotAvailable: │
│ │
│ ╭──────────────────────────────────────────── locals ────────────────────────────────────────────╮ │
│ │ closing = [] │ │
│ │ connection = <HTTPConnection [CONNECTION FAILED]> │ │
│ │ pool_request = <httpcore._sync.connection_pool.PoolRequest object at 0x10406a540> │ │
│ │ request = <Request [b'GET']> │ │
│ │ scheme = 'http' │ │
│ │ self = <ConnectionPool [Requests: 0 active, 0 queued | Connections: 0 active, 0 idle]> │ │
│ │ timeout = 5.0 │ │
│ │ timeouts = {'connect': 5.0, 'read': 5.0, 'write': 5.0, 'pool': 5.0} │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_sync/connection.py:101 in │
│ handle_request │
│ │
│ 98 │ │ │ │ │ │ ) │
│ 99 │ │ except BaseException as exc: │
│ 100 │ │ │ self._connect_failed = True │
│ ❱ 101 │ │ │ raise exc │
│ 102 │ │ │
│ 103 │ │ return self._connection.handle_request(request) │
│ 104 │
│ │
│ ╭──────────────────── locals ────────────────────╮ │
│ │ request = <Request [b'GET']> │ │
│ │ self = <HTTPConnection [CONNECTION FAILED]> │ │
│ ╰────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_sync/connection.py:78 in handle_request │
│ │
│ 75 │ │ try: │
│ 76 │ │ │ with self._request_lock: │
│ 77 │ │ │ │ if self._connection is None: │
│ ❱ 78 │ │ │ │ │ stream = self._connect(request) │
│ 79 │ │ │ │ │ │
│ 80 │ │ │ │ │ ssl_object = stream.get_extra_info("ssl_object") │
│ 81 │ │ │ │ │ http2_negotiated = ( │
│ │
│ ╭──────────────────── locals ────────────────────╮ │
│ │ request = <Request [b'GET']> │ │
│ │ self = <HTTPConnection [CONNECTION FAILED]> │ │
│ ╰────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_sync/connection.py:124 in _connect │
│ │
│ 121 │ │ │ │ │ │ "socket_options": self._socket_options, │
│ 122 │ │ │ │ │ } │
│ 123 │ │ │ │ │ with Trace("connect_tcp", logger, request, kwargs) as trace: │
│ ❱ 124 │ │ │ │ │ │ stream = self._network_backend.connect_tcp(**kwargs) │
│ 125 │ │ │ │ │ │ trace.return_value = stream │
│ 126 │ │ │ │ else: │
│ 127 │ │ │ │ │ kwargs = { │
│ │
│ ╭──────────────────────────────── locals ─────────────────────────────────╮ │
│ │ delays = <generator object exponential_backoff at 0x103ffbed0> │ │
│ │ kwargs = { │ │
│ │ │ 'host': '127.0.0.1', │ │
│ │ │ 'port': 8839, │ │
│ │ │ 'local_address': None, │ │
│ │ │ 'timeout': 5.0, │ │
│ │ │ 'socket_options': None │ │
│ │ } │ │
│ │ request = <Request [b'GET']> │ │
│ │ retries_left = 0 │ │
│ │ self = <HTTPConnection [CONNECTION FAILED]> │ │
│ │ sni_hostname = None │ │
│ │ timeout = 5.0 │ │
│ │ timeouts = {'connect': 5.0, 'read': 5.0, 'write': 5.0, 'pool': 5.0} │ │
│ │ trace = <httpcore._trace.Trace object at 0x10406a600> │ │
│ ╰─────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_backends/sync.py:207 in connect_tcp │
│ │
│ 204 │ │ │ OSError: ConnectError, │
│ 205 │ │ } │
│ 206 │ │ │
│ ❱ 207 │ │ with map_exceptions(exc_map): │
│ 208 │ │ │ sock = socket.create_connection( │
│ 209 │ │ │ │ address, │
│ 210 │ │ │ │ timeout, │
│ │
│ ╭──────────────────────────────────── locals ─────────────────────────────────────╮ │
│ │ address = ('127.0.0.1', 8839) │ │
│ │ exc_map = { │ │
│ │ │ <class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, │ │
│ │ │ <class 'OSError'>: <class 'httpcore.ConnectError'> │ │
│ │ } │ │
│ │ host = '127.0.0.1' │ │
│ │ local_address = None │ │
│ │ port = 8839 │ │
│ │ self = <httpcore.SyncBackend object at 0x104069f40> │ │
│ │ socket_options = [] │ │
│ │ source_address = None │ │
│ │ timeout = 5.0 │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/contextlib.py:158 in __exit__ │
│ │
│ 155 │ │ │ │ # tell if we get the same exception back │
│ 156 │ │ │ │ value = typ() │
│ 157 │ │ │ try: │
│ ❱ 158 │ │ │ │ self.gen.throw(value) │
│ 159 │ │ │ except StopIteration as exc: │
│ 160 │ │ │ │ # Suppress StopIteration *unless* it's the same exception that │
│ 161 │ │ │ │ # was passed to throw(). This prevents a StopIteration │
│ │
│ ╭──────────────────────────────── locals ─────────────────────────────────╮ │
│ │ self = <contextlib._GeneratorContextManager object at 0x10406a6f0> │ │
│ │ traceback = <traceback object at 0x104079040> │ │
│ │ value = ConnectionRefusedError(61, 'Connection refused') │ │
│ ╰─────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpcore/_exceptions.py:14 in map_exceptions │
│ │
│ 11 │ except Exception as exc: # noqa: PIE786 │
│ 12 │ │ for from_exc, to_exc in map.items(): │
│ 13 │ │ │ if isinstance(exc, from_exc): │
│ ❱ 14 │ │ │ │ raise to_exc(exc) from exc │
│ 15 │ │ raise # pragma: nocover │
│ 16 │
│ 17 │
│ │
│ ╭─────────────────────────────── locals ───────────────────────────────╮ │
│ │ map = { │ │
│ │ │ <class 'TimeoutError'>: <class 'httpcore.ConnectTimeout'>, │ │
│ │ │ <class 'OSError'>: <class 'httpcore.ConnectError'> │ │
│ │ } │ │
│ ╰──────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ConnectError: [Errno 61] Connection refused

The above exception was the direct cause of the following exception:

╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/memos/commands.py:277 in watch_default_library │
│ │
│ 274 │ """ │
│ 275 │ from .cmds.library import watch │
│ 276 │ │
│ ❱ 277 │ default_library = get_or_create_default_library() │
│ 278 │ if not default_library: │
│ 279 │ │ return │
│ 280 │
│ │
│ ╭──────── locals ─────────╮ │
│ │ sparsity_factor = 3.0 │ │
│ │ verbose = False │ │
│ │ window_size = 10 │ │
│ ╰─────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/memos/commands.py:111 in │
│ get_or_create_default_library │
│ │
│ 108 │ """
│ 109 │ from .cmds.plugin import bind
│ 110 │ │
│ ❱ 111 │ response = httpx.get(f"{BASE_URL}/libraries") │
│ 112 │ if response.status_code != 200: │
│ 113 │ │ print(f"Failed to retrieve libraries: {response.status_code} - {response.text}") │
│ 114 │ │ return None │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_api.py:210 in get │
│ │
│ 207 │ Note that the `data`, `files`, `json` and `content` parameters are not available │
│ 208 │ on this function, as `GET` requests should not include a request body. │
│ 209 │ """ │
│ ❱ 210 │ return request( │
│ 211 │ │ "GET", │
│ 212 │ │ url, │
│ 213 │ │ params=params, │
│ │
│ ╭─────────────────────── locals ───────────────────────╮ │
│ │ auth = None │ │
│ │ cert = None │ │
│ │ cookies = None │ │
│ │ follow_redirects = False │ │
│ │ headers = None │ │
│ │ params = None │ │
│ │ proxies = None │ │
│ │ proxy = None │ │
│ │ timeout = Timeout(timeout=5.0) │ │
│ │ trust_env = True │ │
│ │ url = 'http://127.0.0.1:8839/libraries' │ │
│ │ verify = True │ │
│ ╰──────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_api.py:118 in request │
│ │
│ 115 │ │ timeout=timeout, │
│ 116 │ │ trust_env=trust_env, │
│ 117 │ ) as client: │
│ ❱ 118 │ │ return client.request( │
│ 119 │ │ │ method=method, │
│ 120 │ │ │ url=url, │
│ 121 │ │ │ content=content, │
│ │
│ ╭──────────────────────── locals ─────────────────────────╮ │
│ │ auth = None │ │
│ │ cert = None │ │
│ │ client = <httpx.Client object at 0x104069d30> │ │
│ │ content = None │ │
│ │ cookies = None │ │
│ │ data = None │ │
│ │ files = None │ │
│ │ follow_redirects = False │ │
│ │ headers = None │ │
│ │ json = None │ │
│ │ method = 'GET' │ │
│ │ params = None │ │
│ │ proxies = None │ │
│ │ proxy = None │ │
│ │ timeout = Timeout(timeout=5.0) │ │
│ │ trust_env = True │ │
│ │ url = 'http://127.0.0.1:8839/libraries' │ │
│ │ verify = True │ │
│ ╰─────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_client.py:837 in request │
│ │
│ 834 │ │ │ timeout=timeout, │
│ 835 │ │ │ extensions=extensions, │
│ 836 │ │ ) │
│ ❱ 837 │ │ return self.send(request, auth=auth, follow_redirects=follow_redirects) │
│ 838 │ │
│ 839 │ @contextmanager │
│ 840 │ def stream( │
│ │
│ ╭───────────────────────────────── locals ──────────────────────────────────╮ │
│ │ auth = None │ │
│ │ content = None │ │
│ │ cookies = None │ │
│ │ data = None │ │
│ │ extensions = None │ │
│ │ files = None │ │
│ │ follow_redirects = False │ │
│ │ headers = None │ │
│ │ json = None │ │
│ │ method = 'GET' │ │
│ │ params = None │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.Client object at 0x104069d30> │ │
│ │ timeout = <httpx._client.UseClientDefault object at 0x102273dd0> │ │
│ │ url = 'http://127.0.0.1:8839/libraries' │ │
│ ╰───────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_client.py:926 in send │
│ │
│ 923 │ │ │
│ 924 │ │ auth = self._build_request_auth(request, auth) │
│ 925 │ │ │
│ ❱ 926 │ │ response = self._send_handling_auth( │
│ 927 │ │ │ request, │
│ 928 │ │ │ auth=auth, │
│ 929 │ │ │ follow_redirects=follow_redirects, │
│ │
│ ╭──────────────────────────────── locals ────────────────────────────────╮ │
│ │ auth = <httpx.Auth object at 0x10406a0f0> │ │
│ │ follow_redirects = False │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.Client object at 0x104069d30> │ │
│ │ stream = False │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_client.py:954 in _send_handling_auth │
│ │
│ 951 │ │ │ request = next(auth_flow) │
│ 952 │ │ │ │
│ 953 │ │ │ while True: │
│ ❱ 954 │ │ │ │ response = self._send_handling_redirects( │
│ 955 │ │ │ │ │ request, │
│ 956 │ │ │ │ │ follow_redirects=follow_redirects, │
│ 957 │ │ │ │ │ history=history, │
│ │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ auth = <httpx.Auth object at 0x10406a0f0> │ │
│ │ auth_flow = <generator object Auth.sync_auth_flow at 0x10403e5e0> │ │
│ │ follow_redirects = False │ │
│ │ history = [] │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.Client object at 0x104069d30> │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_client.py:991 in _send_handling_redirects │
│ │
│ 988 │ │ │ for hook in self._event_hooks["request"]: │
│ 989 │ │ │ │ hook(request) │
│ 990 │ │ │ │
│ ❱ 991 │ │ │ response = self._send_single_request(request) │
│ 992 │ │ │ try: │
│ 993 │ │ │ │ for hook in self._event_hooks["response"]: │
│ 994 │ │ │ │ │ hook(response) │
│ │
│ ╭──────────────────────────────── locals ────────────────────────────────╮ │
│ │ follow_redirects = False │ │
│ │ history = [] │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.Client object at 0x104069d30> │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_client.py:1027 in _send_single_request │
│ │
│ 1024 │ │ │ ) │
│ 1025 │ │ │
│ 1026 │ │ with request_context(request=request): │
│ ❱ 1027 │ │ │ response = transport.handle_request(request) │
│ 1028 │ │ │
│ 1029 │ │ assert isinstance(response.stream, SyncByteStream) │
│ 1030 │
│ │
│ ╭──────────────────────────── locals ─────────────────────────────╮ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.Client object at 0x104069d30> │ │
│ │ timer = <httpx._utils.Timer object at 0x10406a060> │ │
│ │ transport = <httpx.HTTPTransport object at 0x10406a030> │ │
│ ╰─────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_transports/default.py:235 in │
│ handle_request │
│ │
│ 232 │ │ │ content=request.stream, │
│ 233 │ │ │ extensions=request.extensions, │
│ 234 │ │ ) │
│ ❱ 235 │ │ with map_httpcore_exceptions(): │
│ 236 │ │ │ resp = self._pool.handle_request(req) │
│ 237 │ │ │
│ 238 │ │ assert isinstance(resp.stream, typing.Iterable) │
│ │
│ ╭─────────────────────────── locals ────────────────────────────╮ │
│ │ req = <Request [b'GET']> │ │
│ │ request = <Request('GET', 'http://127.0.0.1:8839/libraries')> │ │
│ │ self = <httpx.HTTPTransport object at 0x10406a030> │ │
│ ╰───────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/contextlib.py:158 in __exit__ │
│ │
│ 155 │ │ │ │ # tell if we get the same exception back │
│ 156 │ │ │ │ value = typ() │
│ 157 │ │ │ try: │
│ ❱ 158 │ │ │ │ self.gen.throw(value) │
│ 159 │ │ │ except StopIteration as exc: │
│ 160 │ │ │ │ # Suppress StopIteration *unless* it's the same exception that │
│ 161 │ │ │ │ # was passed to throw(). This prevents a StopIteration │
│ │
│ ╭────────────────────────────────── locals ──────────────────────────────────╮ │
│ │ self = <contextlib._GeneratorContextManager object at 0x10406a4e0> │ │
│ │ traceback = <traceback object at 0x1040791c0> │ │
│ │ value = ConnectError(ConnectionRefusedError(61, 'Connection refused')) │ │
│ ╰────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /opt/homebrew/Caskroom/miniconda/base/lib/python3.12/site-packages/httpx/_transports/default.py:89 in │
│ map_httpcore_exceptions │
│ │
│ 86 │ │ │ raise │
│ 87 │ │ │
│ 88 │ │ message = str(exc) │
│ ❱ 89 │ │ raise mapped_exc(message) from exc │
│ 90 │
│ 91 │
│ 92 HTTPCORE_EXC_MAP = { │
│ │
│ ╭───────────────── locals ──────────────────╮ │
│ │ message = '[Errno 61] Connection refused' │ │
│ ╰───────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ConnectError: [Errno 61] Connection refused
(base) GithubIireAchao:blog achao$
(base) GithubIireAchao:blog achao$ sudo memos stop
Stopped Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos disable
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootout` is a recommended alternative.
Unloaded and removed plist file. Memos will no longer run at startup.
(base) GithubIireAchao:blog achao$ sudo memos enable
Generated launch script at None
Generated plist file at /Users/achao/Library/LaunchAgents/com.user.memos.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Loaded plist file. Memos is started and will run at next startup or when 'start' command is used.
(base) GithubIireAchao:blog achao$ sudo memos start
Started Memos processes.
(base) GithubIireAchao:blog achao$ sudo memos ps
Name Status PID Started At Running For
serve Running 80563 2024-11-28 17:26:24 0:04:15
watch Not Running - - -
record Running 70008 2024-11-28 16:51:10 0:39:29
record Running 80562 2024-11-28 17:26:24 0:04:15
(base) GithubIireAchao:blog achao$ sudo memos watch
Plugin is already bound to the library
2024-11-28 17:30:49,665 - INFO - Watching library 1 for changes...
Watching folder: /Users/achao/.memos/screenshots
2024-11-28 17:30:59,719 - INFO - File count: 1, Files submitted: 0, Files synced: 0, Files skipped: 1
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173053-of-color_lcd.webp
2024-11-28 17:31:14,732 - INFO - File count: 2, Files submitted: 0, Files synced: 0, Files skipped: 2
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173108-of-color_lcd.webp
2024-11-28 17:31:19,738 - INFO - File count: 3, Files submitted: 0, Files synced: 0, Files skipped: 3
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173114-of-color_lcd.webp
2024-11-28 17:31:24,741 - INFO - File count: 4, Files submitted: 0, Files synced: 0, Files skipped: 4
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173119-of-color_lcd.webp
2024-11-28 17:31:29,744 - INFO - File count: 5, Files submitted: 0, Files synced: 0, Files skipped: 5
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173125-of-color_lcd.webp
2024-11-28 17:31:44,751 - INFO - File count: 6, Files submitted: 0, Files synced: 0, Files skipped: 6
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173139-of-color_lcd.webp
2024-11-28 17:31:49,757 - INFO - File count: 7, Files submitted: 0, Files synced: 0, Files skipped: 7
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173145-of-color_lcd.webp
2024-11-28 17:31:54,759 - INFO - File count: 8, Files submitted: 0, Files synced: 0, Files skipped: 8
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173150-of-color_lcd.webp
2024-11-28 17:31:59,765 - INFO - File count: 9, Files submitted: 0, Files synced: 0, Files skipped: 9
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173156-of-color_lcd.webp
2024-11-28 17:32:04,770 - INFO - File count: 10, Files submitted: 0, Files synced: 0, Files skipped: 10
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173201-of-color_lcd.webp
2024-11-28 17:32:14,782 - INFO - File count: 11, Files submitted: 0, Files synced: 0, Files skipped: 11
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173212-of-color_lcd.webp
file_count % sparsity_window: 12 % 12 == 0
Picked file for processing with plugins: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173217-of-color_lcd.webp
2024-11-28 17:32:24,789 - INFO - File count: 12, Files submitted: 1, Files synced: 0, Files skipped: 11
2024-11-28 17:32:29,792 - INFO - File count: 13, Files submitted: 1, Files synced: 0, Files skipped: 12
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173223-of-color_lcd.webp
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173217-of-color_lcd.webp
2024-11-28 17:32:34,793 - INFO - File count: 14, Files submitted: 1, Files synced: 1, Files skipped: 13
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173228-of-hdmi.webp
2024-11-28 17:32:39,797 - INFO - File count: 16, Files submitted: 1, Files synced: 1, Files skipped: 15
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173233-of-hdmi.webp
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173233-of-color_lcd.webp
2024-11-28 17:32:44,798 - INFO - File count: 17, Files submitted: 1, Files synced: 1, Files skipped: 16
Created new entity for file: /Users/achao/.memos/screenshots/20241128/screenshot-20241128-173239-of-color_lcd.webp