Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[bug] det CLI tool errors on Python 3.12 because it relies on distutils which was deprecated in Python 3.10 #8666

Closed
sirredbeard opened this issue Jan 9, 2024 · 3 comments
Labels

Comments

@sirredbeard
Copy link
Contributor

Describe the bug

The det CLI tool produces an error that distuils is not found when run on Python 3.12.

distutils was depcreated in Python 3.10 and removed in 3.12.

Reproduction Steps

  1. Install Python 3.12
  2. Install Determined with pip install determined
  3. Run det --version

Expected Behavior

Determined client works on 3.12. Even if 3.12 is not yet supported, we should plan for deprecation of distutils.

Screenshot

image

Environment

  • Device or hardware: Windows Dev Kit 2023
  • OS: Windows 11 Beta Insiders
  • Browser: Edge
  • Version: 0.26.7

Additional Context

No response

@sirredbeard sirredbeard added the bug label Jan 9, 2024
@sirredbeard
Copy link
Contributor Author

The temporary workaround on 3.12 is to pip install setuputils.

@rb-determined-ai
Copy link
Contributor

Yeah, this has been coming. We can either change our CLI flag reading logic to something more standard ("non-empty flag means true, empty flag means false"), which is a breaking change, or reimplement the one-line function that we were using from distutils.

I'll create a ticket for this internally.

@rb-determined-ai
Copy link
Contributor

The fix is up: #8667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants