View Issue Details

IDProjectCategoryView StatusLast Update
0009164Talerwallet-corepublic2024-10-17 09:42
Reporterericherman Assigned ToFlorian Dold  
PrioritynoneSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Target Version0.14 
Summary0009164: python dependency does not include non-default modules
DescriptionThe README clearly indicates that python>=3.8 is a requirement: https://git.taler.net/wallet-core.git/tree/README#n8

However, a typical python3 install may not include python's "distutils", which is a requirement of building wallet-core.

without python's distutils, ./configure fails with:

info: running with python sys.version_info(major=3, minor=11, micro=2, releaselevel='final', serial=0)
Traceback (most recent call last):
  File "/home/debian/src/taller/wallet-core/build-system/configure.py", line 7, in <module>
    import talerbuildconfig as tbc
  File "/home/debian/src/taller/wallet-core/build-system/taler-build-scripts/talerbuildconfig.py", line 35, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'


How should the need for python3's distutils module be reflected in the README?
Steps To Reproduce# Start with a fresh installed OS or VM, for instance I used http://cloud.debian.org/images/cloud/bookworm/20240901-1857/debian-12-genericcloud-amd64-20240901-1857.qcow2 in my testing.

# install dependencies declared in the README
sudo apt-get update
sudo apt-get install \
                python3 \
                nodejs \
                jq \
                npm \
                zip
sudo npm install -g pnpm

git clone git://git.taler.net/wallet-core.git
cd wallet-core
./bootstrap
./configure --prefix=/tmp/wallet-core
Additional InformationNaturally, this is trivially addressed by installing the dependency.
(With the Debian test system as I used, that would be add an "apt-get install python3-distutils".)
TagsNo tags attached.

Activities

Florian Dold

2024-10-17 09:42

manager   ~0023541

I've replaced the usage of distutils with shutil, which is part of the python standard library.

Issue History

Date Modified Username Field Change
2024-09-03 15:15 ericherman New Issue
2024-09-03 15:15 ericherman Status new => assigned
2024-09-03 15:15 ericherman Assigned To => Florian Dold
2024-10-17 09:42 Florian Dold Status assigned => resolved
2024-10-17 09:42 Florian Dold Resolution open => fixed
2024-10-17 09:42 Florian Dold Note Added: 0023541
2024-10-17 09:42 Florian Dold Target Version => 0.14