tohojo / flent

The FLExible Network Tester.
https://flent.org
Other
428 stars 79 forks source link

flent and python 3.12 #296

Closed moeller0 closed 5 months ago

moeller0 commented 6 months ago
user@123-1234567 flent % ./run-flent --gui
Traceback (most recent call last):
  File "/CODE/flent/./run-flent", line 33, in <module>
    sys.exit(run_flent())
             ^^^^^^^^^^^
  File "/CODE/flent/flent/__init__.py", line 44, in run_flent
    from flent import batch
  File "/CODE/flent/flent/batch.py", line 44, in <module>
    from flent import aggregators, formatters, resultset, loggers
  File "/CODE/flent/flent/formatters.py", line 31, in <module>
    from flent import plotters, combiners
  File "/CODE/flent/flent/plotters.py", line 42, in <module>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

It seems that current flent is not ready for python 3.12, where distutils apparently got deprecated (see e.g.: https://github.com/nodejs/node-gyp/issues/2869). Not sire what the simplest backward compatible fix would be... Maybe warn against python 3.12v for now?