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

use numpy 1.20.0 and later #1072

Merged
merged 1 commit into from
May 26, 2022
Merged

Conversation

TomonobuTsujikawa
Copy link
Contributor

Currently, we don't specify numpy version, so the following error occurs when system has numpy v1.19.5.

Traceback (most recent call last):
  File "classification.py", line 23, in <module>
    import nnabla as nn
  File "lib/python3.7/site-packages/nnabla/__init__.py", line 32, in <module>
    from .variable import Variable, Context
  File "lib/python3.7/site-packages/nnabla/variable.py", line 17, in <module>
    from ._variable import Context
  File "_variable.pyx", line 1, in init nnabla._variable
  File "_nd_array.pyx", line 1, in init nnabla._nd_array
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "lib/python3.7/site-packages/nnabla/__init__.py", line 32, in <module>
    from .variable import Variable, Context
  File "lib/python3.7/site-packages/nnabla/variable.py", line 17, in <module>
    from ._variable import Context
  File "_variable.pyx", line 1, in init nnabla._variable
  File "_nd_array.pyx", line 1, in init nnabla._nd_array
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

So, explicitly require numpy v1.20.0 and later when installing nnabla.

@YukioOobuchi YukioOobuchi merged commit 239ab5c into master May 26, 2022
@YukioOobuchi YukioOobuchi deleted the feature/20220506-numpy-requirement branch May 26, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants