I have updated this package to use python 3. If you are currently using klipper-py3-git, please switch to using this package instead. It's now fully up to date. All future updates will go here and I will be removing klipper-py3-git at some point.
Search Criteria
Package Details: klipper-git r4940.e2d7c5981-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/klipper-git.git (read-only, click to copy) |
---|---|
Package Base: | klipper-git |
Description: | 3D printer firmware with motion planning on the host |
Upstream URL: | https://www.klipper3d.org/ |
Licenses: | GPL3 |
Conflicts: | klipper |
Provides: | klipper |
Submitter: | jade1 |
Maintainer: | dack |
Last Packager: | dack |
Votes: | 4 |
Popularity: | 0.000001 |
First Submitted: | 2018-10-19 05:10 (UTC) |
Last Updated: | 2023-03-21 07:03 (UTC) |
Dependencies (19)
- libusb (libusb-gitAUR)
- python-can
- python-cffi
- python-greenlet
- python-jinja
- python-pyserial
- git (git-gitAUR, git-glAUR) (make)
- arm-none-eabi-binutils (gcc-arm-none-eabi-binAUR) (optional, x86_64) – for ARM MCU firmware compilation
- arm-none-eabi-gcc (arm-none-eabi-gcc47-linaroAUR, arm-none-eabi-gcc48-linaroAUR, arm-none-eabi-gcc53-linaroAUR, arm-none-eabi-gcc49-linaroAUR, gcc-arm-none-eabi-binAUR) (optional, x86_64) – for ARM MCU firmware compilation
- arm-none-eabi-newlib (gcc-arm-none-eabi-binAUR) (optional, x86_64) – for ARM MCU firmware compilation
- avr-binutils (avr-binutils-219AUR, avr-binutils-220AUR) (optional) – for AVR MCU firmware compilation
- avr-gcc (avr-gcc-atmelAUR, avr-gcc-43AUR, avr-gcc-45AUR, avr-gcc-85AUR) (optional) – for AVR MCU firmware compilation
- avr-libc (avr-libc-tinyosAUR, avr-libc-16AUR, avr-libc-18AUR, avr-libc-debian-gitAUR, avr-libc-gitAUR, avr-libc-avrxmega3-svnAUR, avr-libc-avrxmega3AUR, avr-libc-atmega328pbAUR) (optional) – for AVR MCU firmware compilation
- avrdude (avrdude-svnAUR) (optional) – for flashing firmware on AVR MCU
- dfu-util (dfu-util-gitAUR) (optional) – for flashing firmware on STM32 MCUs
- ncurses (ncurses-gitAUR) (optional) – for choosing compilation config
- python-matplotlib (python-matplotlib-gitAUR) (optional) – for resonance measurement
- python-numpy (python-numpy-flameAUR, python-numpy-mkl-binAUR, python-numpy-gitAUR, python-numpy1AUR, python-numpy-mklAUR, python-numpy-mkl-tbbAUR) (optional) – for resonance measurement
- stm32flashAUR (stm32flash-gitAUR, stm32flashAUR) (optional) – for flashing firmware on STM MCU
Required by (1)
- moonraker-git (requires klipper)
Sources (4)
dack commented on 2023-03-21 07:13 (UTC)
dack commented on 2022-08-09 22:20 (UTC)
Moonraker expects the config examples and docs to be kept in their default locations, but this PKGBUILD moves them to /usr/share/klipper/examples and /usr/share/doc/klipper. As a result, moonraker will give warnings/errors. There is no configuration in moonraker for this - it just expects them to be in the standard location.
I worked around it as follows:
ln -s /usr/share/klipper/examples /usr/lib/klipper/config
ln -s /usr/share/doc/klipper /usr/lib/klipper/docs
I would recommend adding those symlinks to the PKGBUILD.
MarsSeed commented on 2022-06-16 18:31 (UTC) (edited on 2022-06-16 18:32 (UTC) by MarsSeed)
This application now needs Python 3:
wlhlm commented on 2022-01-30 10:17 (UTC)
I was trying to compile the Klipper MCU code and hit a hurdle and was wondering what the intention here is: As I understand it, the code is supposed to be compiled in /usr/lib/klipper
(as in cd /usr/lib/klipper; make menuconfig; make
). I the issue I've hit is that the build process requires running scripts which are located /usr/share/klipper/scripts
, but the Makefile expects the scripts to be in /usr/lib/klipper/scripts
. Am I supposed to manually copy the scripts there?
Also, the Makefile includes the following line:
PYTHON=python2
I guess it's pretty easy to overwrite by running make PYTHON=python
, you decide whether it's worth patching. Just letting you know in case you haven't stumbled upon this until now.
qubidt commented on 2022-01-07 20:46 (UTC)
sorry for the very late update but the PKGBUILD has been updated w/ the latest data dict file used in the tests
@wlhlm I addressed your comments. Fixed the permissions in the tmpfiles config. Hopefully that works, my rasbpi/printer isn't working ATM so I can't test it but it should work.
if anyone is confused about the permissions, I set them to 2775 because klipper (as part of normal operation) writes files directly to its source/config direectories (ugh) as part of normal operation (perhaps that's an indication that we should have this package in /opt/klipper
). the 0775 permissions I inherited from the original AUR package allow anyone in the klipper
group to write those files, but they would be inaccessible to other users. the setgid bit makes sure any generated files are also owned by the klipper
group so other users in that group can likewise write to them (e.g. the klipper
user itself)
wlhlm commented on 2021-12-31 10:19 (UTC) (edited on 2021-12-31 10:19 (UTC) by wlhlm)
There currently is a mismatch of directory permissions between the package()
script and the tmpfiles configuration installed with this package. package()
sets permissions on /etc/klipper
to 2775, however the tmpfiles configuration sets it to 0755 every time on boot.
One way this surfaces is when upgrading as pacman will show the following:
:: Processing package changes...
(1/1) upgrading klipper-py3-git [############################################################] 100%
warning: directory permissions differ on /etc/klipper/
filesystem: 755 package: 2775
warning: directory permissions differ on /var/lib/klipper/
filesystem: 755 package: 2755
wlhlm commented on 2021-12-25 01:21 (UTC) (edited on 2022-01-01 22:00 (UTC) by wlhlm)
Thank you for bringing the Klipper package forward into the Python 3 era.
Few minor suggestions:
- Since
dfu-util
is also in popular use for flashing STM32 MCUs, I think adding it to the optional dependencies makes sense. - As noted in
fluidd-git
, addinggit
as a dependency for AUR packages is superfluous asbase-devel
is assumed to be installed already.- EDIT: I was mistaken,
git
is not part ofbase-devel
. Apologies.
- EDIT: I was mistaken,
bobobo1618 commented on 2021-04-04 08:51 (UTC) (edited on 2021-04-04 08:52 (UTC) by bobobo1618)
A workaround for missing python2-pyserial:
curl -O https://raw.githubusercontent.com/archlinux/svntogit-community/fa67d039a4f5c7462af38e62ceec14249f56685b/python-pyserial/trunk/PKGBUILD
makepkg
pacman -U python2-pyserial-3.5-1-any.pkg.*
Pinned Comments
dack commented on 2023-03-21 07:13 (UTC)
I have updated this package to use python 3. If you are currently using klipper-py3-git, please switch to using this package instead. It's now fully up to date. All future updates will go here and I will be removing klipper-py3-git at some point.