TRN-pytorch icon indicating copy to clipboard operation
TRN-pytorch copied to clipboard

TypeError: expected str, bytes or os.PathLike object, not int

Open anti199994 opened this issue 5 years ago • 1 comments

Traceback (most recent call last): File "/home/ubuntu/TRN-pytorch/process_dataset.py", line 38, in idx_categories.append(os.path.join(dict_categories[items[1]])) File "/home/ubuntu/anaconda3/lib/python3.6/posixpath.py", line 80, in join a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not int

I want to kmow how to solve this problem?

anti199994 avatar May 28 '19 00:05 anti199994

idx_categories.append(os.path.join(dict_categories[items[1]]))

changing this line to idx_categories.append(dict_categories[items[1]]) may help

Ego-J avatar Nov 16 '19 08:11 Ego-J