Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ungraceful handling of libarchive missing symbol #43

Open
jayvdb opened this issue Oct 27, 2022 · 1 comment
Open

Ungraceful handling of libarchive missing symbol #43

jayvdb opened this issue Oct 27, 2022 · 1 comment

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Oct 27, 2022

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
@stefan6419846
Copy link

I just stumbled upon the same issue: While extractcode_libarchive is optional and only part of the full installation, extractcode apparently has some hard dependency on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants