Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in current 0.22 development versions: Property container has no property 'Support' #86

Closed
johnsonm opened this issue May 2, 2024 · 3 comments
Labels

Comments

@johnsonm
Copy link
Contributor

johnsonm commented May 2, 2024

I have a project using Lattice2, and in current weekly builds I get:

21:38:39  pyException: Traceback (most recent call last):
  File "/var/home/johnsonm/.local/share/FreeCAD/Mod/lattice2/./lattice2BaseFeature.py", line 278, in onDocumentRestored
    self.disableAttacher(selfobj)
  File "/var/home/johnsonm/.local/share/FreeCAD/Mod/lattice2/./lattice2BaseFeature.py", line 272, in disableAttacher
    selfobj.setEditorMode(prop, 0 if enable else 2)
<class 'AttributeError'>: Property container has no property 'Support'

I previously reported this in FreeCAD/FreeCAD#13746 and was pointed to FreeCAD/FreeCAD#12714 where it was made clear that this breaking change was intentional to fix a real bug.

I suspect this is easy to reproduce, but merely loading CubeSet.FCStd from https://gitlab.com/mcdanlj/RSVPGameReplacementParts in the current weekly build is sufficient to demonstrate the problem.

(Because I'm a relatively new user of Lattice2 I imagine that I've made some mistakes in how I used it.)

Thanks for Lattice2! ☺

@johnsonm
Copy link
Contributor Author

johnsonm commented May 3, 2024

As far as I can tell, this means changing Support to AttachmentSupport to support 0.22 dev, but that wouldn't be backward compatible with older FreeCAD versions. (At least, making that change avoids the errors with current FreeCAD dev build.) But I don't know enough about the intent of that to know whether it's a correct change.

@DeepSOIC
Copy link
Owner

DeepSOIC commented May 3, 2024

yes, that's quite a pain.

I'm struggling to find time to maintain lattice2, so i recommend using stable freecad for now... i'll get to it eventually.

johnsonm added a commit to johnsonm/Lattice2 that referenced this issue May 4, 2024
@johnsonm
Copy link
Contributor Author

johnsonm commented May 4, 2024

I have now discovered that stable freecad Appimage doesn't display properly on my system, but with the PR I just pushed, I at least don't see any relevant errors on the console, and the pattern is simple enough that I believe my fix is right.

johnsonm added a commit to johnsonm/Lattice2 that referenced this issue May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants