File "C:\Users\bjgir\PycharmProjects\pythonProject1\grade.py", line 168, in uploadFile
_num = self.omr_reader.extract_number(img, gray_img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bjgir\PycharmProjects\pythonProject1\read_omr.py", line 258, in extract_number
self.temp_png_name = f'{os.path.basename(self.this_raw_answer["fpng"]).replace(".", "")}number{index}'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 270, in basename
File "", line 241, in split
TypeError: expected str, bytes or os.PathLike object, not NoneType
File "C:\Users\bjgir\PycharmProjects\pythonProject1\grade.py", line 168, in uploadFile _num = self.omr_reader.extract_number(img, gray_img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bjgir\PycharmProjects\pythonProject1\read_omr.py", line 258, in extract_number self.temp_png_name = f'{os.path.basename(self.this_raw_answer["fpng"]).replace(".", "")}number{index}' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 270, in basename
File "", line 241, in split
TypeError: expected str, bytes or os.PathLike object, not NoneType