View Issue Details

IDProjectCategoryView StatusLast Update
0004362Talerobsolete componentpublic2016-04-24 21:41
ReporterChristian Grothoff Assigned ToMarcello Stanisci Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityN/A
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004362: bank requires Python 3.4, fails to auto-detect
DescriptionThe bank right now requires Python 3.4, it is unhappy with Py2 or even just Python 3.5, and fails to find python3.4 unless $PYTHON is set explicitly.

The code should (probably) be (re)written to work with more Python versions (in particular definitively all 3.x-versions, including 3.5). Also, configure should check for common variants of Python installations (i.e. /usr/bin/ptyhon3.4) and auto-detect those even if PYTHON is not set explicitly.

Doing this right may involve transitioning to PyConfigure.
Steps To Reproduce$ ./configure --prefix=/home/grothoff/
checking for python... /usr/bin/python
checking if Python >= '3.4'... no
configure: error: in `/home/grothoff/research/taler-bank':
configure: error: No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.
See `config.log' for more details
$ export PYTHON=/usr/bin/python3.4
$ ./configure --prefix=/home/grothoff/
checking for python... /usr/bin/python3.4
checking if Python >= '3.4'... yes
checking if Python <= '4.0'... yes
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0004391 closedMarcello Stanisci configure does not detect missing Python.h anymore 

Activities

Florian Dold

2016-04-04 21:56

manager   ~0010371

The bank has been using pyconfigure for quite a while now. But it doesn't seem to be widely used, and there might be some issues with python3 support. If we fix anything in it, we should probably contribute it back.

Christian, I can't reproduce the problem with python3.5, but I'm on a different distro.

Note that right now we simply ask pyconfigure to find an interpreter >=3.4 ...

Christian Grothoff

2016-04-04 23:05

manager   ~0010373

I'm not saying that there is an issue with 3.5 in the source code, just that the configure script says it requires 3.4.

Florian Dold

2016-04-04 23:09

manager   ~0010374

Hmm, there must be some other issue. Calling PC_INIT with just one argument specifies the minimum version, not an exact version.

Also evident by the output you pasted above:
checking if Python >= '3.4'... yes
checking if Python <= '4.0'... yes

This looks like an issue with pyconfigure to me. Also the "<=" before 4.0 seems odd ...

Marcello Stanisci

2016-04-19 13:20

reporter   ~0010518

as said by the authors, pyconfigure was buggy. Leave this open until applying the patch

Florian Dold

2016-04-19 14:07

manager   ~0010520

Fixed in 9dceca7, we're using the (now fixed) pyconfigure again

Issue History

Date ModifiedUsernameFieldChange
2016-04-04 16:02Christian GrothoffNew Issue
2016-04-04 16:02Christian GrothoffStatusnew => assigned
2016-04-04 16:02Christian GrothoffAssigned To => Marcello Stanisci
2016-04-04 21:56Florian DoldNote Added: 0010371
2016-04-04 23:05Christian GrothoffNote Added: 0010373
2016-04-04 23:09Florian DoldNote Added: 0010374
2016-04-19 13:20Marcello StanisciNote Added: 0010518
2016-04-19 13:23Marcello StanisciRelationship addedrelated to 0004391
2016-04-19 14:07Florian DoldNote Added: 0010520
2016-04-19 14:07Florian DoldStatusassigned => informing
2016-04-19 14:07Florian DoldResolutionopen => fixed
2016-04-24 21:41Christian GrothoffStatusinforming => closed
2016-04-24 21:41Christian GrothoffFixed in Version => 0.0
2016-04-24 21:41Christian GrothoffTarget Version0.1 => 0.0
2022-08-23 18:26Christian GrothoffCategorybank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 00:23Christian GrothoffCategorypy bank (demonstrator, obsolete) => obsolete componet
2023-12-11 19:08Florian DoldCategoryobsolete componet => obsolete component