Hi,<div><br></div><div>I have Mark Summerfield's book on Rapid gui development with Python and Qt and followed the link in Appendix A and found "dip".</div><div><br></div><div>I have Python 2.6.2. The web-site states it works with 2.6, 2.7 and 3.x, I realise it is 0.1 and is bound to have problems, but...</div>
<div><br></div><div>First problem after installation was that the "shebang" doesn't work with cygwin bash and Windows XP i.e. when you just run dip-builder it returns a complaint of "no such file" for /c/Python26/Scripts/dip-builder - Python doesn't understand bash paths.</div>
<div><br></div><div>Next problem (after explicitly running dip-builder in the Scripts directory) was the final line:</div><div><br></div><div><div>wres12386#1(/c/Python26/Scripts)$ python dip-builder</div><div>  File "dip-builder", line 93</div>
<div>    sys.exit(app.exec())</div><div>                    ^</div><div>SyntaxError: invalid syntax</div><div>[exited with 1]</div></div><div><br></div><div>A quick look at the Qt documentation for QApplication shows it should be app.exec_()</div>
<div><br></div><div>So that script can't work with ANY version of Python :-)</div><div><br></div><div>Fixed that, then it complained with:</div><div><br></div><div><div>wres12386#1(/c/Python26/Scripts)$ python dip-builder</div>
<div>Traceback (most recent call last):</div><div>  File "dip-builder", line 28, in <module></div><div>    from dip.plugins import PluginManager</div><div>  File "c:\Python26\lib\site-packages\dip\plugins\__init__.py", line 21, in <module></div>
<div>    from .i_extension_point import IExtensionPoint</div><div>  File "c:\Python26\lib\site-packages\dip\plugins\i_extension_point.py", line 16, in <module></div><div>    from dip.model import Interface, List, Str</div>
<div>  File "c:\Python26\lib\site-packages\dip\model\__init__.py", line 45, in <module></div><div>    from .adapt import adapt</div><div>  File "c:\Python26\lib\site-packages\dip\model\adapt.py", line 21</div>
<div>    def adapt(*adapted, to):</div><div>                         ^</div><div>SyntaxError: invalid syntax</div><div>[exited with 1]</div></div><div><br></div><div>Not sure what this error is - haven't investigated it, thought it might be advisable to re-check the versions of Python it is supposed to work with. I realise I don't have the latest 2.6.x, but I thought before I go to a lot of trouble downloading other versions of Python (I do not want to go to 3.x - I need to stay with 2.x), I thought I would ask the question:</div>
<div><br></div><div>Exactly what version of Python has anybody ACTUALLY got the dip distribution working with? :-)</div><div><br></div><div>In the meantime, I think I'll just go back to reading the book...</div><div><br>
</div><div>Thanks</div><div>Peter</div><div><br></div><div><br></div>