Ungraceful handling of libarchive missing symbol
還沒有人認領這個 Issue。
評估
研究方向
先閱讀 src/extractcode/archive.py,以及 src/extractcode/libarchive2.py 第 635 行附近的 libarchive 載入程式碼,然後重現 issue 中所示的缺少符號的匯入失敗。完成的判定標準是:缺少的 extractcode-libarchive 相依性或符號會產生清楚的錯誤,說明應改為採取什麼措施,而不是原始的 AttributeError。
由索引模型根據 Issue 內容生成。
描述
When extractcode-libarchive isnt present, on openSUSE we see the following. A more graceful error indicating what to do would be helpful.
[ 35s] src/extractcode/archive.py:29: in <module>
[ 35s] from extractcode import libarchive2
[ 35s] <frozen importlib._bootstrap>:991: in _find_and_load
[ 35s] ???
[ 35s] <frozen importlib._bootstrap>:975: in _find_and_load_unlocked
[ 35s] ???
[ 35s] <frozen importlib._bootstrap>:671: in _load_unlocked
[ 35s] ???
[ 35s] /usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
[ 35s] exec(co, module.__dict__)
[ 35s] src/extractcode/libarchive2.py:635: in <module>
[ 35s] archive_reader = libarchive.archive_read_new
[ 35s] /usr/lib/python3.8/ctypes/__init__.py:386: in __getattr__
[ 35s] func = self.__getitem__(name)
[ 35s] /usr/lib/python3.8/ctypes/__init__.py:391: in __getitem__
[ 35s] func = self._FuncPtr((name_or_ordinal, self))
[ 35s] E AttributeError: /usr/bin/python3.8: undefined symbol: archive_read_new
- 主要語言
- Python
- 星號
- 39
- 分支
- 23
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aboutcode-org/extractcode 的其他 Issue
-
Filepaths get incorrectly decoded leading to files being extracted in the wrong directory可能已有人在做 @Anurag-S1ngh 於 1 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 68/100
aboutcode-org/extractcode#77 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
aboutcode-org/extractcode#75 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/extractcode#73 · 4 個 reaction ·
-
QA Failure for vmimage extractor (vmimage.py): libguestfs configuration on Ubuntu可能已有人在做 @ArkaprabhaChakraborty 於 644 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
aboutcode-org/extractcode#69 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
aboutcode-org/extractcode#66 ·
查看 aboutcode-org/extractcode 的全部 Issue
相似的 Issue
-
good first issue test
難度 2/5 1-3 小時 新手友好度 85/100
ANCORATE/EncryptHome#8 ·
-
PluginProvider.storeInstance races and clobbers the dedup cache for concurrent loads可能已有人在做 @Wilson0511 今天認領。 未關閉needs-triage
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 2 天內回覆
-
Bug: failed Together chat calls do not record operation duration or error.type可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
community documentation good first issue
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100