spesmilo / spesmilo/electrum

TypeError: startfile: filepath should be string, bytes or os.PathLike, not NoneType

Open
#8,401 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

Traceback (most recent call last):
  File "C:\Users\trevp\Electrum\electrum\plugins\payserver\qt.py", line 93, in <lambda>
    menu.addAction(_("View in payserver"), lambda: webopen(self.view_url(key)))
  File "electrum\gui\qt\util.py", line 1145, in webopen
  File "webbrowser.py", line 86, in open
  File "webbrowser.py", line 603, in open
TypeError: startfile: filepath should be string, bytes or os.PathLike, not NoneType

TypeError: startfile: filepath should be string, bytes or os.PathLike, not NoneType

Reporter

This issue was reported by 3 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.4.2 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22621-SP0 standard en_CA
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard en_US
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 standard en_US

Additional Information

pay my invoice


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 with electrum/plugins/payserver/qt.py at the View in payserver action, then trace webopen in electrum/gui/qt/util.py and the Python webbrowser call shown in the traceback. Reproduce the Windows crash if possible and determine why view_url(key) provides None. Done means the action no longer raises this TypeError when used.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.