spesmilo / spesmilo/electrum

NameError: free variable 'self' referenced before assignment in enclosing scope

Open
#5,364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

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

Traceback

  File "/home/mrsol/.local/lib/python3.6/site-packages/electrum/gui/qt/installwizard.py", line 136, in <lambda>
    self.next_button.clicked.connect(lambda: self.loop.exit(2))

NameError: free variable 'self' referenced before assignment in enclosing scope

Reporter

This issue was reported by 4 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.3.4 3.6.3 (default, Apr 29 2019, 21:30:46) [GCC 5.4.1 20160904] Linux-4.15.18-041518-generic-x86_64-with-debian-stretch-sid imported ru_UA
3.3.8 3.7.5 (default, Apr 19 2020, 20:18:17) [GCC 9.2.1 20191008] Linux-5.3.0-59-generic-x86_64-with-Ubuntu-19.10-eoan 2fa ru_RU
4.0.5 3.7.9 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] Linux-5.4.0-54-generic-x86_64-with-debian-bullseye-sid standard hu_HU
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE

Additional Information

The reporting user(s) did not provide additional information.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in electrum/gui/qt/installwizard.py at line 136, where the reported lambda is connected to the next button. Run the Qt install wizard flow that reaches this handler and inspect the surrounding scope. Done means that flow no longer raises the reported NameError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.