presidio icon indicating copy to clipboard operation
presidio copied to clipboard

Support for newer Python versions (3.12.x and 3.13.x)

Open erikspears opened this issue 1 year ago • 1 comments

Hi all,

Opening this out of curiosity regarding newer Python version support for MS Presidio. Python 3.13.0 is now the latest stable, and the Presidio docs still list 3.11 as the last version fully supported. We've got Presidio running on some versions of Python 3.12.x (up thru .6, but .7 isn't happy), but obviously having more official support would be ideal. Any chance that is coming in a near-term update?

Thanks 😄

erikspears avatar Oct 17 '24 20:10 erikspears

Thanks for the suggestion! We'll look into it

omri374 avatar Oct 21 '24 18:10 omri374

In the main readme it says 3.13. I'm working on mcr.microsoft.com/devcontainers/python:latest which comes with 3.13.1 and i can't install the pip packages. I had to pull 3.11 for it to work.

docker run --rm -it mcr.microsoft.com/devcontainers/python:latest pip install presidio-analyzer

Pip install error:

Collecting spacy!=3.7.0,<4.0.0,>=3.4.4 (from presidio-analyzer)
  Using cached spacy-3.8.2.tar.gz (1.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'

Image

Going to 3.11:

docker run --rm -it mcr.microsoft.com/devcontainers/python:3.11 pip install presidio-analyzer
# no error

Image

jsburckhardt avatar Jan 28 '25 01:01 jsburckhardt

@jsburckhardt 3.13 is still not officially supported. I also did a test and it's failing on spaCy deps (thinc, preshed). We'll look into this but it could be a spaCy issue. It's true that readme says 3.13

omri374 avatar Jan 30 '25 12:01 omri374

@omri374 It truly is a spaCy issue: https://github.com/explosion/spaCy/issues/13658

andrewisplinghoff avatar Feb 01 '25 15:02 andrewisplinghoff

Seems that this would be solved by upgrading to a newer spaCy version. From the thread @andrewisplinghoff pointed at, at least 2.5.1 should be fixed.

JAORMX avatar Feb 11 '25 07:02 JAORMX

Closing the issue for now, please report back if there are any additional. BTW, if you're interested, here's Matthew Honnibal's video on upgrading some spaCy elements to Python 3.13: https://www.youtube.com/watch?v=TTEWWJ2PmZQ&list=PLBmcuObd5An5_iAxNYLJa_xWmNzsYce8c

omri374 avatar Feb 11 '25 11:02 omri374

@omri374 perhaps it would be better to close this until there's a new presidio release that includes the fixes?

JAORMX avatar Feb 11 '25 12:02 JAORMX

A new version is released

omri374 avatar Mar 19 '25 10:03 omri374