aboutcode-org / aboutcode-org/extractcode

Ungraceful handling of libarchive missing symbol

オープン
#43 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
39
フォーク
23
PR マージ指標
30日以内にマージされた PR はありません

説明

When extractcode-libarchive isnt present, on openSUSE we see the following. A more graceful error indicating what to do would be helpful.
```py
[ 35s] src/extractcode/archive.py:29: in
[ 35s] from extractcode import libarchive2
[ 35s] :991: in _find_and_load
[ 35s] ???
[ 35s] :975: in _find_and_load_unlocked
[ 35s] ???
[ 35s] :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
[ 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
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。