The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Mon Mar 14 18:24:45 2022 from 178.185.48.75
root@templ-ubuntu-2004:~# /root/bots/KWORK
-bash: /root/bots/KWORK: Is a directory
root@templ-ubuntu-2004:~# python3.8 bot.py
python3.8: can't open file 'bot.py': [Errno 2] No such file or directory
root@templ-ubuntu-2004:~# python3.8 bot.py
python3.8: can't open file 'bot.py': [Errno 2] No such file or directory
root@templ-ubuntu-2004:~# cd /root/bots/KWORK
root@templ-ubuntu-2004:~/bots/KWORK# python3.8 bot.py
Traceback (most recent call last):
File "bot.py", line 9, in <module>
from app.data.config import BotData, DatabaseData
File "/root/bots/KWORK/app/data/config.py", line 9, in <module>
class BotData:
File "/root/bots/KWORK/app/data/config.py", line 10, in BotData
bot_token: str = env.str("5245635341:AAHNnPtzER3MSzfRx0aJRbT6WCwxkfqayV0")
File "/usr/local/lib/python3.8/dist-packages/environs/__init__.py", line 116, in method
raise EnvError('Environment variable "{}" not set'.format(proxied_key or par sed_key))
environs.EnvError: Environment variable "5245635341:AAHNnPtzER3MSzfRx0aJRbT6WCwx kfqayV0" not set
root@templ-ubuntu-2004:~/bots/KWORK#
root@templ-ubuntu-2004:~/bots/KWORK# python3.8 bot.py
Traceback (most recent call last):
File "bot.py", line 9, in <module>
from app.data.config import BotData, DatabaseData
File "/root/bots/bot7/app/data/config.py", line 9, in <module>
class BotData:
File "/root/bots/bot7/app/data/config.py", line 10, in BotData
bot_token: str = env.str('5245635341:AAxxxxxxx')
File "/usr/local/lib/python3.8/dist-packages/environs/__init__.py", line 116, in method
raise EnvError('Environment variable "{}" not set'.format(proxied_key or parsed_key))
environs.EnvError: Environment variable "5245635341:AAHNnPtzERxxxxxx" not set
root@templ-ubuntu-2004:~/bots/bot# ^C
root@templ-ubuntu-2004:~/bots/bot#
Я так понял с токеном вопрос. сколько ковычек нужно?
или может вообще не нужно?