[PR #315] [MERGED] Fix "AttributeError: module 'numpy' has no attribute 'float'" error in the README example #487

Closed
opened 2026-10-31 21:15:28 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openai/CLIP/pull/315
Author: @harrywang
Created: 1/20/2023
Status: ✅ Merged
Merged: 1/20/2023
Merged by: @jongwook

Base: main ← Head: main


📝 Commits (1)

  • 74a2856 np.float is removed in numpy 1.24

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 README.md (+1 -1)

📄 Description

np.float has been removed in numpy 1.24, which is just Python float. See https://stackoverflow.com/questions/74844262/how-to-solve-error-numpy-has-no-attribute-float-in-python


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openai/CLIP/pull/315 **Author:** [@harrywang](https://github.com/harrywang) **Created:** 1/20/2023 **Status:** ✅ Merged **Merged:** 1/20/2023 **Merged by:** [@jongwook](https://github.com/jongwook) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`74a2856`](https://github.com/openai/CLIP/commit/74a2856a2eca40b70d5d524f7473f5709be3b5d1) np.float is removed in numpy 1.24 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) </details> ### 📄 Description `np.float` has been removed in `numpy` 1.24, which is just Python `float`. See https://stackoverflow.com/questions/74844262/how-to-solve-error-numpy-has-no-attribute-float-in-python --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 21:15:28 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#487
No description provided.