Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#44 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
30/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
backend

研究方向

Start by reading libarchive/ffi.py at the ctypes.cdll.LoadLibrary(libarchive_path) call shown in the traceback, then check how libarchive_path is set on Windows. The issue does not specify the desired message or behavior; confirm the expected error handling before making a change. Done means a missing or unloadable libarchive produces a clear, actionable error on Windows.

由索引模型根據 Issue 內容生成。

描述

bug

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
主要語言
Python
星號
84
分支
41
平均合併
6 天 12 小時
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Changaco/python-libarchive-c 的其他 Issue

查看 Changaco/python-libarchive-c 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。