AcademySoftwareFoundation / AcademySoftwareFoundation/rez

rez-gui: View Resolve Graph: TypeError

Open
#1,045 0 comments 1 reaction 0 assignees View on GitHub
bug rez-gui
Dominant language
Python
Stars
1.1k
Forks
374
Avg merge
9d 12h
Merged PRs (30d)
5

Description

Hello,

I'm getting a TypeError trying to view the resolve graph through rez gui:

```
Traceback (most recent call last):
File ".../rez/2.71.0.4/python-3.7/lib/python3.7/site-packages/rezgui/widgets/ViewGraphButton.py", line 52, in _view_resolve_graph
view_graph(graph_str, self.window(), prune_to=self.package_name)
File ".../rez/2.71.0.4/python-3.7/lib/python3.7/site-packages/rezgui/dialogs/WriteGraphDialog.py", line 132, in view_graph
dlg = ImageViewerDialog(filepath, parent)
File ".../rez/2.71.0.4/python-3.7/lib/python3.7/site-packages/rezgui/dialogs/ImageViewerDialog.py", line 11, in __init__
super(ImageViewerDialog, self).__init__(parent)
TypeError: __init__() missing 2 required positional arguments: 'config' and 'config_key'
/tmp/rez_context_d79kw32h/rez-shell.sh: line 8: 281317 Aborted
```
rez: 2.71.0
python: 3.7.5
os: cent7
Qt: PyQt5 (with PySide2 the `View Resolve Graph` button does not respond at all?)

Must admit I'm opening rez-gui through some hacky python as our current rez-gui entry point script's shabang line breaks the environment I created for it:
```
rez env python-3 rez-2 Qtpy-1.2 PyQt-5.13 -c "\$PYTHON_EXE -c \"from rez.cli._main import run; run('gui')\""
```

Contributor guide

Open the contributing guide

Research direction

Start with rezgui/widgets/ViewGraphButton.py and rezgui/dialogs/WriteGraphDialog.py, following the traceback into ImageViewerDialog.py. Reproduce the View Resolve Graph action with PyQt5 and, if possible, PySide2; done means the graph view no longer raises the reported TypeError or leaves the button unresponsive.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.