-
Notifications
You must be signed in to change notification settings - Fork 5k
[Bug] module 'numpy' has no attribute 'dtypes' #4178
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
Comments
same issue on my side |
Could you try using our fork (available via |
@eginhard ModuleNotFoundError Traceback (most recent call last) 13 frames ModuleNotFoundError: No module named 'numpy.char' still same. |
@eginhard numpy==1.26.4 not working |
This looks like an issue with your Numpy installation (i.e. just $ uv run --with coqui-tts -p 3.11 python -c "import numpy; print('Numpy', numpy.__version__); import TTS; print('coqui-tts', TTS.__version__)"
Numpy 1.26.4
coqui-tts 0.26.0 |
Same issue on my end. |
Describe the bug
**AttributeError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1975 try:
-> 1976 return importlib.import_module("." + module_name, self.name)
1977 except Exception as e:
42 frames
AttributeError: module 'numpy' has no attribute 'dtypes'
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/transformers/utils/import_utils.py in _get_module(self, module_name)
1976 return importlib.import_module("." + module_name, self.name)
1977 except Exception as e:
-> 1978 raise RuntimeError(
1979 f"Failed to import {self.name}.{module_name} because of the following error (look up to see its"
1980 f" traceback):\n{e}"
RuntimeError: Failed to import transformers.models.gpt2.modeling_gpt2 because of the following error (look up to see its traceback):
module 'numpy' has no attribute 'dtypes'**
To Reproduce
print(TTS().list_models())
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
Expected behavior
No response
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: