Giter VIP home page Giter VIP logo

print3r's People

Contributors

spiritdude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

print3r's Issues

thanks

your project is awesome :3

Cannot slice with Cura 5.x - missing fdmextruder.def.json file.

Steps to reproduce:

Use this Dockerfile:

FROM ubuntu:22.04

ARG BUILDARCH

ENV DEBIAN_FRONTEND=noninteractive
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  --mount=type=cache,target=/var/lib/apt,sharing=locked \
  apt update && apt install -y pkg-config autoconf automake libtool bison flex m4 libprotobuf-dev build-essential ninja-build python3 sudo python3-pip && \
  apt install -y --no-install-recommends ca-certificates libncurses-dev git slic3r openscad openscad-mcad python-is-python3 python3-venv wget
#RUN bash -c 'if [[ ${BUILDARCH} = "arm64" ]]; then arch=aarch64; else arch=${BUILDARCH}; fi; echo $arch && false'
RUN bash -c 'if [[ ${BUILDARCH} = "arm64" ]]; then arch=aarch64; elif [[ ${BUILDARCH} = "amd64" ]]; then arch="x86_64"; else arch=${BUILDARCH}; fi; wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-linux-${arch}.sh -O /tmp/cmake-3.24.2-linux.sh'
RUN chmod +x /tmp/cmake-3.24.2-linux.sh && /tmp/cmake-3.24.2-linux.sh --skip-license --prefix=/usr/local
RUN git clone https://github.com/Ultimaker/CuraEngine.git /build/CuraEngine && cd /build/CuraEngine
WORKDIR /build/CuraEngine
ENV CONAN_SYSREQUIRES_MODE=enabled
ENV CONAN_SYSREQUIRES_SUDO=0
RUN --mount=type=cache,target=/root/.cache,sharing=locked pip install conan --upgrade && conan config install https://github.com/ultimaker/conan-config.git && conan profile new default --detect --force && conan remote remove cura
RUN conan install . --build=missing --update
#RUN ls -la /root/.conan/data/rapidjson/1.1.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/ && false
#RUN ls cmake-build-release/conan | grep -i rapidjson && false
#RUN sed --in-place -E 's/rapidjson/RapidJSON/' CMakeLists.txt
RUN cmake --preset release -DCMAKE_BUILD_TYPE=release && cmake --build --preset release -DCMAKE_BUILD_TYPE=release
RUN cp /build/CuraEngine/build/Release/CuraEngine /usr/local/bin/CuraEngine
RUN rm -f /etc/apt/apt.conf.d/assume-yes; echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/assume-yes
RUN git clone https://github.com/Spiritdude/Print3r /build/print3r
WORKDIR /build/print3r
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  --mount=type=cache,target=/var/lib/apt,sharing=locked \
  --mount=type=cache,target=/root/.cpan,sharing=locked \
  make requirements CPAN='cpan -T'
RUN make install

RUN pip install octoprint-cli

WORKDIR /work

CMD print3r

Run this:

$ docker run --rm -it -v /Volumes/gv0/workspace/3d-printing/print3r:/root/.config/print3r -e PRINT3R_PRINTER=feestfabriek $(docker build -q .) print3r --slicer=cura-slicer --retraction-speed=50 --retraction-distance=0.2 --layer-height=0.2 --scad slice "cube(20)"

Actual output

[2022-10-13 05:01:13.568] [error] Couldn't find definition file with ID: fdmextruder
[2022-10-13 05:01:13.568] [error] Couldn't open JSON file:
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_disallowed_areas
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting nozzle_disallowed_areas
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_head_polygon
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_head_with_fans_polygon
[2022-10-13 05:01:13.574] [info] loading '/tmp/print3r-25-1-0.stl' took 0.00021004676818847656 seconds
[2022-10-13 05:01:13.574] [error] Trying to retrieve setting with no value given: material_shrinkage_percentage_z

I see that the fdmextruder file is commented out here (and has been for several years). So how is this supposed to work? Am I supposed to install that file myself or something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.