python-unrar icon indicating copy to clipboard operation
python-unrar copied to clipboard

DLL import error. Current version on PIP too old

Open MysticCoss opened this issue 2 years ago • 0 comments

Hello, the library import in https://github.com/matiasb/python-unrar/blob/ceaf02fb6251270d69a5768daefbf3795653f64a/unrar/unrarlib.py#L44 is 32bit dll and it won't work if python in 64bit. I have to modify it to UnRAR64.dll for it to work.

I suggest a solution for this problem: -Detect architechture (x32 or x64) to import correct library -Create a default path to those libraríe instead of just using MESSY ENVIRONMENT VARIABLE only, which in most case is C:\Program Files (x86)\UnrarDLL for x32 and C:\Program Files (x86)\UnrarDLL\x64 for x64.

And please update the version on PIP.

Thank you very much

MysticCoss avatar May 09 '23 17:05 MysticCoss