carbonblack / cbapi-python

Carbon Black API - Python language bindings
Other
147 stars 86 forks source link

[WARN] Distutils has been deprecated #319

Closed sevdog closed 1 year ago

sevdog commented 1 year ago

I am seeing this behaviour on: (please complete the following information):

Describe the bug To check server version cbapi relies on distutils.version (see usage). This module has been deprecated and now it returns the following warning:

DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

Steps to Reproduce Steps to reproduce the behavior (Provide a log message if relevant):

  1. Istantiate any CbAPI class (CbResponseAPI or CbProtectionAPI)

Expected behavior No warning should be raised.

emitreva-cb commented 1 year ago

We have released a new version of CbAPI (1.7.10), which is using packaging library for python3.7+. Could you please test with the latest version and provide feedback on whether the issue was fixed?

sevdog commented 1 year ago

@emitreva-cb I have tried the new release and now it does not raise any warning (in my environment, Python 3.9).

Looking at #320 it seems that it solves this issue. Thank you.