PythoncadBugTraker item #3010051, was opened at 2010-06-01 21:12
Message generated for change (Comment added) made by matteoboscolo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=3010051&group_id=263167
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Critical Bugs
Group: Developer
>Status: Pending
>Resolution: Postponed
Priority: 5
Private: No
Submitted By: Stemby (stemby)
Assigned to: Matteo Boscolo (matteoboscolo)
Summary: [R38] 'property' object has no attribute 'setter'
Initial Comment:
Hi,
$ ./pythoncad_qt.py
Traceback (most recent call last):
File "./pythoncad_qt.py", line 15, in <module>
from Generic.application import Application
File "/home/carlo/pythoncad/PythonCAD/Generic/application.py", line 35, in <module>
from Kernel.document import *
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/document.py", line 33, in <module>
from Kernel.initsetting import *
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/initsetting.py", line 37, in <module>
from Kernel.Command.chamfercommand import ChamferCommand
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/Command/chamfercommand.py", line 26, in <module>
from Kernel.GeoComposedEntity.chamfer import Chamfer
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/GeoComposedEntity/chamfer.py", line 26, in <module>
from Kernel.GeoComposedEntity.objoint import *
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/GeoComposedEntity/objoint.py", line 39, in <module>
class ObjectJoint(GeometricalEntityComposed):
File "/home/carlo/pythoncad/PythonCAD/Generic/Kernel/GeoComposedEntity/objoint.py", line 72, in ObjectJoint
@trimMode.setter
AttributeError: 'property' object has no attribute 'setter'
Regards,
Carlo
----------------------------------------------------------------------
>Comment By: Matteo Boscolo (matteoboscolo)
Date: 2010-06-02 15:31
Message:
with R38 we start to use decoretor .
Decoretor are an easy way to create property in python .. less code :-)
I' don't know if we are gonna to remove the decoretor from our code or we
force pythoncad to work with 2.6 ..
Regards,
Matteo
----------------------------------------------------------------------
Comment By: Stemby (stemby)
Date: 2010-06-02 13:46
Message:
I'm using Python 2.5 (Debian Squeeze):
$ python
Python 2.5.5 (r255:77872, Apr 21 2010, 08:44:16)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Yes, I installed sympy:
$ dpkg -l|grep sympy
ii python-sympy 0.6.7-1.1
Computer Algebra System (CAS) in Python
I tried to use Python 2.6, and in fact it works. So the problem is the
Python version (Python CAD is not compatible with py2.5).
objoint.py is taken from Git...
Regards,
Carlo
----------------------------------------------------------------------
Comment By: Matteo Boscolo (matteoboscolo)
Date: 2010-06-02 06:57
Message:
which version of python are you using ?
have you install the sympy package?
could you send me the objoint.py module?
We are testing it in 2.6 and we not have this error ..
Regards,
Matteo
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1128790&aid=3010051&group_id=263167
|