-
-
Notifications
You must be signed in to change notification settings - Fork 24
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 running brad_tee_and_heatset_nuts.py: AttributeError: 'Assembly' object has no attribute 'metadata' #29
Comments
Hi Sean,
I had to make a change to cadquery to support metadata (
CadQuery/cadquery#928) which was merged on Dec 10,
2021 so you'll need to upgrade to cadquery master to make it work.
Cheers,
Roger
…On Sun, Mar 13, 2022 at 4:46 AM Sean Leavey ***@***.***> wrote:
I'm using the current cq_warehouse repository HEAD (cc694aa
<cc694aa>),
and the latest published cadquery (2.1) and cq-editor (0.3.0dev) packages
from conda, and running the brad_tee_and_heatset_nuts.py example I'm
getting the following error:
Traceback (most recent call last):
File "/home/sean/Workspace/Repositories/cq_warehouse/examples/brad_tee_and_heatset_nuts.py", line 54, in <module>
cq.Workplane("XY")
File "/home/sean/Workspace/Repositories/cq_warehouse/src/cq_warehouse/extensions.py", line 944, in _clearanceHole
return self.fastenerHole(
File "/home/sean/Workspace/Repositories/cq_warehouse/src/cq_warehouse/extensions.py", line 876, in _fastenerHole
baseAssembly.metadata[baseAssembly.children[-1].name] = fastener
AttributeError: 'Assembly' object has no attribute 'metadata'
This happens on some of the others as well.
—
Reply to this email directly, view it on GitHub
<#29>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUNL25VZ2SYFI7TGWQ3UXUDU7WTNTANCNFSM5QTBQXRQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks, that worked. I thought I had made sure I had the latest versions of all of the packages but it seems I didn't get conda to update correctly. Reinstalling worked. There are still a bunch of errors running some of the examples - but not from lack of |
Please let me know about the errors, either here or on github. Are you
getting these errors running the cq_warehouse examples?
…On Mon, Mar 14, 2022 at 1:43 PM Sean Leavey ***@***.***> wrote:
Thanks, that worked. I thought I had made sure I had the latest versions
of all of the packages but it seems I didn't get conda to update correctly.
Reinstalling worked.
There are still a bunch of errors running some of the examples - but not
from lack of metadata - are these already known or should I submit new
reports for these?
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUNL25SMTPIX5WI4G7GOIG3U753CPANCNFSM5QTBQXRQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes. Using The following three examples fail. The rest are fine.
|
Thanks Sean. I'll try to recreate the problems you're seeing. I didn't know cadquery supported Python 3.10 yet so there are definitively some things to look into. |
It looks like at least some of the issues are related to makeNSidedSurface. I raised an issue here: CadQuery/cadquery#1030 I did my development with a version of cadquery from around the beginning of the year but I don't know if that's helpful as there hasn't been a release in a year. |
Looks like the version of OCP changed on Jan 13 (7.5.2 -> 7.5.3): CadQuery/cadquery#956 ... could be a nasty one. |
Fixed drafting with 4c81538 A non backwards compatible change was made to assembleEdges which required a minor fix. |
Should all work now after #30 Thanks for raising the issue. |
Works, thanks! |
I'm using the current
cq_warehouse
repository HEAD (cc694aa), and the latest publishedcadquery
(2.1) andcq-editor
(0.3.0dev) packages from conda, and running thebrad_tee_and_heatset_nuts.py
example I'm getting the following error:This happens on some of the others as well.
The text was updated successfully, but these errors were encountered: