You are not logged in.
Pages: 1
So this all started in me trying to install waydroid, failing due to the inability to resolve python-gbinder.
So I tried to manually install python-gbinder!
==> Making package: python-gbinder 1.1.2-1 (Sun 21 Apr 2024 08:16:15 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating python-gbinder git repo...
==> Validating source files with sha512sums...
python-gbinder ... Skipped
==> Extracting sources...
-> Creating working copy of python-gbinder git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Traceback (most recent call last):
File "/home/danie/python-gbinder/src/python-gbinder/setup.py", line 2, in <module>
from distutils.core import setup, Extension
ModuleNotFoundError: No module named 'distutils'
==> ERROR: A failure occurred in build().
Aborting...
I've figured out that this is likely an incompatibility with python 3.12 and python-gbinder, as the module distutils was removed in python 3.12 (supposedly).
So I tried installing python 3.10! which didn't work because when running python3 it still reports python 3.12.3!!
I tried all sorts of funny shit
[danie@danie ~]$ sudo pacman -Rns python312
error: target not found: python312
[danie@danie ~]$ sudo pacman -Rns python3.12
error: target not found: python3.12
[danie@danie ~]$ sudo pacman -Rns python3123
error: target not found: python3123
[danie@danie ~]$ sudo pacman -Rns python3.12.3
error: target not found: python3.12.3
[danie@danie ~]$ sudo pacman -Rns python3-12-3
error: target not found: python3-12-3
[danie@danie ~]$ sudo pacman -Rns python3
error: target not found: python3
[danie@danie ~]$ sudo pacman -Rns python3-12
error: target not found: python3-12
[danie@danie ~]$
Weird thing is that when attempting to uninstall python 3.10 after a reboot, it fails to uninstall due to it being a dependency for loads of things.
I have both python 3.10.4 and 3.12.3 installed now, as running python3.10 runs python 3.10.4, but running python3 runs python 3.12.3.
What can I even do about this? Am I doing it all wrong again like I was with wine?
Also, yes I'm using the linux-zen kernel.
Offline
python-gbinder 1.1.2-1 builds for me in a clean chroot when testing is not enabled using python 3.11 and using python 3.12 when testing is enabled. python-setuptools provides a bundled copy of distutils and the PKGBUILD includes python-setuptools in its makedepends array.
Last edited by loqs (2024-04-21 18:54:25)
Offline
Answer to topic title: You don't.
This is obviously an XY Problem.
Last edited by yochananmarqos (2024-04-21 21:19:16)
Offline
Answer to topic title: You don't.
This is obviously an XY Problem.
[danie@danie waydroid]$ makepkg -si
==> Making package: waydroid 1.4.2-1 (Mon 22 Apr 2024 05:00:11 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python-gbinder
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> lxc
-> python-gbinder
-> nftables
-> dnsmasq
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
That's the problem. python-gbinder isn't even a pacman package, as far as I know its an AUR package. Don't know why it's attempting to install it with pacman.
python-gbinder 1.1.2-1 builds for me in a clean chroot when testing is not enabled using python 3.11 and using python 3.12 when testing is enabled. python-setuptools provides a bundled copy of distutils and the PKGBUILD includes python-setuptools in its makedepends array.
I already have python-setuptools, just reinstalled it to confirm that's not the issue and it says the exact same thing. I'm not sure what you mean by when testing is enabled? Google didn't answer that one for me either.
Last edited by 6650xt (2024-04-22 17:33:44)
Offline
[danie@danie waydroid]$ makepkg -si
That's the problem. python-gbinder isn't even a pacman package, as far as I know its an AUR package. Don't know why it's attempting to install it with pacman.
Because you told makepkg to. See the -s, --syncdeps section of makepkg.8 You can not build a package without all its dependencies being installed. If an AUR package depends on another AUR package that other AUR package must be built and installed first.
loqs wrote:python-gbinder 1.1.2-1 builds for me in a clean chroot when testing is not enabled using python 3.11 and using python 3.12 when testing is enabled. python-setuptools provides a bundled copy of distutils and the PKGBUILD includes python-setuptools in its makedepends array.
I already have python-setuptools, just reinstalled it to confirm that's not the issue and it says the exact same thing. I'm not sure what you mean by when testing is enabled? Google didn't answer that one for me either.
If testing is not enabled then python3.12 would not be provided by the system python package. Which would mean downgrading the python system package would not have any impact.
What is the output of
type -a python
pacman -Qi python python-setuptools
pacman-conf
pip show setuptool
Last edited by loqs (2024-04-22 17:56:48)
Offline
6650xt wrote:[danie@danie waydroid]$ makepkg -si
That's the problem. python-gbinder isn't even a pacman package, as far as I know its an AUR package. Don't know why it's attempting to install it with pacman.
Because you told makepkg to. See the -s, --syncdeps section of makepkg.8 You can not build a package without all its dependencies being installed. If an AUR package depends on another AUR package that other AUR package must be built and installed first.
6650xt wrote:loqs wrote:python-gbinder 1.1.2-1 builds for me in a clean chroot when testing is not enabled using python 3.11 and using python 3.12 when testing is enabled. python-setuptools provides a bundled copy of distutils and the PKGBUILD includes python-setuptools in its makedepends array.
I already have python-setuptools, just reinstalled it to confirm that's not the issue and it says the exact same thing. I'm not sure what you mean by when testing is enabled? Google didn't answer that one for me either.
If testing is not enabled then python3.12 would not be provided by the system python package. Which would mean downgrading the python system package would not have any impact.
What is the output oftype -a python pacman -Qi python python-setuptools pacman-conf pip show setuptool
makes me think i destroyed linux
[danie@danie ~]$ type -a python
pacman -Qi python python-setuptools
pacman-conf
pip show setuptool
bash: type: python: not found
Name : python310
Version : 3.10.14-1
Description : Next generation of the python high-level scripting language, version 3.10
Architecture : x86_64
URL : https://www.python.org/
Licenses : custom
Groups : None
Provides : python=3.10.14
Depends On : bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib
Optional Deps : python-setuptools [installed]
python-pip
sqlite [installed]
mpdecimal: for decimal [installed]
xz: for lzma [installed]
tk: for tkinter [installed]
Required By : apparmor cython dbus-python drkonqi flatpak gdb gdb-common kwin node-gyp
python-autocommand python-certifi python-distutils-extra python-docutils
python-fastjsonschema python-gobject python-inflect python-jaraco.context
python-jaraco.functools python-jaraco.text python-more-itertools python-ordered-set
python-packaging python-platformdirs python-psutil python-pygdbmi python-pyqt5-sip
python-tomli python-tqdm python-trove-classifiers python-typing_extensions
python-urllib3 samba smbclient steam tracker3 vapoursynth
Optional For : cifs-utils clang git glib2 gstreamer gupnp i2c-tools imath iproute2 ki18n ldb
libevent libftdi libieee1284 libimobiledevice libnewt libplist libxml2 libxslt lirc
net-snmp pcsclite plasma-firewall talloc tdb tevent usbutils util-linux-libs
valgrind xfsprogs
Conflicts With : None
Replaces : None
Installed Size : 54.16 MiB
Packager : Unknown Packager
Build Date : Sun 21 Apr 2024 07:50:17 PM CEST
Install Date : Sun 21 Apr 2024 08:10:17 PM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : None
Name : python-setuptools
Version : 1:69.0.3-4
Description : Easily download, build, install, upgrade, and uninstall Python packages
Architecture : any
URL : https://pypi.org/project/setuptools/
Licenses : PSF
Groups : python-build-backend
Provides : python-distribute
Depends On : python-jaraco.text python-more-itertools python-ordered-set python-packaging
python-platformdirs python-tomli python-validate-pyproject
Optional Deps : None
Required By : None
Optional For : python310
Conflicts With : None
Replaces : python-distribute
Installed Size : 4.68 MiB
Packager : David Runge <dvzrv@archlinux.org>
Build Date : Sun 25 Feb 2024 10:15:37 AM CET
Install Date : Mon 22 Apr 2024 07:42:50 PM CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 1
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = https://mirror.dkm.cz/archlinux/core/os/x86_64
Server = https://mirror.moson.org/arch/core/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/core/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/core/os/x86_64
Server = https://mirror.sunred.org/archlinux/core/os/x86_64
Server = https://mirror.f4st.host/archlinux/core/os/x86_64
[extra]
Usage = All
Server = https://mirror.dkm.cz/archlinux/extra/os/x86_64
Server = https://mirror.moson.org/arch/extra/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/extra/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/extra/os/x86_64
Server = https://mirror.sunred.org/archlinux/extra/os/x86_64
Server = https://mirror.f4st.host/archlinux/extra/os/x86_64
[multilib]
Usage = All
Server = https://mirror.dkm.cz/archlinux/multilib/os/x86_64
Server = https://mirror.moson.org/arch/multilib/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/multilib/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/multilib/os/x86_64
Server = https://mirror.sunred.org/archlinux/multilib/os/x86_64
Server = https://mirror.f4st.host/archlinux/multilib/os/x86_64
bash: pip: command not found
tried all at once because type -a python seemed to kinda.. fail
Offline
The python310 package is not compatible with any python package from the Arch repositories such as the python-setuptools 1:69.0.3-4 installed on your system. If you insist on using python310 you must build custom variants of every python package. I suggest instead you install the system python package remove python310 then build and install python-gbinder's dependencies before building python-gbinder.
Offline
I do not insist on using it, I infact tried uninstalling it after it didn't work when building python-gbinder, unsurprisingly.
[danie@danie ~]$ sudo pacman -Rns python310
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python310 breaks dependency 'python' required by apparmor
:: removing python310 breaks dependency 'python' required by cython
:: removing python310 breaks dependency 'python' required by dbus-python
:: removing python310 breaks dependency 'python' required by drkonqi
:: removing python310 breaks dependency 'python' required by flatpak
:: removing python310 breaks dependency 'python' required by gdb
:: removing python310 breaks dependency 'python' required by gdb-common
:: removing python310 breaks dependency 'python' required by kwin
:: removing python310 breaks dependency 'python' required by node-gyp
:: removing python310 breaks dependency 'python' required by python-attrs
:: removing python310 breaks dependency 'python' required by python-autocommand
:: removing python310 breaks dependency 'python' required by python-certifi
:: removing python310 breaks dependency 'python' required by python-distutils-extra
:: removing python310 breaks dependency 'python' required by python-docutils
:: removing python310 breaks dependency 'python' required by python-fastjsonschema
:: removing python310 breaks dependency 'python' required by python-gobject
:: removing python310 breaks dependency 'python' required by python-inflect
:: removing python310 breaks dependency 'python' required by python-jaraco.context
:: removing python310 breaks dependency 'python' required by python-jaraco.functools
:: removing python310 breaks dependency 'python' required by python-jaraco.text
:: removing python310 breaks dependency 'python' required by python-more-itertools
:: removing python310 breaks dependency 'python' required by python-ordered-set
:: removing python310 breaks dependency 'python' required by python-packaging
:: removing python310 breaks dependency 'python' required by python-pip
:: removing python310 breaks dependency 'python' required by python-platformdirs
:: removing python310 breaks dependency 'python' required by python-psutil
:: removing python310 breaks dependency 'python' required by python-pycparser
:: removing python310 breaks dependency 'python' required by python-pygdbmi
:: removing python310 breaks dependency 'python' required by python-pyqt5-sip
:: removing python310 breaks dependency 'python' required by python-tomli
:: removing python310 breaks dependency 'python' required by python-tqdm
:: removing python310 breaks dependency 'python' required by python-trove-classifiers
:: removing python310 breaks dependency 'python' required by python-typing_extensions
:: removing python310 breaks dependency 'python' required by python-urllib3
:: removing python310 breaks dependency 'python' required by samba
:: removing python310 breaks dependency 'python' required by smbclient
:: removing python310 breaks dependency 'python' required by steam
:: removing python310 breaks dependency 'python' required by tracker3
:: removing python310 breaks dependency 'python' required by vapoursynth
[danie@danie ~]$
If there is a way to get past these please let me know.
Offline
Did you install the python package before attempting to remove python310?
Offline
I swear to fucking god it returned a package not found when I tried it before.
No. Now I did.
Either way, running makepkg -si in python-gbinder still returns the 'No module named 'distutils'', and yes I've manually installed/reinstalled all the dependencies listed on the AUR page of python-gbinder.
If it's still relevant, the output of the commands you sent is now:
[danie@danie ~]$ type -a python
python is /usr/bin/python
[danie@danie ~]$ pacman -Qi python python-setuptools
Name : python
Version : 3.11.8-1
Description : The Python programming language
Architecture : x86_64
URL : https://www.python.org/
Licenses : PSF-2.0
Groups : None
Provides : python3 python-externally-managed
Depends On : bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib tzdata
Optional Deps : python-setuptools: for building Python packages using tooling that is usually bundled with
Python [installed]
python-pip: for installing Python packages using tooling that is usually bundled with Python
[installed]
python-pipx: for installing Python software not packaged on Arch Linux
sqlite: for a default database integration [installed]
mpdecimal: for decimal [installed]
xz: for lzma [installed]
tk: for tkinter [installed]
Required By : apparmor cython dbus-python drkonqi flatpak gdb gdb-common kwin node-gyp
python-attrs python-autocommand python-certifi python-distutils-extra python-docutils
python-fastjsonschema python-gobject python-inflect python-jaraco.context
python-jaraco.functools python-jaraco.text python-more-itertools python-ordered-set
python-packaging python-pip python-platformdirs python-psutil python-pycparser
python-pygdbmi python-pyqt5-sip python-tomli python-tqdm python-trove-classifiers
python-typing_extensions python-urllib3 samba smbclient steam tracker3 vapoursynth
Optional For : cifs-utils clang git glib2 gstreamer gupnp i2c-tools imath iproute2 ki18n ldb
libevent libftdi libieee1284 libimobiledevice libnewt libplist libxml2 libxslt lirc
net-snmp pcsclite plasma-firewall talloc tdb tevent usbutils util-linux-libs
valgrind xfsprogs
Conflicts With : None
Replaces : python3 python-externally-managed
Installed Size : 74.64 MiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Mon 12 Feb 2024 03:50:05 PM CET
Install Date : Mon 22 Apr 2024 08:23:24 PM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Name : python-setuptools
Version : 1:69.0.3-4
Description : Easily download, build, install, upgrade, and uninstall Python packages
Architecture : any
URL : https://pypi.org/project/setuptools/
Licenses : PSF
Groups : python-build-backend
Provides : python-distribute
Depends On : python-jaraco.text python-more-itertools python-ordered-set python-packaging
python-platformdirs python-tomli python-validate-pyproject
Optional Deps : None
Required By : None
Optional For : python python-cffi
Conflicts With : None
Replaces : python-distribute
Installed Size : 4.68 MiB
Packager : David Runge <dvzrv@archlinux.org>
Build Date : Sun 25 Feb 2024 10:15:37 AM CET
Install Date : Mon 22 Apr 2024 08:23:17 PM CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
[danie@danie ~]$ pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 1
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = https://mirror.dkm.cz/archlinux/core/os/x86_64
Server = https://mirror.moson.org/arch/core/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/core/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/core/os/x86_64
Server = https://mirror.sunred.org/archlinux/core/os/x86_64
Server = https://mirror.f4st.host/archlinux/core/os/x86_64
[extra]
Usage = All
Server = https://mirror.dkm.cz/archlinux/extra/os/x86_64
Server = https://mirror.moson.org/arch/extra/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/extra/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/extra/os/x86_64
Server = https://mirror.sunred.org/archlinux/extra/os/x86_64
Server = https://mirror.f4st.host/archlinux/extra/os/x86_64
[multilib]
Usage = All
Server = https://mirror.dkm.cz/archlinux/multilib/os/x86_64
Server = https://mirror.moson.org/arch/multilib/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/multilib/os/x86_64
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/multilib/os/x86_64
Server = https://mirror.sunred.org/archlinux/multilib/os/x86_64
Server = https://mirror.f4st.host/archlinux/multilib/os/x86_64
[danie@danie ~]$ pip show setuptool
WARNING: Package(s) not found: setuptool
[danie@danie ~]$ pip show setuptools
Name: setuptools
Version: 69.0.3
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License:
Location: /usr/lib/python3.11/site-packages
Requires: jaraco.text, more-itertools, ordered-set, packaging, platformdirs, tomli, validate-pyproject
Required-by:
[danie@danie ~]$
Last edited by 6650xt (2024-04-22 18:27:12)
Offline
What if you start python and try to import distutils?
$ python
Python 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils
>>>
Last edited by loqs (2024-04-22 18:30:52)
Offline
Returns no errors.
[danie@danie ~]$ python
Python 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils
>>> exit()
[danie@danie ~]$ cd python-gbinder/
[danie@danie python-gbinder]$ makepkg -si
==> Making package: python-gbinder 1.1.2-1 (Mon 22 Apr 2024 08:32:49 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating python-gbinder git repo...
==> Validating source files with sha512sums...
python-gbinder ... Skipped
==> Extracting sources...
-> Creating working copy of python-gbinder git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Traceback (most recent call last):
File "/home/danie/python-gbinder/src/python-gbinder/setup.py", line 2, in <module>
from distutils.core import setup, Extension
ModuleNotFoundError: No module named 'distutils'
==> ERROR: A failure occurred in build().
Aborting...
Last edited by 6650xt (2024-04-22 18:33:12)
Offline
I missed https://aur.archlinux.org/cgit/aur.git/ … binder#n27 calls `python3` not `python`.
What is the output of:
type -a python3
python3 -c 'import distutils'
Offline
[danie@danie ~]$ type -a python3
python3 is /usr/local/bin/python3
python3 is /usr/bin/python3
[danie@danie ~]$ python3 -c 'import distutils'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
Interesting.
Offline
If you remove the locally installed copy of python3 does that resolve the build failure?
Offline
Why do you have a custom/local build of python3 ? You might want to get rid of that.
Offline
Manually remove it in a file manager I assume? Or something with pacman?
Offline
pacman doesn't install anything into /usr/local you got that from "somewhere" else, so you need to remove it manually.
Last edited by V1del (2024-04-22 18:44:37)
Offline
So removing the locally installed python worked. Love y'all
Offline
Pages: 1