View Issue Details

IDProjectCategoryView StatusLast Update
0004362Talerobsolete componentpublic2016-04-24 23:41
ReporterChristian Grothoff Assigned ToMarcello Stanisci  
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.

Relationships

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

Activities

Florian Dold

2016-04-04 23: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-05 01: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-05 01: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 15:20

reporter   ~0010518

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

Florian Dold

2016-04-19 16:07

manager   ~0010520

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

Issue History

Date Modified Username Field Change
2016-04-04 18:02 Christian Grothoff New Issue
2016-04-04 18:02 Christian Grothoff Status new => assigned
2016-04-04 18:02 Christian Grothoff Assigned To => Marcello Stanisci
2016-04-04 23:56 Florian Dold Note Added: 0010371
2016-04-05 01:05 Christian Grothoff Note Added: 0010373
2016-04-05 01:09 Florian Dold Note Added: 0010374
2016-04-19 15:20 Marcello Stanisci Note Added: 0010518
2016-04-19 15:23 Marcello Stanisci Relationship added related to 0004391
2016-04-19 16:07 Florian Dold Note Added: 0010520
2016-04-19 16:07 Florian Dold Status assigned => resolved
2016-04-19 16:07 Florian Dold Resolution open => fixed
2016-04-24 23:41 Christian Grothoff Status resolved => closed
2016-04-24 23:41 Christian Grothoff Fixed in Version => 0.0
2016-04-24 23:41 Christian Grothoff Target Version 0.1 => 0.0
2022-08-23 20:26 Christian Grothoff Category bank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 01:23 Christian Grothoff Category py bank (demonstrator, obsolete) => obsolete componet
2023-12-11 20:08 Florian Dold Category obsolete componet => obsolete component