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

3.goal-achievement-adviser の requirements.txt で numpy バージョンを指定 #148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yus04
Copy link
Contributor

@yus04 yus04 commented Dec 6, 2024

変更点

  • 3.goal-achievement-adviser/app/backend/requirements.txt で numpy==1.26.4 を追加

変更理由

  • 仮想環境内にて、以下の numpy 由来のエラーを解消するため (図はスクリーンショット参照)

Exception has occurred: ValueError
numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
File "/home/yu/jp-azureopenai-samples/3.goal-achievement-adviser/app/backend/app.py", line 8, in
import openai
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

スクリーンショット

image

参考ドキュメント

The solution is to pin down the numpy version to any before the 2.0.0. Today it could be (this is the most recent numpy 1 release):

numpy==1.26.4

https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from

@yus04 yus04 requested a review from suzukiyuhsuke December 6, 2024 01:14
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

Successfully merging this pull request may close these issues.

1 participant