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

Python 3.12 compatibility, distutils is no longer provided. #32

Closed
sodul opened this issue Mar 15, 2024 · 1 comment
Closed

Python 3.12 compatibility, distutils is no longer provided. #32

sodul opened this issue Mar 15, 2024 · 1 comment

Comments

@sodul
Copy link

sodul commented Mar 15, 2024

Describe the bug

Running chepy from python 3.12 causes an import error on distutil which was deprecated in 3.10 and removed in 3.10:
https://docs.python.org/3.10/library/distutils.html#module-distutils

To Reproduce
With python 3.12:

> chepy -h

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
chepy 5 <module>
from chepy.__main__ import main

__main__.py 23 <module>
import chepy.modules.internal.cli as chepy_cli

cli.py 6 <module>
import editor

editor.py 11 <module>
from distutils.spawn import find_executable

ModuleNotFoundError:
No module named 'distutils'

Expected behavior
No error:

> chepy -h
usage: chepy [-h] [-v] [-r RECIPE] data [data ...]

positional arguments:
  data

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -r RECIPE, --recipe RECIPE
                        Run a Chepy recipe and exit

Screenshots
See output above.

Desktop (please complete the following information):

  • OS: N/A
  • Python Version: 3.12 or newer
  • Chepy Version: 6.6.0

Additional context
N/A

@securisec
Copy link
Owner

Chepy currently only supports python 3.10. Version 7+ is aimed at supporting python 3.12

securisec added a commit that referenced this issue Mar 16, 2024
🔧 fix #32 python version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants