Menu

#45 Syntax error in PythonCad/Generic/layer.py

R37
closed-rejected
Bug (25)
5
2011-01-28
2011-01-28
No

Running gtkpycad.py directly from the git repo throws this at me:

misa@compaq-nx6325:~/pythoncad$ ./gtkpycad.py
Traceback (most recent call last):
File "./gtkpycad.py", line 38, in <module>
from PythonCAD.Generic import imageio
File "/home/misa/pythoncad/PythonCAD/Generic/imageio.py", line 36, in <module>
from PythonCAD.Generic import layer
File "/home/misa/pythoncad/PythonCAD/Generic/layer.py", line 477
def setAutosplit(self, as):
^
SyntaxError: invalid syntax

The ^ is pointing at the "as" keyword, which for some reason is used here as a variable.
Changing "as" to "state" everywhere in that function fixes things and gtk will start normally again.
Can I commit this to git?

Discussion

  • Matteo Boscolo

    Matteo Boscolo - 2011-01-28
    • milestone: --> R37
    • assigned_to: nobody --> matteoboscolo
    • status: open --> closed-rejected
     
  • Matteo Boscolo

    Matteo Boscolo - 2011-01-28

    Hi,

    You are using an old branch of the application with an old user interface.

    The new version of PythonCAD use the PyQt interface and is under the R38 branch .

    Regards,
    Matteo

     
MongoDB Logo MongoDB