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

Unclear error message on Windows when libarchive can't be located #44

Open
taoluo opened this issue Nov 10, 2016 · 2 comments
Open

Unclear error message on Windows when libarchive can't be located #44

taoluo opened this issue Nov 10, 2016 · 2 comments
Labels

Comments

@taoluo
Copy link

taoluo commented Nov 10, 2016

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

Do you have libarchive installed?

@bicobus
Copy link

bicobus commented Jul 10, 2019

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.

@Changaco Changaco changed the title can't import libarchive after installation Unclear error message on Windows when libarchive can't be located May 25, 2021
@Changaco Changaco added the bug label May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants