Traceback (most recent call last):


 "pytorch-pretrained-BERT/examples/run_classifier.py", line 637, in <module>

main()


 "pytorch-pretrained-BERT/examples/run_classifier.py", line 465, in main

cache_dir = args.cache_dir if args.cache_dir else os.path.join(PYTORCH_PRETRAINED_BERT_CACHE, 'distributed_{}'.format(args.local_rank))


 "/usr/lib/python3.5/posixpath.py", line 89, in join

genericpath._check_arg_types('join', a, *p)


 "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types

(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'PosixPath'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)
TypeError: cache_versions() takes 1 positional argument but 2 were given
