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

object of type 'NoneType' has no len() #1954

Closed
freeziii opened this issue Oct 6, 2016 · 24 comments
Closed

object of type 'NoneType' has no len() #1954

freeziii opened this issue Oct 6, 2016 · 24 comments

Comments

@freeziii
Copy link

freeziii commented Oct 6, 2016

"object of type 'NoneType' has no len()"
it gives me this error when trying to send or when trying to export private keys

@faithinvw
Copy link

faithinvw commented Oct 6, 2016

I've been getting this error as well today, I get it when trying to do Anything in my account that requires me to input my password. I was able to receive BTC today but unable to send it out. I've emailed thier support team and will let you know what they say when they get back to me

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

does it show something more in the console?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

no it doesnt say anything in the console

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

which version /OS are you running?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

2.7.1 & win10

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

are you able to display your seed or to update your password?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

no. its gives me that error when trying to do almost anything in the wallet menu

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

does it give that too if you enter a wrong password?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

no, it says invalid password.

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

ok, if you restore your wallet from seed, does the new wallet have the same issue?
(do it in a new wallet file)

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

the balance stays at 0.00 when restored but not on the original

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

that suggests you're not restoring with the correct seed.
do the wallets have the same addresses?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

no idk how

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

@faithinvw can you try to restore from seed in another file, and report if it works?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

it did

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

@freezi please explain what you mean by "it did"

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

i restored from another files seed and the addresses matched up. but when i restore from the seed in the original wallet it doesnt match

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

can you send me an email to electrumdev@gmail.com ?

@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

in the console, what does 'wallet.keystore' return?

@freeziii
Copy link
Author

freeziii commented Oct 6, 2016

emailed you

@ecdsa ecdsa closed this as completed in 9cafc3d Oct 6, 2016
@ecdsa
Copy link
Member

ecdsa commented Oct 6, 2016

@faithinvw
Copy link

I made a new wallet with my seed and the issue was resolved. Thanks for the advice/help!

@ecdsa
Copy link
Member

ecdsa commented Oct 9, 2016

@faithinvw please also upgrade Electrum, the issue is fixed in recent versions

@SomberNight
Copy link
Member

User "jmoney" on IRC reported this today. He claimed to be user jb0y3 from bitcointalk.

He had originally set up a 2fa wallet using 2.7.0, probably encountered this bug there, and then subsequently upgraded to 2.7.18 and 3.0.3 keeping the same wallet file.
He had lost his seed words unfortunately, but he had this erroneous wallet file and also access to one time password through Google Auth. He also knew what the password for the wallet file was supposed to be.

The trace for the error, using the in-app QT console:

>> wallet.keystore.check_password("correctpassword")
Traceback (most recent call last):
File "site-packages\electrum-3.0.3-py3.5.egg\electrum\bitcoin.py", line 935, in deserialize_xprv
File "site-packages\electrum-3.0.3-py3.5.egg\electrum\bitcoin.py", line 915, in deserialize_xkey
TypeError: object of type 'NoneType' has no len()

I asked him to run this command in the console:

bitcoin.pw_decode(wallet.keystore.xprv, "correctpassword")

The output looked like an encrypted xprv.
He then modified his wallet file so that "x1/">"xprv" now contained the output of above command.

Also, Electrum thought that the wallet file did not have a password, so he changed "use_encryption" to be true.

After this, he was able to send the coins out of this wallet.

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

4 participants