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

AttributeError: 'str' object has no attribute 'check_password' #9259

Open
TARS-bot opened this issue Oct 19, 2024 · 1 comment
Open

AttributeError: 'str' object has no attribute 'check_password' #9259

TARS-bot opened this issue Oct 19, 2024 · 1 comment
Labels
bug 🐞 topic-wizard 🧙‍♂️ related to wallet creation/restore wizard

Comments

@TARS-bot
Copy link

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "electrum\gui\qt\__init__.py", line 446, in _start_wizard_to_select_or_create_wallet
  File "electrum\daemon.py", line 487, in func_wrapper
  File "electrum\daemon.py", line 497, in load_wallet
  File "electrum\util.py", line 483, in do_profile
  File "electrum\daemon.py", line 522, in _load_wallet
electrum.wallet_db.WalletUnfinished

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "electrum\plugins\trustedcoin\qt.py", line 635, in on_text
    self.ks.check_password(self.pw_e.text())
AttributeError: 'str' object has no attribute 'check_password'

AttributeError: 'str' object has no attribute 'check_password'

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.6 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 en_US

Additional Information

I CANNOT CONNECT FIX PORT 50002


@SomberNight SomberNight added bug 🐞 topic-wizard 🧙‍♂️ related to wallet creation/restore wizard labels Oct 19, 2024
@SomberNight
Copy link
Member

Hmm there must be some interesting race condition here, as it looks like after the expected
on_ready -> on_text -> apply flow there was a subsequent on_ready -> on_text.

self.ks = self.wizard_data['xprv1']
def on_text(self):
try:
self.ks.check_password(self.pw_e.text())
except InvalidPassword:
self.valid = False
return
self.valid = True
def apply(self):
if self.valid:
self.wizard_data['xprv1'] = self.ks.get_master_private_key(self.pw_e.text())
self.wizard_data['password'] = self.pw_e.text()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 topic-wizard 🧙‍♂️ related to wallet creation/restore wizard
Projects
None yet
Development

No branches or pull requests

2 participants