#31 [R38] 'property' object has no attribute 'setter'

Developer
closed-postponed
5
2010-06-17
2010-06-01
Stemby
No

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

Discussion

  • Matteo Boscolo

    Matteo Boscolo - 2010-06-02

    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

     
  • Matteo Boscolo

    Matteo Boscolo - 2010-06-02
    • labels: --> Critical Bugs
    • milestone: --> Developer
    • assigned_to: nobody --> matteoboscolo
     
  • Stemby

    Stemby - 2010-06-02

    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

     
  • Matteo Boscolo

    Matteo Boscolo - 2010-06-02

    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

     
  • Matteo Boscolo

    Matteo Boscolo - 2010-06-02
    • status: open --> pending-postponed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-postponed --> closed-postponed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks