simpleT5
simpleT5 copied to clipboard
ValueError: transformers.__spec__ is None
Hi knocking out an error ValueError: transformers.spec is None
I got the same problem in colab (version simplet5-0.1.2).
fixed in #13
# pip install simplet5
from simplet5 import SimpleT5
model = SimpleT5()
Thanks for pointing out
I am getting the same error for version simplet5==0.1.3.
Below is the error log
ValueError Traceback (most recent call last)
12 frames /usr/lib/python3.7/importlib/util.py in find_spec(name, package) 112 else: 113 if spec is None: --> 114 raise ValueError('{}.spec is None'.format(name)) 115 return spec 116
ValueError: transformers.models.auto.spec is None
same here even with simplet5==0.1.3 similar error comes.
ValueError Traceback (most recent call last)
12 frames
/usr/local/lib/python3.7/dist-packages/simplet5/init.py in
/usr/local/lib/python3.7/dist-packages/simplet5/simplet5.py in
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/init.py in
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/init.py in
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/classification/init.py in
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/classification/accuracy.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/init.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/functional/init.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/functional/audio/init.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/functional/audio/pit.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/utilities/imports.py in
/usr/local/lib/python3.7/dist-packages/torchmetrics/utilities/imports.py in _module_available(module_path) 34 """ 35 try: ---> 36 return find_spec(module_path) is not None 37 except AttributeError: 38 # Python 3.6
/usr/lib/python3.7/importlib/util.py in find_spec(name, package) 112 else: 113 if spec is None: --> 114 raise ValueError('{}.spec is None'.format(name)) 115 return spec 116
ValueError: transformers.spec is None
Same error!
Same issue here. any eta on a fix?
@Shivanandroy I am struggling with the same issue here. Unable to run this library both in Colab and on local machine.
This seem to work in colab but you have to run it after the installing simplet5. You might also have to restart the runtime.
!pip install transformers --upgrade
This seem to work in colab but you have to run it after the installing simplet5. You might also have to restart the runtime.
!pip install transformers --upgrade
I have tried the solution proposed here and does not seem to help.