bug: AUR package wants to use python but does not find any preset version
ferretwithaberet opened this issue · 0 comments
ferretwithaberet commented
Describe the Bug
I am not sure why this is happening, I am trying to install tlpui
from AUR and it fails, here are some logs to help:
==> Making package: tlpui 2:1.6.5-1 (Mi 10 apr 2024 23:19:15 +0300)
==> Retrieving sources...
-> Found tlpui-1.6.5.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
tlpui-1.6.5.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: tlpui
==> Making package: tlpui 2:1.6.5-1 (Mi 10 apr 2024 23:19:16 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found tlpui-1.6.5.tar.gz
==> Validating source files with sha256sums...
tlpui-1.6.5.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting tlpui-1.6.5.tar.gz with bsdtar
==> Sources are ready.
==> Making package: tlpui 2:1.6.5-1 (Mi 10 apr 2024 23:19:21 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
No preset version installed for command python
Please install a version by running one of the following:
asdf install python 3.8
or add one of the following versions in your config file at /home/ferret/.tool-versions
python 3.11.0
python 3.12.1
python 3.12.3
==> ERROR: A failure occurred in build().
Aborting...
-> error making: tlpui-exit status 4
-> Failed to install the following packages. Manual intervention is required:
tlpui - exit status 4
ferret@FX505DT in ~
$ cat /home/ferret/.tool-versions
nodejs 21.6.0
python 3.12.3
ferret@FX505DT in ~
$ python -V
Python 3.12.3
ferret@FX505DT in ~
$ which python
/home/ferret/.asdf/shims/python
I tried to use both asdf global python system
and asdf global python latest
, neither worked.
Steps to Reproduce
- Install asdf using the "Bash & Git" method;
- Add python plugin to asdf;
- Install latest python using
asdf install python latest
; - Set up global python version with
asdf global python latest
; - Try installing a package from AUR that uses python in it's pkgbuild, for example
tlpui
.
Expected Behaviour
asdf
should have python set and the build should work.
Actual Behaviour
asdf
cannot find a preset version for python.
Environment
OS:
Linux FX505DT 6.6.25-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 14:16:56 +0000 x86_64 GNU/Linux
SHELL:
GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
BASH VERSION:
5.2.26(1)-release
ASDF VERSION:
v0.13.1-0586b37
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/ferret/.asdf
ASDF_DIR=/home/ferret/.asdf
ASDF_CONFIG_FILE=/home/ferret/.asdfrc
ASDF INSTALLED PLUGINS:
bun https://github.com/cometkim/asdf-bun.git main e503786
nodejs https://github.com/asdf-vm/asdf-nodejs.git master c5b7c40
python https://github.com/danhper/asdf-python.git master 5e277e2
asdf plugins affected (if relevant)
python