pyupio/safety

LegacyVersion dropped of the package packaging

carlosdorneles-mb opened this issue · 2 comments

  • safety version: 2.3.3
  • Python version: 3.10.8
  • Operating System: macOS

Description

In the most current version of the Safety package, the LegacyVersion function of the Packaging package is being used and starting from version 22 of Packaging, this has been removed.

What I Did

When running the command on github CI it is raising the error cannot import name 'LegacyVersion' from 'packaging.version'

image

Hi @carlosdorneles-mb we're working on a fix for this asap, and should have it done in the next few hours or sooner. We'll keep you updated. cc @DragosChirila

I'm closing this because Safety 2.3.4 is available in PyPI with a fix for this issue; thank you for the report @carlosdorneles-mb and @DragosChirila!