Re: Phoenix: Build fails on master but not snapshot

Const <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On Friday, April 24, 2015 at 4:00:00 PM UTC-2:30, Const wrote:
>
> On Thursday, April 23, 2015 at 7:00:43 PM UTC-2:30, Const wrote:
>
>> I've cloned the master branch to try and build wxPython (Phoenix). As per 
>> the instructions, I do a "build.py dox" first, followed by a "build.py 
>> etg", at which point I get the ....
>>
> After several frustrating hours, I've managed to work around the error. 
> Let me try to explain.
>  
> One big difference between the source distribution and the git cloned 
> version is the former contains a lot of pre-generated files, namely all 
> those in sip/cpp and sip/gen. These are not cleaned with "build.py clean", 
> so calling "build.py etg" works out of the box because it doesn't do much. 
> However, if you do a "build.py touch" and then
> "build.py etg" you get the error mentioned in the last post, or one 
> similar to it. To reproduce:
>  
>
>    - Download the source (or git clone).
>    - build.py clean
>    - build.py dox
>    - build.py touch
>    - build.py etg
>
> You'll get the following:
>  
>
> Running command: etg
> "C:\Python34\python.exe" etg\_core.py --sip
> ERROR: Graphviz `dot` command exited with error:
> [stderr]
> b''
> [stdout]
> b''
> 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\Downloads\PhoenixSnapshot\etgtools\tweaker_tools.py", line 
> 577, in runGenerators
>     g.generate(module)
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\etgtools\sphinx_generator.py", 
> line 2902, in generate
>     self.generateModule(module)
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\etgtools\sphinx_generator.py", 
> line 2970, in generateModule
>     function(item)
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\etgtools\sphinx_generator.py", 
> line 3066, in generatePyClass
>     docstring.Dump()
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\etgtools\sphinx_generator.py", 
> line 2324, in Dump
>     return function(write)
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\etgtools\sphinx_generator.py", 
> line 2359, in DumpClass
>     png, map = inheritance_diagram.MakeInheritanceDiagram()
>   File 
> "C:\Users\Const\Downloads\PhoenixSnapshot\sphinxtools\inheritance.py", line 
> 298, in MakeInheritanceDia
> gram
>     fid = open(mapfile, 'rt')
> FileNotFoundError: [Errno 2] No such file or directory: 
> 'C:\\Users\\Const\\Downloads\\PhoenixSnapshot\\docs\\
> sphinx\\_static\\images\\inheritance\\CallLater_inheritance.png.map'
>
>  
>  
> (Note that this is after fixing errors created by the missing, 
> undocumented dependencies "dot.exe", "touch.exe", "C:\Cygwin", which I'll 
> document in another post.). 
>  
> The workaround was simple, once I figured out the problem is caused by the 
> documentation the "etg" command is trying to build. Simply use the 
> "--nodoc" option for all commands, e.g. "build.py. etg --nodoc". Sadly, 
> this means you can't view the documentation, which is not fun if you're 
> trying to improve the documentation.
>  
> I don't know the build system good enough to fix this issue. Hopefully the 
> explanation above might help someone else who might be able to fix it.
>  
> I'm using Windows 7.
>  
> By the way, should this type of thing be submitted as tickets (issues), or 
> is it too early in development to submit Phoenix issues?
>  
>
 
Update: The source of the above error is my dot.exe. I installed Graphviz 
to a get a new version of dot and now "build.py etg --nodoc" works. Sorry 
about that. I still had other issues, but was able to find solutions. I'll 
post about that later.
 
 

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