messense / messense/fasttext-wheel

Error occurs with numpy 2.0

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
29
Forks
6
PR merge metrics
No merged PRs in 30d

Description

ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

It seems it is not compatible with numpy 2.0.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the error with NumPy 2.0, then search the repository for uses of np.array with copy=False. Confirm the affected path no longer raises the reported ValueError while preserving compatibility with NumPy 1.x.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.