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

py3-problem (AttributeError, type object 'AsmCmdAddWorkplane' has no attribute 'getName') #14

Closed
looooo opened this issue Jun 30, 2018 · 4 comments

Comments

@looooo
Copy link
Contributor

looooo commented Jun 30, 2018

FreeCAD doesn't start with this workbench installed using the link-stage branch. This problem is maybe related to py3. I haven't got solvespace and pysolvespace installed, so this could be also a problem. Looking at the code it seems like the alternative solver is imported if solvespace is not available.

@realthunder
Copy link
Owner

I am using a lot of metaclass functionality in python. Python3 has different syntax of setting metaclass. I used to use future for working in both 2 and 3, but the future module is not included in Windows libpack or AppImage. Do you know how to pre-package the future module?

@realthunder
Copy link
Owner

The commit that I reverted the future and past module is 15babab

@looooo
Copy link
Contributor Author

looooo commented Jul 1, 2018

I guess there is only one solution to this problem:
include the future module in freecad for windows! such a shame it's not included.

edit.: Ah I assumed __future__ is the same as future but actually it's not. I try to add the with_metaclass implementation to assembly3.

@looooo
Copy link
Contributor Author

looooo commented Jul 29, 2018

I guess this is solved with including six.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants