Phoenix: Issues encountered doing a Windows build from a git clone

Const <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>

These are the errors encountered on a Windows 7 machine when trying to 
build Phoenix from a fresh clone.  Solutions are provided too.

The first is raised by "build.py dox":

    Running command: dox
    Checking for 
C:\Users\Const\Documents\GitHub\Phoenix\bin\doxygen-1.8.8-win32.exe...
    Not found.  Attempting to download...
    Connection successful...
    Data downloaded...
    Checking for 
C:\Users\Const\Documents\GitHub\Phoenix\bin\doxygen-1.8.8-win32.exe...
    Command 'c:/cygwin/bin/cygpath -u C:/Users/Const.8.8-win32.exe' failed
     with exit code 1.
    The system cannot find the path specified.

The fix is to install Cygwin.

Now, run "build.py dox" again and you'll get:

    Running command: dox
    Checking for 
C:\Users\Const\Documents\GitHub\Phoenix\bin\doxygen-1.8.8-win32.exe...
    c:/cygwin/bin/bash.exe -l -c "cd C:/Users/Const && ./regen.sh xml"
    ./regen.sh: line 15: $'\r': command not found
    ./regen.sh: line 16: $'\r': command not found
    : No such file or directoryregen.sh
    ./regen.sh: line 72: syntax error near unexpected token `$'in\r''
    '/regen.sh: line 72: `case "$1" in
    Command 'c:/cygwin/bin/bash.exe -l -c "cd C:/Users/Const
    && ./regen.sh xml"' failed with exit code 2.


To fix, remove the "\r" from the regen.sh file (i.e. convert to Unix line 
endings). regen.sh is in /ext/wxWindows/docs/doxygen.

The next error is raised by "build.py etg": 

    Running command: etg
    "C:\Python34\python.exe" etg\_core.py --sip
    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 <module>
        run()
      File "etg\_core.py", line 462, in run
        tools.runGenerators(module)
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\tweaker_tools.py", line 
577, in runGenerators
        g.generate(module)
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\sphinx_generator.py", 
line 2902, in generate
        self.generateModule(module)
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\sphinx_generator.py", 
line 2970, in generateModule
        function(item)
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\sphinx_generator.py", 
line 3066, in generatePyClass
        docstring.Dump()
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\sphinx_generator.py", 
line 2324, in Dump
        return function(write)
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\etgtools\sphinx_generator.py", 
line 2359, in DumpClass
        png, map = inheritance_diagram.MakeInheritanceDiagram()
      File 
"C:\Users\Const\Documents\GitHub\Phoenix\sphinxtools\inheritance.py", line 
286, in MakeInheritanceDiag
    ram
        stdout, stderr = p.communicate(code)
    UnboundLocalError: local variable 'p' referenced before assignment
    Command '"C:\Python34\python.exe" etg\_core.py --sip' failed with exit 
code 1.

To fix, install Graphviz and put it on your PATH. Or use "build.py etg 
--nodoc".

Also, if you do a "build.py touch" you get:

    Running command: touch
    touch etg/*.py
    'touch' is not recognized as an internal or external command,
    operable program or batch file.
    Command 'touch etg/*.py' failed with exit code 1.
    Finished command: touch (0.20s)

To fix, add touch.exe from uxnutils to your path, or make sure touch.exe 
from Cygwin is on your path. 

One final note: I have Visual Studio 2010 installed, which the build script 
was able to find and use.  If the build script can't find vcvarsall.bat, 
but you know where it is, you can run it manually from the command prompt 
before running "build.py build".

 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.