too long: in python telegram bot?
What u dont understand?
Yes i don't understand how to do it
Are you trying to write a file into system?
Its clearly written file name too long.
yes then send it to telegram
bruh i can read that, i'm asking how to handle such issue
Just rename with shorter name or strip the rest part
change the filename to smaller one?
>strip the rest part ok how
you probably should share full traceback.
File "/usr/lib/python3.10/os.py", line 225, in makedirs mkdir(name, mode) OSError: [Errno 36] File name too long: \
Share code too
This is not a full traceback.
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/floki/floki/__down__.py", line 125, in __init__ self.__write_track() File "/usr/local/lib/python3.10/dist-packages/floki/floki/__down__.py", line 141, in __write_track self.__set_song_path() File "/usr/local/lib/python3.10/dist-packages/floki/floki/__down__.py", line 132, in __set_song_path self.__song_path = set_path( File "/usr/local/lib/python3.10/dist-packages/floki/libutils/utils.py", line 140, in set_path __check_dir(song_dir) File "/usr/local/lib/python3.10/dist-packages/floki/libutils/utils.py", line 40, in __check_dir makedirs(directory) File "/usr/lib/python3.10/os.py", line 225, in makedirs mkdir(name, mode) OSError: [Errno 36] File name too long:
Обсуждают сегодня