Traceback (most recent call last):
File "D:/IdeaProjects/Python/Downloader/archive.py", line 6, in <module>
from unrar import rarfile
File "%LocalAppData%\Programs\Python\Python36\lib\site-packages\unrar\rarfile.py", line 26, in <module>
from unrar import unrarlib
File "%LocalAppData%\Programs\Python\Python36\lib\site-packages\unrar\unrarlib.py", line 45, in <module>
unrarlib = ctypes.WinDLL(lib_path)
File "%LocalAppData%\Programs\Python\Python36\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
Edit: Just realised the last commit was in 2016. That was a waste of 2 hours.
Get this error every time I try to import unrar:
What I've tried:
C:\Program Files (x86)\UnrarDLLto the system PATH. Also tried settingUNRAR_LIB_PATHtoC:\Program Files (x86)\UnrarDLL,C:\Program Files (x86)\UnrarDLL\UnRAR.dll, etc.UNRAR_LIB_PATHto it. Tried the same also with UnRAR64.dll.Edit: Just realised the last commit was in 2016. That was a waste of 2 hours.