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 numpy >= 2.0 #1645

Closed
quant5 opened this issue Sep 3, 2024 · 9 comments · Fixed by #1646
Closed

support for numpy >= 2.0 #1645

quant5 opened this issue Sep 3, 2024 · 9 comments · Fixed by #1646
Labels
dependencies 🔗 Pull requests that update a dependency file

Comments

@quant5
Copy link

quant5 commented Sep 3, 2024

Missing functionality

Numpy 2.0.0 was released on June 16. https://github.com/numpy/numpy/releases/tag/v2.0.0. The current version is 2.1.1.

To date, ydata-profiling is not compatible with 2.0.x per requirements.txt.

As such, it is currently a blocker for users to upgrade to 2.0.x if they have this package installed.

Proposed feature

Loosen requirements to include 2.0.x unless there are specific reasons (e.g., usage of deprecated function names) not to.

Alternatives considered

No response

Additional context

No response

@stefansimik
Copy link

This is really important. This library already forces us to downgrade to older Numpy versions and it is not very comfortable situation. Starts to be blocker for using this library.

@fabclmnt
Copy link
Contributor

fabclmnt commented Oct 15, 2024

This issue is closed since release 4.10 (Sep 7th) - https://github.com/ydataai/ydata-profiling/releases/tag/v4.10.0, where numpy has been bump.

@stefansimik which version of the package are you using?

@fabclmnt fabclmnt added dependencies 🔗 Pull requests that update a dependency file and removed needs-triage labels Oct 15, 2024
@fabclmnt fabclmnt linked a pull request Oct 15, 2024 that will close this issue
@fabclmnt fabclmnt linked a pull request Oct 15, 2024 that will close this issue
@stefansimik
Copy link

stefansimik commented Oct 16, 2024

This issue is closed since release 4.10 (Sep 7th) - https://github.com/ydataai/ydata-profiling/releases/tag/v4.10.0, where numpy has been bump.

@stefansimik which version of the package are you using?

I am using ydata-profiling=4.10.0.

Sending screenshot, what happened, when I installed ydata-profiling,
to show, that it somehow led to downgrade of numpy.

I installed only ydata-profiling (with ipywidgets), nothing else and this simple operation
resulted in downgrade of Numpy.

CleanShot 2024-10-16 at 18 32 05@2x

Note:
After some google search, I found out, that the issue could be maybe related to Numba package, which could cause this downgrade: numba/numba#9708

@fabclmnt
Copy link
Contributor

fabclmnt commented Oct 16, 2024

@stefansimik, thanks for sharing that information it was super helpful to identify the source of the issue.

The latest version of the package is now in 4.11.0 (https://pypi.org/project/ydata-profiling/), so there is something happening with the anaconda repo.

I'll check with the team, but I do suggest that you use Pypi instead for the time being.

@fabclmnt
Copy link
Contributor

@stefansimik conda-forge is now fixed: https://anaconda.org/conda-forge/ydata-profiling

@stefansimik
Copy link

stefansimik commented Oct 17, 2024

@stefansimik conda-forge is now fixed: https://anaconda.org/conda-forge/ydata-profiling

Excellent work 👍 , I really appreciate your effort and how quickly you solved this ❤️

@juansecal
Copy link

I'm getting ImportError: Numba needs NumPy 2.0 or less. Got NumPy 2.2. in the last release, is this normal =?

@NathanHGayle
Copy link

NathanHGayle commented Dec 17, 2024

Getting the same issue as above even after downgrading to 2.0. The ImportError: Numba needs NumPy 2.0 or less. Got NumPy 2.2. error is returned after running a from ydata_profiling import ProfileReport cell.

@b4ghir1
Copy link

b4ghir1 commented Jan 4, 2025

Get the same error:
Import Error: Numba needs NumPy 2.0 or less. Got NumPy 2.2.

Version:

numba                     0.60.0
numpy                     2.0.2
ydata-profiling           4.12.1

From this line:
from ydata_profiling import ProfileReport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies 🔗 Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants