-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update package installation to work with Python 3.12 #2304
Comments
Good idea, I'm using Python 3.9 too and I believe the instances in Google Cloud too. We would need to work on this to give support to higher Python version. In the meantime, can you add this as a requirement? |
I believe it is adding |
Ok I can do that. Is the correct process to edit setup.py, then create a PR on the master branch? |
I found an issue that may also be affected by the python version: #1920 |
Yes, you create a branch, push your code and then create the PR to request to merge it into the master branch. |
Looking at the code, it seems like the error is coming from the line |
I also tried adding python_requires to the setup.py:
|
ChatGPT tells me there should be an error if you use another Python version: Yes, adding the Here’s how it works in detail:
Example of Installation ErrorIf a user tries to install the package on a Python version other than 3.9, they will see an error message similar to this: ERROR: Package 'your_package_name' requires a different Python: 3.x.x not in '==3.9.*' This ensures that your package is only installed in the appropriate Python environment, thereby preventing potential compatibility issues. |
Got it, I think I was having an issue with a cache in my 3.12 environment. I added the python_requires value to the setup.py and when I try to install it on a clean 3.12 environment, I get the following message: Which seems like it is behaving as desired. I'll check a couple more cases before pushing it to the repo. |
When I tried to install openreview-py using the instructions here, I ran into an issue with the git installation and Python 3.12.
Using Python 3.12:
resulted in the following message:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
This seems to be related to function pkgutil.ImpImporter that has been removed in Python 3.12
To resolve it, I used Python 3.9 and ran the same commands to install openreview-py. I'd suggest including the version requirement in the installation instructions until we can update the package to be compatible with the new version.
Update 8/5: Seems like the conflict is in the setuptools requirement: 'setuptools==65.5.1' - installing with a more recent version of setuptools has been successful for me - Updating this requirement might help resolve the compatibility issue in the future.
The text was updated successfully, but these errors were encountered: