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 support #1167

Open
r7sy opened this issue Apr 24, 2024 · 9 comments
Open

Python 3.12 support #1167

r7sy opened this issue Apr 24, 2024 · 9 comments
Labels
enhancement New feature or request

Comments

@r7sy
Copy link

r7sy commented Apr 24, 2024

Is your feature request related to a problem? Please describe.
Would like to use dowhy in a Python 3.12 project.

Describe the solution you'd like

  • Python 3.12 support
@r7sy r7sy added the enhancement New feature or request label Apr 24, 2024
@yechs
Copy link

yechs commented May 6, 2024

Running from dowhy import gcm results in the following error in Python 3.12:

ModuleNotFoundError: No module named 'numpy.distutils'

Likely caused by numpy.distutils's removal in Python >= 3.12.
See https://numpy.org/doc/stable/reference/distutils_status_migration.html

@amit-sharma
Copy link
Member

@bloebp can you take a look? We can aim to do a release that supports 3.12

@bloebp
Copy link
Member

bloebp commented May 6, 2024

Some of the requirements are (or were) not supporting Python 3.12, that's why we excluded it in the last release. However, that might have changed in the mean time and should be checked again. We can certainly aim at a new release and also deprecate 3.8 support.

@dimoibiehg
Copy link

dimoibiehg commented Jun 27, 2024

Is your feature request related to a problem? Please describe. Would like to use dowhy in a Python 3.12 project.

Describe the solution you'd like

  • Python 3.12 support

There is also another error for me when try do the same:

ModuleNotFoundError: No module named 'numpy.dual'

I also found that my case has been reported as a bug in issue #1181.

@bloebp
Copy link
Member

bloebp commented Jun 27, 2024

@dimoibiehg can you double check the installed DoWhy version (e.g., print(dowhy.__version__)). This dual issue has been solved in a later version, I suspect you have 0.8 installed.

@dimoibiehg
Copy link

@dimoibiehg can you double check the installed DoWhy version (e.g., print(dowhy.__version__)). This dual issue has been solved in a later version, I suspect you have 0.8 installed.

The result of this command is 0.8.

@bloebp
Copy link
Member

bloebp commented Jun 27, 2024

The current version is 0.11.1, maybe try updating DoWhy. Note that you need a Python version below 3.12, so, e.g., 3.11

@dimoibiehg
Copy link

The current version is 0.11.1, maybe try updating DoWhy. Note that you need a Python version below 3.12, so, e.g., 3.11

Thanks for the suggestion. However, I reported the error in this issue. What I meant is that when using Python 3.12, you will get this error as well.

@bloebp
Copy link
Member

bloebp commented Jun 27, 2024

Ah, ok you just wanted to confirm that you have the same issue with 3.12.

Yes, we will try to address this with the next 0.12 release to be compatible with 3.12

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

No branches or pull requests

5 participants