Skip to contentSkip to conversation

Status of python3 for fio?

DISCUSSION Eric Sandeen 2 participants 3 messages Mar 28, 2018

lore
Share & tools
lore
#0 lore raw

Fedora is moving more and more towards python3. (TBH, as a non-python expert, I don't know all the details...)

I see that python2.7 is hardcoded in several scripts, and Jens though there were possibly some patches "floating out there" to switch the various scripts to python3. Does anyone know the status of this work?

Thanks,
-Eric

#1 lore raw

Hi,

Quoted 7 lines · Eric Sandeen

Fedora is moving more and more towards python3. (TBH, as a non-python expert, I don't know all the details...)

I see that python2.7 is hardcoded in several scripts, and Jens though there were possibly some patches "floating out there" to switch the various scripts to python3. Does anyone know the status of this work?

fiologparser_hist.py was made Python 3 compatible but it's unknown whether all the other scripts are as ready (I'm going to guess no). The hope is that eventually all scripts will be made Python 3 ready but it will be up to distros to rename the interpreter to use to one they like at packaging time because it's impossible to satisfy all distros with a single interpreter line...

You can see the rationale behind the python2.7 rename here:
https://github.com/axboe/fio/commit/60023ade47e7817db1c18d9b7e511839de5c2c99
and here: https://www.spinics.net/lists/fio/msg06746.html (and a followup here
https://www.spinics.net/lists/fio/msg06748.html ).

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#2 lore raw
Quoted 18 lines · Sitsofe Wheeler

Hi,

Quoted 7 lines · Eric Sandeen

Fedora is moving more and more towards python3. (TBH, as a non-python expert, I don't know all the details...)

I see that python2.7 is hardcoded in several scripts, and Jens though there were possibly some patches "floating out there" to switch the various scripts to python3. Does anyone know the status of this work?

fiologparser_hist.py was made Python 3 compatible but it's unknown whether all the other scripts are as ready (I'm going to guess no). The hope is that eventually all scripts will be made Python 3 ready but it will be up to distros to rename the interpreter to use to one they like at packaging time because it's impossible to satisfy all distros with a single interpreter line...

Quoted 5 lines

You can see the rationale behind the python2.7 rename here:
https://github.com/axboe/fio/commit/60023ade47e7817db1c18d9b7e511839de5c2c99
and here: https://www.spinics.net/lists/fio/msg06746.html (and a followup here
https://www.spinics.net/lists/fio/msg06748.html ).

Ok, thanks. So, I'm going to try using the automated tools to make them python3-compatible.

I'm no python guru, so I hope that if I take a semi-dumb approach and send patches it'll at least be a starting point, if not perfect.

Thanks,
-Eric