Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "~/pytorch-1.7/lib/python3.7/site-packages/torch/hub.py", line 370, in load

model = _load_local(repo_or_dir, model, *args, **kwargs)


 "~/pytorch-1.7/lib/python3.7/site-packages/torch/hub.py", line 399, in _load_local

model = entry(*args, **kwargs)


 "<path>/pytorch_fairseq_master/fairseq/models/roberta/model.py", line 251, in from_pretrained

**kwargs,


 "<path>/pytorch_fairseq_master/fairseq/hub_utils.py", line 56, in from_pretrained

kwargs["data"] = os.path.abspath(os.path.join(model_path, data_name_or_path))


 "~/pytorch-1.7/lib/python3.7/posixpath.py", line 80, in join

a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Traceback (most recent call last):


 "/usr/lib64/python3.6/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)
TypeError: test_identity() missing 1 required positional argument: 'encoder'
