rish-16 / gpt2client

✍🏻 gpt2-client: Easy-to-use TensorFlow Wrapper for GPT-2 117M, 345M, 774M, and 1.5B Transformer Models 🤖 📝
MIT License
372 stars 74 forks source link

ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' #1

Closed helmigsimon closed 4 years ago

helmigsimon commented 5 years ago

After installing the module via pip, I ran the following:

from gpt2_client import GPT2Client

And obtained the following error: """ ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 968, in _find_and_load SystemError: <class '_frozen_importlib._ModuleLockManager'> returned a result with an error set ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import 2019-08-11 12:24:16.856395: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr Abort trap: 6 """

rish-16 commented 5 years ago

Hey there, I'll go check it out. Thanks for informing. Never ran into this bug during testing

rickwierenga commented 5 years ago

Make sure you're running python 3.

python3 --version # should output some number.

It looks like numpy was not installed correctly. Can you try reinstalling it? https://pypi.org/project/numpy/

python3 -m pip install --upgrade --force-reinstall numpy

If this doesn't solve the issue, would you mind sharing your operating system and version?