TypeError: startfile: filepath should be string, bytes or os.PathLike, not NoneType
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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