2019-11-22 00:41:41,193 (util.py:65 WorkerThread2) ERROR - TeleBot: "TypeError occurred, args=('expected str, bytes or os.PathLike object, not int',)
Traceback (most recent call last):
File "C:\Game\Python\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "c:/Users/alexf/Desktop/bot/telegram.py", line 75, in echo_all
subprocess.Popen(['python', 'C:/Users/alexf/Desktop/bot/smsbomb.py', number, time, zdr], shell=True)
File "C:\Game\Python\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Game\Python\lib\subprocess.py", line 1247, in _execute_child
args = list2cmdline(args)
File "C:\Game\Python\lib\subprocess.py", line 549, in list2cmdline
for arg in map(os.fsdecode, seq):
File "C:\Game\Python\lib\os.py", line 816, in fsdecode
filename = fspath(filename) # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int
"
Traceback (most recent call last):
File "c:/Users/alexf/Desktop/bot/telegram.py", line 90, in <module>
bot.polling(none_stop=True)
File "C:\Game\Python\lib\site-packages\telebot\__init__.py", line 389, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Game\Python\lib\site-packages\telebot\__init__.py", line 413, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Game\Python\lib\site-packages\telebot\util.py", line 108, in raise_exceptions
six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
File "C:\Game\Python\lib\site-packages\six.py", line 696, in reraise
raise value
File "C:\Game\Python\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "c:/Users/alexf/Desktop/bot/telegram.py", line 75, in echo_all
subprocess.Popen(['python', 'C:/Users/alexf/Desktop/bot/smsbomb.py', number, time, zdr], shell=True)
File "C:\Game\Python\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Game\Python\lib\subprocess.py", line 1247, in _execute_child
args = list2cmdline(args)
File "C:\Game\Python\lib\subprocess.py", line 549, in list2cmdline
for arg in map(os.fsdecode, seq):
File "C:\Game\Python\lib\os.py", line 816, in fsdecode
filename = fspath(filename) # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int
Не пойму, из-за чего и как решить?