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

Support for Python 3.11 #600

Closed
GiuliaGualtieri opened this issue Jul 18, 2024 · 6 comments
Closed

Support for Python 3.11 #600

GiuliaGualtieri opened this issue Jul 18, 2024 · 6 comments

Comments

@GiuliaGualtieri
Copy link

Description

If I create an environment with python version 3.11 and I try to install the smartnoise-synth package, I got an ERROR: no versions available for that package.

Command Line Example

conda create -n venv-ss-prova python=3.11 --yes
conda activate venv-ss-prova
pip install smartnoise-synth

then I got

ERROR: Ignored the following versions that require a different python version: 0.2.0 Requires-Python >=3.7.1,<=3.11; 0.2.1 Requires-Python >=3.7.1,<=3.11; 0.2.2 Requires-Python >=3.6.8,<3.9; 0.2.3 Requires-Python >=3.6.8,<3.9; 0.2.4 Requires-Python >=3.6.8,<3.9; 0.2.5 Requires-Python >=3.6.8,<3.9; 0.2.6 Requires-Python >=3.6.8,<3.9; 0.2.7 Requires-Python >=3.6.8,<3.9; 0.2.7.dev1 Requires-Python >=3.6.8,<3.9; 0.2.8 Requires-Python >=3.7,<3.9; 0.2.8.1 Requires-Python >=3.7,<3.9; 0.3.0 Requires-Python >=3.7,<3.11; 0.3.0.1 Requires-Python >=3.7,<3.11; 0.3.0.2 Requires-Python >=3.7,<3.11; 0.3.1 Requires-Python >=3.7,<3.11; 0.3.2 Requires-Python >=3.7,<3.11; 0.3.3 Requires-Python >=3.7,<3.11; 0.3.4 Requires-Python >=3.7,<3.11; 0.3.5 Requires-Python >=3.7,<3.11; 0.3.5.1 Requires-Python >=3.7,<3.11; 0.3.6 Requires-Python >=3.7,<3.11; 0.3.6.1 Requires-Python >=3.7,<3.11; 0.3.6.2 Requires-Python >=3.7,<=3.11; 0.3.7 Requires-Python >=3.7,<=3.11; 1.0.0 Requires-Python >=3.7,<=3.11; 1.0.1 Requires-Python >=3.7,<=3.11; 1.0.2 Requires-Python >=3.7,<=3.11; 1.0.3 Requires-Python >=3.7,<=3.11
ERROR: Could not find a version that satisfies the requirement smartnoise-synth (from versions: none)
@PaulineMauryL
Copy link

I have a similar issue.
In setup.py, it states that the latest possible python version is 3.11. Would it be possible to support until 3.11.9 (or more)?

@joshua-oss
Copy link
Contributor

The issue here is that we have a dependency on Torch <2.0.0, and these older versions do not support newer Python. We need torch only for the DP-GAN and PATE-GAN, and were planning to deprecate the DP-GAN variants anyway. Will investigate porting PATE-GAN and PATE-CTGAN to torch >=2.0.0.

@joshua-oss
Copy link
Contributor

OK, version 1.0.4 is published to PyPi and should support Python 3.11. Please report back if you encounter any issues

@PaulineMauryL
Copy link

That's great! Thank you

@PaulineMauryL
Copy link

PaulineMauryL commented Jul 31, 2024

It works with python 3.11.9 but just FYI in one of my environment I had to do pip install packaging first for Synthesizer.create("dpctgan", ...) to run properly.

@GiuliaGualtieri
Copy link
Author

Hello, thanks, now I can work on python 3.11.
I close the issue then.

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

3 participants