Skip to content

Fix: DispatchError: extrudeLinear 0 methods found#117

Open
bosd wants to merge 1 commit into
joshreve:masterfrom
bosd:Fix-Dispatcherror
Open

Fix: DispatchError: extrudeLinear 0 methods found#117
bosd wants to merge 1 commit into
joshreve:masterfrom
bosd:Fix-Dispatcherror

Conversation

@bosd

@bosd bosd commented Jul 16, 2023

Copy link
Copy Markdown

After using the latest docker file #115 and cadquery I got the following error message:
"DispatchError: ('extrudeLinear: 0 methods found'
as mentioned in: https://groups.google.com/g/cadquery/c/Zk1GuvDjkOE

This fixes that..

@bosd

bosd commented Jul 16, 2023

Copy link
Copy Markdown
Author
Traceback (most recent call last):
  File "/opt/conda/envs/myenv/lib/python3.10/site-packages/cadquery/utils.py", line 47, in __call__
    return super().__call__(*args, **kwargs)
  File "/opt/conda/envs/myenv/lib/python3.10/site-packages/multimethod/__init__.py", line 313, in __call__
    func = self[tuple(func(arg) for func, arg in zip(self.type_checkers, args))]
  File "/opt/conda/envs/myenv/lib/python3.10/site-packages/multimethod/__init__.py", line 307, in __missing__
    raise DispatchError(msg, types, keys)
multimethod.DispatchError: ('extrudeLinear: 0 methods found', (<class 'type'>,), [])

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/src/dactyl_manuform.py", line 4361, in <module>
    run()
  File "/app/src/dactyl_manuform.py", line 4314, in run
    mod_r, tmb_r = model_side(side="right")
  File "/app/src/dactyl_manuform.py", line 4168, in model_side
    main_shape = add([main_shape, thumbcaps(side=side)])
  File "/app/src/dactyl_manuform.py", line 898, in thumbcaps
    return default_thumbcaps()
  File "/app/src/dactyl_manuform.py", line 979, in default_thumbcaps
    t1 = default_thumb_1x_layout(keycap(1), cap=True)
  File "/app/src/dactyl_manuform.py", line 336, in keycap
    return choc_cap(*args, **kwargs)
  File "/app/src/dactyl_manuform.py", line 403, in choc_cap
    k1 = extrude_poly(outer_poly=k1, height=0.1)
  File "/app/src/helpers_cadquery.py", line 220, in extrude_poly
    cq.Solid.extrudeLinear(outerWire=outer_wires, innerWires=inner_wires, vecNormal=cq.Vector(0, 0, height)))
  File "/opt/conda/envs/myenv/lib/python3.10/site-packages/cadquery/utils.py", line 49, in __call__
    return next(iter(self.values()))(*args, **kwargs)
TypeError: Solid.extrudeLinear() got an unexpected keyword argument 'outerWire'
(myenv) root@5ae4d45132d3:/app/src# python dactyl_manuform.py

@bosd
bosd force-pushed the Fix-Dispatcherror branch from ecd0faf to 82d7a41 Compare July 16, 2023 16:04
@robertrosman robertrosman mentioned this pull request Jul 3, 2024
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

Successfully merging this pull request may close these issues.

1 participant