Hello Team, I am trying to run a prefect job but ...
# ask-community
g
Hello Team, I am trying to run a prefect job but it fails when using prefect_gitlab.GitlabCredentials() with a ModulenotFound: no module named 'distutils'. version: python 3.12.3 prefect 2.19.4 prefect-gitlab 0.2.5 As for Python 3.12, distutils is removed, forcing the installation might resolve the issue, but I would like to ask the community if you have something else in mind to fix the error. thank you in advance 🙂
✅ 1
c
Hi Guillermo, do you have a stack trace as well, or just that error message? We don't have a direct dependency on
distutils
but one of the transitive dependencies might. I'm working on reproducing this
Oh sorry, I missed the
prefect-gitlab
version above, yes I see our dependency on
distutils
and it's been removed in the latest version. That latest verison is for our Prefect 3.0 release candidate, so let me work on getting a fix out for you on the 2.x version
✅ 1
🙌 1
PR up, I'll get this reviewed and get a fix out today: https://github.com/PrefectHQ/prefect/pull/14074
🙌 1
g
Hi @Chris Guidry that would be truly awesome so I do not have to go with the release candidates
c
Yep no worries, this one is pretty easy to backport
Thanks for letting us know about that one, Guillermo, give
prefect-gitlab==0.2.6
a try and let me know
🙌 2
g
You are my guy of the day @Chris Guidry, working like a charm! have an amazing day 😄
c
Woot!