-
Notifications
You must be signed in to change notification settings - Fork 57
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
Can't generate code with python 3.12 #2449
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Comments
microsoft-github-policy-service
bot
added
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
labels
Mar 13, 2024
@iscai-msft I am afraid the problem is not pip. |
chaen
added a commit
to chaen/diracx
that referenced
this issue
Mar 14, 2024
chaen
added a commit
to chaen/diracx
that referenced
this issue
Mar 14, 2024
chaen
added a commit
to chaen/autorest.python
that referenced
this issue
Mar 15, 2024
I've tried a PR to see if the tests are still passing with a more recent version #2455 |
iscai-msft
pushed a commit
that referenced
this issue
Apr 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
When running with
python 3.12
, the code generation fails, while it works fine withpython 3.11
The issue seems to come from the
setuptools
version pinned for thevirtualenv
.The pinning was done in #2296 (but I could not find a reason to it) and then updated in 8a1fcfe ?
If I update the
setuptools
version in thevenv
, it works$ /home/chaen/.autorest/@autorest_python@6.13.6/node_modules/@autorest/python/venv/bin/python3 -m pip install --upgrade setuptools Requirement already satisfied: setuptools in /home/chaen/.autorest/@autorest_python@6.13.6/node_modules/@autorest/python/venv/lib/python3.12/site-packages (65.5.1) Collecting setuptools Using cached setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB) Using cached setuptools-69.2.0-py3-none-any.whl (821 kB) Installing collected packages: setuptools Attempting uninstall: setuptools Found existing installation: setuptools 65.5.1 Uninstalling setuptools-65.5.1: Successfully uninstalled setuptools-65.5.1 Successfully installed setuptools-69.2.0
Could the version be relaxed again, or updated ?
Thanks a lot
Detailed versions:
$ python --version Python 3.12.2 $ autorest --version AutoRest code generation utility [cli version: 3.7.1; node: v20.9.0] (C) 2018 Microsoft Corporation. https://aka.ms/autorest Showing All Installed Extensions Type Extension Name Version Location extension @autorest/python 6.13.6 /home/chaen/.autorest/@autorest_python@6.13.6 extension @autorest/modelerfour 4.23.7 /home/chaen/.autorest/@autorest_modelerfour@4.23.7 core @autorest/core 3.10.2 /home/chaen/.autorest/@autorest_core@3.10.2
The text was updated successfully, but these errors were encountered: