When attempting to import zbar under python on Fedora Linux 26, I recieve the following error:
>>> import zbar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "zbar/__init__.py", line 1, in <module>
from .zbar import *
File "zbar/zbar.py", line 70, in <module>
_ZB = load_zbar()
File "zbar/zbar.py", line 63, in load_zbar
'\n\n'.join(err_txt))
RuntimeError: zbar/_zbar.c:
zbar/_zbar.c: invalid ELF header
Searching for solutions to this issue did lead me to another StackOverflow question that recommended installing the appropriate packages, but it didn't prove particularly helpful since I've already installed zbar and zbar-devel using my package manager, dnf. I installed this python library itself using the single instruction provided on the module's website.
What does "Invalid ELF header" mean? What steps should I take to troubleshoot this? In short, how do I get zbar working?