Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690210 - sys-block/fio-3.7 does not run with python3
Summary: sys-block/fio-3.7 does not run with python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL: https://github.com/axboe/fio/commit/4...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-19 12:19 UTC by EoD
Modified: 2020-01-24 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EoD 2019-07-19 12:19:58 UTC
If you the script fio2gnuplug which is provided by sys-block/fio, it will only work with python2:

> eselect python set python3.6 
> fio2gnuplot -h
>  File "/usr/lib/python-exec/python3.6/fio2gnuplot", line 42
>    fio_data_file.append(file)
>                             ^
> TabError: inconsistent use of tabs and spaces in indentation

and

> eselect python set python2.7 
> io2gnuplot -h
> fio2gnuplot -ghbiodvk -t <title> -o <outputfile> -p <pattern> -G <type> -m <time> -M <time>
> 
> -h --help                           : Print this help
> -p <pattern> or --pattern <pattern> : A glob pattern to select fio input files
> -b           or --bandwidth         : A predefined pattern for selecting *_bw.log files
> -i           or --iops              : A predefined pattern for selecting *_iops.log files
> -g           or --gnuplot           : Render gnuplot traces before exiting
> -o           or --outputfile <file> : The basename for gnuplot traces
>                                        - Basename is set with the pattern if defined
> -d           or --outputdir <dir>   : The directory where gnuplot shall render files
> -t           or --title <title>     : The title of the gnuplot traces
>                                        - Title is set with the block size detected in fio traces
> -G           or --Global <type>     : Search for <type> in .global files match by a pattern
>                                        - Available types are : min, max, avg, stddev
>                                        - The .global extension is added automatically to the pattern
> -m           or --min_time <time>   : Only consider data starting from <time> seconds (default is 0)
> -M           or --max_time <time>   : Only consider data ending before <time> seconds (default is -1 aka nolimit)
> -v           or --verbose           : Increasing verbosity
> -k           or --keep              : Keep all temporary files from gnuplot's output dir

I also updated to the current version fio-3.15 and it has the same problems.
Comment 1 SpanKY gentoo-dev 2020-01-24 18:32:24 UTC
upstream fixed this here:
https://github.com/axboe/fio/commit/4cbe3909942e913f3a71113bf4036824fcb54953

it's in fio-3.16, and that's in the tree now.  so we should be all set.