seemoo-lab / opendrop

An open Apple AirDrop implementation written in Python
https://owlink.org
GNU General Public License v3.0
8.49k stars 265 forks source link

A program error? #59

Closed Roger-Wang-Shenzhen closed 3 years ago

Roger-Wang-Shenzhen commented 3 years ago

Here is the error message, it seems that there are errors in the code, I've tried to install version 0.12.3 and 0.12.2, and there is the same errors.

C:\user>opendrop Traceback (most recent call last): File "c:\user\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\user\appdata\local\programs\python\python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\user\AppData\Local\Programs\Python\Python38\Scripts\opendrop.exe__main.py", line 4, in File "c:\user\appdata\local\programs\python\python38\lib\site-packages\opendrop\cli.py", line 28, in from .client import AirDropBrowser, AirDropClient File "c:\user\appdata\local\programs\python\python38\lib\site-packages\opendrop\client.py", line 30, in import libarchive File "c:\user\appdata\local\programs\python\python38\lib\site-packages\libarchive__init__.py", line 1, in from .entry import ArchiveEntry File "c:\user\appdata\local\programs\python\python38\lib\site-packages\libarchive\entry.py", line 6, in from . import ffi File "c:\user\appdata\local\programs\python\python38\lib\site-packages\libarchive\ffi.py", line 27, in libarchive = ctypes.cdll.LoadLibrary(libarchive_path) File "c:\user\appdata\local\programs\python\python38\lib\ctypes__init__.py", line 451, in LoadLibrary return self._dlltype(name) File "c:\user\appdata\local\programs\python\python38\lib\ctypes\init.py", line 363, in init__ if '/' in name or '\' in name: TypeError: argument of type 'NoneType' is not iterable

schmittner commented 3 years ago

Please read the requirements section of the README. This particular error occurs because you apparently have not installed libarchive. In any case, OpenDrop is not supported on Windows.

ra1n08 commented 1 year ago

https://gnuwin32.sourceforge.net/packages/libarchive.htm try this, it libArchive for windows, i think it work :3