chn-lee-yumi / MaterialSearch

AI语义搜索本地素材。以图搜图、查找本地素材、根据文字描述匹配画面、视频帧搜索、根据画面描述搜索视频。Semantic search. Search local photos and videos through natural language.
GNU General Public License v3.0
799 stars 110 forks source link

提示参数错误 datetime.datetime.fromtimestamp(modify_time) #42

Closed gkerry closed 9 months ago

gkerry commented 10 months ago

环境和配置文件都确认以后. 可以成功运行. 可是只能找到一张图 点击scan后. 后台就报错 2023-11-23 22:37:11,100 werkzeug INFO 192.168.154.119 - - [23/Nov/2023 22:37:11] "GET /api/status HTTP/1.1" 200 - Exception in thread Thread-17 (scan): Traceback (most recent call last): File "C:\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "C:\Python311\Lib\threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "E:\Desktop\find\MaterialSearch-main\MaterialSearch-main\scan.py", line 185, in scan modify_time = datetime.datetime.fromtimestamp(modify_time) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument

然后就是无限期的等待. 这个scan.py我没有修改过. 有遇到相同问题的大佬吗,求指教

chn-lee-yumi commented 10 months ago

我怀疑这个问题是在Windows环境下才有的。代码在MacOS和Linux下测试过,但是没有在Windows上测试。

你可以在185行前面加print(modify_time)看看输出吗?

chn-lee-yumi commented 9 months ago

Hello, I tried it on Windows, and cannot reproduce your issue. Since you haven't reply for 3 weeks, I decided to close this issue. If you have any further question, please feel free to open a new one.