解決問題:OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eof
背景
載入模型或者執行程式碼時候出現了
File “h5py/_objects.pyx”, line 54, in h5py._objects.with_phil.wrapper
File “h5py/_objects.pyx”, line 55, in h5py._objects.with_phil.wrapper
File “h5py/h5f.pyx”, line 88, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eof = 152662144)
搜尋了一下github 中的解決方案:here。 裡面大部分人覺得是權重檔案沒有成功下載, 需要刪除重新下載。
解決方案
找到下載的資料夾,將下載未完成的.h5檔案刪除,重新下載, 注意這次中途不要斷,保證下載成功。
結果
問題解決,成功執行了。
相關文章
- ORA-31640: unable to open dump file 問題解決
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- ORA-31617 unable to open dump file for write
- 解決The jar file has no source attachment問題JAR
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- unable to get file lock, will retry ...
- Docker啟動故障問題 no such file or directory解決方法Docker
- mac下/usr/local/bin No such file or directory問題解決Mac
- gunzip時,提示file too large(問題已解決)
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- 裝10gRAC遇到的libpthread.so.0: cannot open shared object file問題threadObject
- 解決 ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE 問題FTPHTTP
- mysqld: File './binlog.~rec~' not found 問題解決處理MySql
- (問題解決)Cannot set LC_CTYPE to default locale: No such file or directory
- 解決eclipse中出現Resource is out of sync with the file system問題Eclipse
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- linux解決xhost: unable to open displayLinux
- linux解決xhost unable to open display‘’Linux
- WPF open image and print as pdf file
- (轉)RAC srvctl 命令報 libpthread.so.0 cannot open shared object file解決辦法threadObject
- 解決ImportError: libmysqlclient_r.so.16: cannot open shared object fileImportErrorIBMMySqlclientObject
- Hugging Face 無法連線問題 OSError: We couldn‘t connect to ‘https://huggingface.co‘ to load this file 解決方案Hugging FaceErrorHTTP
- 完美解決xhost +報錯: unable to open display
- 轉貼:xhost unable to open display解決方法
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- ftp_rawlist: Unable to create temporary file.FTP
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- No input file specified 解決方法
- while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or dirWhilethreadObject
- open_basedir() restrictijon in effect. FIle()REST
- ftp 報錯 550 Failed to open fileFTPAI
- MySQL 8.0.12 --secure-file-priv 資料匯出問題解決MySql
- Authentication failure 以及xxx is not in the sudoers file 問題的解決辦法AI