Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: object of type 'filter' has no len() #41

Open
AngelTs opened this issue Dec 14, 2021 · 2 comments
Open

TypeError: object of type 'filter' has no len() #41

AngelTs opened this issue Dec 14, 2021 · 2 comments

Comments

@AngelTs
Copy link

AngelTs commented Dec 14, 2021

Traceback (most recent call last):
File "c:$ABC$\pywallet.py", line 3785, in
recoveredKeys=recov(device, passes, size, 10240, options.recov_outputdir)
File "c:$ABC$\pywallet.py", line 1847, in recov
if len(ckeys_not_decrypted)==0:
TypeError: object of type 'filter' has no len()

@AngelTs
Copy link
Author

AngelTs commented Dec 15, 2021

I found the error:
Replace original line (#1846) of pywallet.py

ckeys_not_decrypted=filter(lambda x:x[1].privkey==None, ckeys)

WITH

ckeys_not_decrypted=list(filter(lambda x:x[1].privkey==None, ckeys))

@masievtec
Copy link

I found the error: Replace original line (#1846) of pywallet.py

ckeys_not_decrypted=filter(lambda x:x[1].privkey==None, ckeys)

WITH

ckeys_not_decrypted=list(filter(lambda x:x[1].privkey==None, ckeys))

After changing I have an error:

Traceback (most recent call last):
File "pywallet.py", line 2551, in update_wallet
kds.write_string(d['hash'])
File "pywallet.py", line 2167, in write_string
self.write(string)
File "pywallet.py", line 2136, in write
self.input += bytes
TypeError: can't concat str to bytes
Traceback (most recent call last):
File "pywallet.py", line 4072, in
importprivkey(db, sec+'01', "recovered: %s"%sec, None, False)
TypeError: can't concat str to bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants