Skip to content

make_case.py fails #22

@Sindar-sudo

Description

@Sindar-sudo

Hello!

I'm going through the process of making this keyboard, however, generating the case file fails for me with an error.
Trying to figure out what's wrong on my own, but perhaps you can find it faster...

Run python case/make_case.py \

python case/make_case.py
--switch mx
--mcu rp2040-zero
--mcu-socket-height 4.7
--battery none
--tenting none
--expose
--inner-index all

--thumb-type all-1u
--thumb-adjustment 0,0,0

--export-stl --no-show
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.12/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.12/x64/lib
##[debug]/usr/bin/bash -e /home/runner/work/_temp/b2ef90dc-3317-42a9-a661-1d0c72e5bff6.sh
Traceback (most recent call last):
Export success case/stl/apiaster-xiao-button.stl: True
File "/home/runner/work/apiaster/apiaster/case/make_case.py", line 84, in
from src.apiaster_case import make_case, get_mcu, get_switches
File "/home/runner/work/apiaster/apiaster/case/src/apiaster_case.py", line 30, in
main_svg = import_svg(SVG_FILE_MAIN)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/site-packages/build123d/importers.py", line 371, in import_svg
for face_or_wire, color_and_label in import_svg_document(
^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/site-packages/ocpsvg/svg.py", line 243, in
(transform(face_or_wire), metadata)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.12/x64/lib/python3.12/site-packages/ocpsvg/svg.py", line 209, in transform_f
return TopoDS.Wire(mirrored)
^^^^^^^^^^^
AttributeError: type object 'OCP.OCP.TopoDS.TopoDS' has no attribute 'Wire'. Did you mean: 'Wire_s'?
Error: Process completed with exit code 1.
##[debug]Finishing: Run Python command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions