'python build.py etg’ fails on Mac OS X

I tried install Phoenix in my PC, with Mac OS X Yosemite.

‘python build.py dox’ command was fine, but next I did ‘python build.py etg’ command, it failed with follow message:

ERROR: Graphviz command dot cannot be run (needed for Graphviz output), check your PATH setting

Traceback (most recent call last):

File “etg/_core.py”, line 469, in

run()

File “etg/_core.py”, line 462, in run

tools.runGenerators(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/tweaker_tools.py”, line 577, in runGenerators

g.generate(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2902, in generate

self.generateModule(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2970, in generateModule

function(item)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 3066, in generatePyClass

docstring.Dump()

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2324, in Dump

return function(write)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2359, in DumpClass

png, map = inheritance_diagram.MakeInheritanceDiagram()

File “/Users/katsukichi/Documents/workspace/Phoenix/sphinxtools/inheritance.py”, line 286, in MakeInheritanceDiagram

stdout, stderr = p.communicate(code)

UnboundLocalError: local variable ‘p’ referenced before assignment

Command ‘"/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4" etg/_core.py --sip’ failed with exit code 1.

I used spotlight to find ‘dot’ command, I found many ‘*.dot’ files, but they are ”Microsoft Word templete” files.

I think that is caused by ‘Pages’ application in my PC(view info, 'open with Pages’ is default), so command ‘dot’ will not work fine…

What can I Do to avoid ‘open with Pages’ *.dot files, work as xml tag?

I tried install Phoenix in my PC, with Mac OS X Yosemite.

‘python build.py dox’ command was fine, but next I did ‘python build.py etg’ command, it failed with follow message:

The .dot files are for Graphviz to generate a graph of the class hierarchy for the docs. If you just want to build Phoenix and not the docs, you can pass the --nodoc argument to etg, like so:

python build.py etg --nodoc

Otherwise, you will need to install Graphviz on your Mac, and I think also Doxygen as well.

···

On Dec 15, 2015, at 7:31 PM, Katsuyoshi Takahashi katsukichi.t@gmail.com wrote:

ERROR: Graphviz command dot cannot be run (needed for Graphviz output), check your PATH setting

Traceback (most recent call last):

File “etg/_core.py”, line 469, in

run()

File “etg/_core.py”, line 462, in run

tools.runGenerators(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/tweaker_tools.py”, line 577, in runGenerators

g.generate(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2902, in generate

self.generateModule(module)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2970, in generateModule

function(item)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 3066, in generatePyClass

docstring.Dump()

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2324, in Dump

return function(write)

File “/Users/katsukichi/Documents/workspace/Phoenix/etgtools/sphinx_generator.py”, line 2359, in DumpClass

png, map = inheritance_diagram.MakeInheritanceDiagram()

File “/Users/katsukichi/Documents/workspace/Phoenix/sphinxtools/inheritance.py”, line 286, in MakeInheritanceDiagram

stdout, stderr = p.communicate(code)

UnboundLocalError: local variable ‘p’ referenced before assignment

Command ‘“/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4” etg/_core.py --sip’ failed with exit code 1.

I used spotlight to find ‘dot’ command, I found many ‘*.dot’ files, but they are ”Microsoft Word templete” files.

I think that is caused by ‘Pages’ application in my PC(view info, 'open with Pages’ is default), so command ‘dot’ will not work fine…

What can I Do to avoid ‘open with Pages’ *.dot files, work as xml tag?

You received this message because you are subscribed to the Google Groups “wxPython-dev” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.