mkorman90 / regipy

Regipy is an os independent python library for parsing offline registry hives
MIT License
244 stars 53 forks source link

OverflowError: Python int too large to convert to C ssize_t #201

Closed baiclamp closed 2 years ago

baiclamp commented 3 years ago

system os: windows 10 python version: Python 3.6.8 code:


def main(): strfile = r'c:\reg\system' reg = RegistryHive(strfile)

for entry in reg.recurse_subkeys(as_json=True):
    print(entry)

if name == 'main': main()


error: File "C:\Users\ax\PycharmProjects\regtest\venv\lib\site-packages\regipy\registry.py", line 160, in values = [attr.asdict(x) for x in subkey.iter_values(as_json=as_json)] File "C:\Users\ax\PycharmProjects\regtest\venv\lib\site-packages\regipy\registry.py", line 443, in iter_values value = self.read_value(vk, substream) File "C:\Users\ax\PycharmProjects\regtest\venv\lib\site-packages\regipy\registry.py", line 387, in read_value data = stream.read(vk.data_size) OverflowError: Python int too large to convert to C ssize_t

tincho9 commented 3 years ago

Is your python 32bit by any chance?

tincho9 commented 3 years ago

Hi, any update? Can I close this?