AndreyAkinshin / Russian-Phd-LaTeX-Dissertation-Template

LaTeX-template for russian Phd thesis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Как исправить? AssertionError: Value must be a string

Ourobor0s3 opened this issue · comments

2020-04-02 18:28:54,125 (util.py:65 WorkerThread1) ERROR - TeleBot: "AssertionError occurred, args=('Value must be a string',)
Traceback (most recent call last):
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "D:\Python\bot.py", line 37, in lalala
weather = otvet(place)
File "D:\Python\config.py", line 10, in otvet
observation = owm.weather_at_place(place)
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyowm\weatherapi25\owm25.py", line 224, in weather_at_place
assert isinstance(name, str), "Value must be a string"
AssertionError: Value must be a string
"
Traceback (most recent call last):
File "D:\Python\bot.py", line 54, in
bot.polling(none_stop=True)
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot_init_.py", line 389, in polling
self._threaded_polling(none_stop, interval, timeout)
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot_init
.py", line 413, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\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:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\six.py", line 693, in reraise
raise value
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "D:\Python\bot.py", line 37, in lalala
weather = otvet(place)
File "D:\Python\config.py", line 10, in otvet
observation = owm.weather_at_place(place)
File "C:\Users\Михаил\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyowm\weatherapi25\owm25.py", line 224, in weather_at_place
assert isinstance(name, str), "Value must be a string"
AssertionError: Value must be a string

Какой-то вопрос по питону и вообще другому проекту, похоже