Maniphest T68007

Help > Report a Bug fails with a traceback: TypeError: register() takes from 2 to 3 positional arguments but 4 were given
Closed, Resolved

Assigned To
Brecht Van Lommel (brecht)
Authored By
Rémi Verschelde (akien)
Jul 31 2019, 5:03 PM
Tags
  • BF Blender
  • Add-ons (BF-Blender)
Subscribers
Brecht Van Lommel (brecht)
Demeter Dzadik (Mets)
Rémi Verschelde (akien)
Vyacheslav (hitrpr)

Description

System Information
Operating system: Mageia 7 x86_64 (Linux)
Graphics card: Intel HD Graphics 630

Blender Version
Broken: 2.80 (release)
Worked: not tested

Short description of error
When clicking the Help > Report a Bug menu entry, a traceback is displayed and the feature does not work:

Traceback (most recent call last):
  File "/home/akien/Documents/Blender/blender-2.80-linux-glibc217-x86_64/2.80/scripts/startup/bl_operators/wm.py", line 845, in execute
    webbrowser.open(self.url)
  File "/home/akien/Documents/Blender/blender-2.80-linux-glibc217-x86_64/2.80/python/lib/python3.7/webbrowser.py", line 75, in open
    register_standard_browsers()
  File "/home/akien/Documents/Blender/blender-2.80-linux-glibc217-x86_64/2.80/python/lib/python3.7/webbrowser.py", line 567, in register_standard_browsers
    cmd = _synthesize(cmdline, -1)
  File "/home/akien/Documents/Blender/blender-2.80-linux-glibc217-x86_64/2.80/python/lib/python3.7/webbrowser.py", line 116, in _synthesize
    register(browser, None, controller, update_tryorder)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given

location: <unknown location>:-1

location: <unknown location>:-1

Exact steps for others to reproduce the error

  • Open Blender 2.80
  • Select Help > Report a Bug

Revisions and Commits

Event Timeline

Rémi Verschelde (akien) created this task.Jul 31 2019, 5:03 PM
Rémi Verschelde (akien) added a comment.Jul 31 2019, 5:05 PM

I just tested 2.81-5359b7a03307 (2019-07-30) and the bug is reproducible too.

Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).Jul 31 2019, 5:08 PM

This is a bug in Python:
https://bugs.python.org/issue31014

Rémi Verschelde (akien) added a comment.Aug 1 2019, 9:04 AM

I'm not very familiar with Python's release cycle but it seems fixes were merged in the 3.7 branch in July 2018 and November 2018, so I assume the bug might be fixed with 3.7.2 and later.

Blender 2.80 seems to ship with 3.7.0, is there a specific reason to stay on that earlier release?

Worst case, since Blender ships its own Python build, it would be possible to backport the patches -- or work it around on the Blender side with some try/except statements. It's a bit sad to hit a bug when you want to report a bug :)

Rémi Verschelde (akien) added a comment.Aug 1 2019, 9:14 AM

I found that it fails the first time you click the link, but seems to work on subsequent calls. (It's also not only related to Help > Report a Bug but any link meant to open in the browser). I'll send a patch that retries once on error.

Brecht Van Lommel (brecht) lowered the priority of this task from 90 to Low.Aug 1 2019, 6:53 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.Dec 23 2019, 4:33 PM
Brecht Van Lommel (brecht) closed this task as Resolved.Jan 27 2020, 11:42 AM
Brecht Van Lommel (brecht) claimed this task.
Brecht Van Lommel (brecht) edited projects, added Add-ons (BF-Blender); removed Tracker Curfew.

We upgraded to Python 3.7.4, this should be fixed now.

Aaron Carlisle (Blendify) added subscribers: Vyacheslav (hitrpr), Demeter Dzadik (Mets).