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

Closed
opened 2019-07-31 17:03:18 +02:00 by Rémi Verschelde · 10 comments

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
**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

Added subscriber: @akien

Added subscriber: @akien

blender/blender#68147 was marked as duplicate of this issue

blender/blender#68147 was marked as duplicate of this issue

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

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

Added subscriber: @brecht

Added subscriber: @brecht

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

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

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 :)

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 :)

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.

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.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-01-27 11:42:18 +01:00

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

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

Added subscribers: @Vyach, @Mets

Added subscribers: @Vyach, @Mets
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#68007
No description provided.