Small suggestions: Klipper needs numpy and matplotlib for resonance measurements 1. python2-numpy
and python2-matplotlib
could be added as optional dependencies.
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 (python-pyserial-labgrid-gitAUR)
- 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-gitAUR, python-numpy1AUR, python-numpy-mkl-binAUR, 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)
wlhlm commented on 2021-04-03 20:13 (UTC)
patlefort commented on 2021-03-29 10:09 (UTC)
Dependency no longer exists: python2-pyserial
.
novenary commented on 2021-03-28 14:28 (UTC)
The AVR toolchain, libusb and ncurses should all be optional dependencies as they are only necessary for building and flashing the MCU firmware, and are not required during normal operation. stm32flash is also not x86_64-specific, the PKGBUILD includes ARM in its arch array.
celogeek commented on 2020-01-24 18:13 (UTC)
hi, thanks for the patch
also I have dig more, and compile all have alert on build directory that appear in the binary package.
I have fix this way (also the way to bundle python package):
- python2 -m compileall klippy
- python2 klippy/chelper/__init__.py
+ python2 -m compileall -d /opt/klipper/klippy klippy
+ python2 -O -m compileall -d /opt/klipper/klippy klippy
+ python2 klippy/chelper/__init__.py
So I add an optimize compilation after the usual one, and include the final destination in the compile process.
loredan13 commented on 2020-01-21 08:12 (UTC)
Okay, thank you everyone, everything you said seems valid, I will include your changes in the package.
dack, about the logs, I removed that option with the intention of letting systemd-journal take care of it, but I wasn't aware of thread handling in klipper. I'll revert it to log file
dack commented on 2020-01-21 07:38 (UTC)
Apologies for repeating myself - I accidentally deleted my previous comment.
I think it would be better to go back to logging to a file (via the -l option), rather than letting systemd/journald do the logging. When logging to stdout (journald), klipper warns "No log file specified! Severe timing issues may result!". From looking at their code, logging to a file is handled completely differently. It uses a separate thread to log asynchronously to file. This would prevent log buffer issues from affecting time critical tasks. Logging to stdout is done in the main thread, which has the potential to cause issues.
celogeek commented on 2020-01-13 20:43 (UTC)
Hi,
The packaging also fail to include compile file and version file resulting in FIRMWARE_VERSION: ? in the log
I applied this change to fix this:
+ python2 scripts/make_version.py ARCHLINUX > klippy/.version
+ python2 -m compileall klippy
+ python2 klippy/chelper/__init__.py
GLOBIGNORE=.git cp -r * "$pkgdir/opt/klipper"
- chown -R klipper:klipper "$pkgdir/opt/klipper"
This way the package contains precompiled files and starts faster.
celogeek commented on 2020-01-11 10:09 (UTC) (edited on 2020-01-11 12:43 (UTC) by celogeek)
Hi,
I want to install this package and got this errors:
==> Starting pkgver()...
==> Updated version: klipper-git r2748.2f8ad5e6-1
==> Sources are ready.
==> Making package: klipper-git r2748.2f8ad5e6-1 (Sat 11 Jan 2020 11:04:18 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
chown: invalid user: ‘klipper:klipper’
==> ERROR: A failure occurred in package().
Aborting...
Error making: klipper-git
I guess the klipper exists at this stage
FIX:
instead of chown inside the install process, add this to your tempfile:
d /etc/klipper 0755 klipper klipper - -
z /etc/klipper/klipper.cfg 0644 klipper klipper - -
d /run/klipper 0755 klipper tty - -
Z /opt/klipper - klipper klipper - -
It will adjust automatically the right on config and opt directory
loredan13 commented on 2020-01-09 10:09 (UTC)
Sorry, I made a mistake of updating instructions without properly testing everything myself. I ended up reverting to /run/klipper/sock because /tmp/printer is not accessible by octoprint in current setup
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.