Syntax error in PythonCad/Generic/layer.py
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
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?
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