python-libarchive-c
python-libarchive-c copied to clipboard
Unclear error message on Windows when libarchive can't be located
OS: windows 10 python version: 3.5.2
I install it via pip install libarchive-c
, here is the Error traceback:
(C:\Users\**\Miniconda3) C:\Users\**>python -c "import libarchive"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\**\Miniconda3\lib\site-packages\libarchive\__init__.py", line 1, in <module>
from .entry import ArchiveEntry
File "C:\Users\**\Miniconda3\lib\site-packages\libarchive\entry.py", line 6, in <module>
from . import ffi
File "C:\Users\**\Miniconda3\lib\site-packages\libarchive\ffi.py", line 21, in <module>
libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
File "C:\Users\**\Miniconda3\lib\ctypes\__init__.py", line 425, in LoadLibrary
return self._dlltype(name)
File "C:\Users\**\Miniconda3\lib\ctypes\__init__.py", line 347, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
Do you have libarchive installed?
libarchive cannot be installed in a windows environment, it needs to be built which defeats the purpose of using a python module in the first place.