TypeError when importing simpletransformers.t5
Hi, I encountered a type error that reads:TypeError: expected string or bytes-like objectwhen I tried to just import T5 usingfrom simpletransformers.t5 import T5Model, which means the very beginning step doesn’t pass. I just updated thesimpletransformerspackage so they are in the newest version. I downgraded my pytorch to 1.60 and my python is in 3.8.8 version running on windows. Been stuck here for a while, looked into the error message but didn’t help much. Thank you in advance.TypeError                                 Traceback (most recent call last)Input In [29], in <cell line: 3>()1 import logging2 import pandas as pd----> 3 from simpletransformers.t5 import T5Model5 logging.basicConfig(level=logging.INFO)6 transformers_logger = logging.getLogger(“transformers”)File D:\anaconda3\lib\site-packages\simpletransformers\t5_init_.py:2, in1 from simpletransformers.config.model_args import T5Args----> 2 from simpletransformers.t5.t5_model import T5ModelFile D:\anaconda3\lib\site-packages\simpletransformers\t5\t5_model.py:20, in18 from torch.utils.data.distributed import DistributedSampler19 from tqdm.auto import tqdm, trange—> 20 from transformers.models.t5 import T5Config, T5ForConditionalGeneration, T5Tokenizer21 from transformers.optimization import (22     get_constant_schedule,23     get_constant_schedule_with_warmup,(…)27     get_polynomial_decay_schedule_with_warmup,28 )29 from transformers.optimization import AdamW, AdafactorFile D:\anaconda3\lib\site-packages\transformers_init_.py:43, in40 from typing import TYPE_CHECKING42 # Check the dependencies satisfy the minimal versions required.—> 43 from . import dependency_versions_check44 from .file_utils import (45     _LazyModule,46     is_flax_available,(…)53     is_vision_available,54 )55 from .utils import loggingFile D:\anaconda3\lib\site-packages\transformers\dependency_versions_check.py:36, in33 if pkg in deps:34     if pkg == “tokenizers”:35         # must be loaded here, or else tqdm check may fail—> 36         from .file_utils import is_tokenizers_available38         if not is_tokenizers_available():39             continue  # not required, check version only if installedFile D:\anaconda3\lib\site-packages\transformers\file_utils.py:308, in306 _torch_fx_available = _torch_onnx_dict_inputs_support_available = False307 if _torch_available:→ 308     torch_version = version.parse(importlib_metadata.version(“torch”))309     _torch_fx_available = (torch_version.major, torch_version.minor) == (310         TORCH_FX_REQUIRED_VERSION.major,311         TORCH_FX_REQUIRED_VERSION.minor,312     )314     _torch_onnx_dict_inputs_support_available = torch_version >= TORCH_ONNX_DICT_INPUTS_MINIMUM_VERSIONFile ~\AppData\Roaming\Python\Python38\site-packages\packaging\version.py:49, in parse(version)43 “”"44 Parse the given version string and return either a :class:Versionobject45 or a :class:LegacyVersionobject depending on if the given version is46 a valid PEP 440 version or a legacy version.47 “”"48 try:—> 49     return Version(version)50 except InvalidVersion:51     return LegacyVersion(version)File ~\AppData\Roaming\Python\Python38\site-packages\packaging\version.py:264, in Version.init(self, version)261 definit(self, version: str) → None:262263     # Validate the version and parse it into pieces→ 264     match = self._regex.search(version)265     if not match:266         raise InvalidVersion(f"Invalid version: ‘{version}’")TypeError: expected string or bytes-like object