Skip to content

Problems with RarFile read and open methods #33

@cipriantrofin

Description

@cipriantrofin

My environment: python 3.8.5, on Windows 10 x64, unrar module 0.4

The unrar64.dll is installed on "c:\Program Files (x86)\UnrarDLL\x64", the environment variable UNRAR_LIB_PATH is set to C:\Program Files (x86)\UnrarDLL\x64\UnRAR64.dll.

The extract method works fine.
I was not able to make read and open methods to work.

The following code works:

from unrar import rarfile
import glob

myFile = rarfile.RarFile("my_rar.rar")
rarList = myFile.namelist()
print (rarList)
myFile.extract(rarList[0])

However, using .open or .read methods does not work - as in myFile.open(rarList[0]) or myFile.read(rarList[0]). The commands does not complete (I was not able to find another word). It suspect it might be related to unrar64.dll library (DLL version: 6.22.1.865, signed on 2023-05-14) but I have no experience to debug it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions