[ 
https://issues.apache.org/jira/browse/CASSANDRA-16480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17294701#comment-17294701
 ] 

Brandon Williams commented on CASSANDRA-16480:
----------------------------------------------

So Debian [switched buster to 
python3.7|https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913069] while 
Ubuntu bionic instead added python3.7 and python3.8 available as packages under 
those names.

Here are the possible solutions I see:

* Switch package building to build on bionic
* Remove ${python3:Depends} which while technically correct, introduces the 3.7 
dependency when built against it.
* Make the minimum python version 3.7, and adjust the depends to allow the 
"python3.7" package name to satisfy the dependency and install 3.7 on Ubuntu.

Personally I think my vote is for the last option.  Python itself only supports 
3.6 until the end of this year, and just barely at that: 
https://www.python.org/downloads/release/python-3610/ and 3.7 or greater should 
be available everywhere. We'll need to minorly revist CASSANDRA-16414, but this 
should be a longer term solution.

WDYT, [~mck], [~stefan.miklosovic]?

/cc [~aholmber]

> cassandra-builds produce deb packages that require python 3.7
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-16480
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16480
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Alexander Dejanovski
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0-beta
>
>
> Since the builds moved from depending on python 2 to  python 3, the packages 
> that are produced by the [cassandra-builds 
> project|https://github.com/apache/cassandra-builds] expect Python 3.7 to be 
> installed on the target systems:
> {noformat}
> $ sudo dpkg -i cassandra_4.0~beta5-20210303gitd29dd643df_all.deb
> (Reading database ... 117878 files and directories currently installed.)
> Preparing to unpack cassandra_4.0~beta5-20210303gitd29dd643df_all.deb ...
> Unpacking cassandra (4.0~beta5-20210303gitd29dd643df) over 
> (4.0~beta5-20210303git25f3cf84f7) ...
> dpkg: dependency problems prevent configuration of cassandra:
>  cassandra depends on python3 (>= 3.7~); however:
>   Version of python3 on system is 3.6.7-1~18.04.dpkg: error processing 
> package cassandra (--install):
>  dependency problems - leaving unconfigured
> Processing triggers for systemd (237-3ubuntu10.38) ...
> Processing triggers for ureadahead (0.100.0-21) ...
> Errors were encountered while processing:
>  cassandra{noformat}
> The [test docker 
> images|https://github.com/apache/cassandra-builds/blob/trunk/docker/testing/ubuntu1910_j11.docker#L35-L36]
>  ship with both py36 and py38, which allows the install to pass nicely, but 
> on a vanilla Ubuntu Bionic system, only Python 3.6 is installed.
> We need to use debian buster images for builds that ship with python 3.6 so 
> that the dependencies align with it. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to