lcov-to-cobertura-xml icon indicating copy to clipboard operation
lcov-to-cobertura-xml copied to clipboard

distutils.spawn is deprecated, gonna be removed

Open nolange opened this issue 2 years ago • 2 comments

/tmp/./lcov_cobertura.py:21: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.spawn import find_executable

nolange avatar Jul 27 '22 08:07 nolange

Having issues on Azure pipelines:

Starting: lcov to cobertura
==============================================================================
Task         : Command line
Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version      : 2.229.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/b8eef4a9-c1cd-43bf-ad8c-dc5c99920dd7.sh
Cloning into 'lcov-to-cobertura-xml'...
Traceback (most recent call last):
  File "/Users/runner/work/1/s/lcov-to-cobertura-xml/lcov_cobertura/lcov_cobertura.py", line 21, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils'
##[error]Bash exited with code '1'.
Finishing: lcov to cobertura

ktnishide avatar Nov 07 '23 05:11 ktnishide

Fixed with #51

chinloyal avatar Nov 09 '23 13:11 chinloyal