Dependency graph

379 views
Skip to first unread message

Jesse Lehrman

unread,
Mar 31, 2016, 9:19:33 PM3/31/16
to rez-c...@googlegroups.com
I was looking for the dependency graph (.dot file) that could optionally be generated by rez-env in Rez v1... however the option is no longer there... is the feature still around?

Allan Johns

unread,
Mar 31, 2016, 9:21:58 PM3/31/16
to rez-c...@googlegroups.com
rez-context -g

Thx
A


On Thu, Mar 31, 2016 at 6:19 PM, Jesse Lehrman <jess.l...@gmail.com> wrote:
I was looking for the dependency graph (.dot file) that could optionally be generated by rez-env in Rez v1... however the option is no longer there... is the feature still around?

--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.

Jesse Lehrman

unread,
Mar 31, 2016, 9:24:18 PM3/31/16
to rez-c...@googlegroups.com
thanks!

b.f...@toonboxent.com

unread,
Apr 26, 2016, 1:46:45 PM4/26/16
to rez-config
How would this work for failed contexts?

Allan Johns

unread,
Apr 26, 2016, 2:02:55 PM4/26/16
to rez-c...@googlegroups.com
You can still output a failed resolve to an rxt file using the rez-env --output flag. Then, simply:

]$ rez-context -g fail.rxt

The rez-context tool inspects a context - if you give it no args, it inspects the current context (ie the one for the current resolve) if there is one; however you can explicitly give it an rxt instead.

Hth
A

b.f...@toonboxent.com

unread,
Apr 26, 2016, 3:15:09 PM4/26/16
to rez-config
Thanks Allan.

b.f...@toonboxent.com

unread,
May 4, 2016, 11:44:32 AM5/4/16
to rez-config
Unfortunately this fails for us. Did we hit a bug? Is this known?
Also reproducible on a different system with a python2.7 rez installation.

(I stripped the paths to ...)

rez-env package-to-fail -o fail.rxt
rez-context -g fail.rxt

  File "/mnt/studio/toolbox/rez/rez/platform-linux/arch-x86_64/os-Scientific-6.4/bin/rez/rez-context", line 4, in <module>
    run('context')
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/cli/_main.py", line 117, in run
    returncode = run_cmd()
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/cli/_main.py", line 109, in run_cmd
    return opts.func(opts, opts.parser, arg_groups[1:])
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/cli/context.py", line 135, in command
    gstr = _graph()
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/cli/context.py", line 102, in _graph
    return rc.graph(as_dot=True)
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/resolved_context.py", line 484, in graph
    return write_dot(self.graph_)
  File ".../lib/python2.6/site-packages/rez-2.0.rc1.39-py2.6.egg/rez/utils/graph_utils.py", line 142, in write_dot
    attrs["label"] = label
TypeError: list indices must be integers, not str

sergei nazarenko

unread,
May 4, 2016, 11:58:29 AM5/4/16
to rez-config
Hi,
We have the same error on our CentOS. I change the graph_utils.p, and it works right now.

18   + import rez.vendor.pygraph as pygraph
153 + write_dot = pygraph.readwrite.dot.write

Those changes I made.

nerd...@gmail.com

unread,
May 4, 2016, 1:20:49 PM5/4/16
to rez-c...@googlegroups.com
I can't help on this for a few days yet but I can tell you that I've definitely fixed this bug in a recent branch, probably package_orderers or pip_osx. You can probably find the commit.

I'll get this fix to master soon as I can. Dealing with a newborn girl atm!

A


Sent from my iPhone

b.f...@toonboxent.com

unread,
May 4, 2016, 1:35:39 PM5/4/16
to rez-config
Congratulations!
Why are you reading this at all? :-)

    rez-env family

b.f...@toonboxent.com

unread,
May 4, 2016, 2:20:18 PM5/4/16
to rez-config
For reference:
https://github.com/nerdvegas/rez/commit/b27712a4b2b898a24e361be674f596cf791acbbd

Line 142
if label:
- attrs["label"] = label
+ attrs.append(("label", label))

This did it for us.

Thorsten Kaufmann

unread,
May 6, 2016, 3:07:48 AM5/6/16
to rez-config
Congratulations Allan! Your first one?

Allan Johns

unread,
May 9, 2016, 11:45:30 AM5/9/16
to rez-c...@googlegroups.com
Cheers, yes first.

A

Thorsten Kaufmann

unread,
May 9, 2016, 5:40:26 PM5/9/16
to rez-config
Aw Great! Third one incoming in june here :) Prepare for a scary, fun and incredible ride :)
Reply all
Reply to author
Forward
0 new messages