Python Can';t在ubuntu服务器上部署电报机器人

Python Can';t在ubuntu服务器上部署电报机器人,python,firebase,telegram,ubuntu-18.04,telegram-bot,Python,Firebase,Telegram,Ubuntu 18.04,Telegram Bot,嗨,我制作了电报机器人,并试图将其部署到Ubuntu 18.04 要求: firebase==3.0.1 firebase-admin==4.3.0 pyTelegramBotAPI==3.7.1 grpcio==1.29.0 requests==2.23.0 我在服务器上安装了这个: build-essential libssl-dev libffi-dev python3-pip python3-dev python3-setuptools python3-venv 创建venv后,我

嗨,我制作了
电报机器人
,并试图将其部署到
Ubuntu 18.04

要求:

firebase==3.0.1
firebase-admin==4.3.0
pyTelegramBotAPI==3.7.1
grpcio==1.29.0
requests==2.23.0
我在服务器上安装了这个:

build-essential
libssl-dev
libffi-dev
python3-pip
python3-dev
python3-setuptools
python3-venv 
创建venv后,我转到/etc/systemd/system/并创建了uba.service

uba.服务

[Unit]
Description=uba
After=network.target
 
[Service]
User=uba
Group=uba
 
WorkingDirectory=/home/kokoto/uba/
Environment="PYTHONPATH=/home/kokoto/uba/"
ExecStart=/home/kokoto/uba/.venv/bin/python /home/kokoto/uba/bot_bd.py
 
[Install]
WantedBy=multi-user.target
但当我运行bot时,我有以下错误:

uba.service - uba
Loaded: loaded (/etc/systemd/system/uba.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-09-21 17:48:05 MSK; 16h ago
Process: 10282 ExecStart=/home/kokoto/uba/.venv/bin/python /home/kokoto/uba/bot_bd.py (code=exited, status=216/GROUP)
Main PID: 10282 (code=exited, status=216/GROUP)

Sep 21 17:48:05 s307229 systemd[1]: Started uba.
Sep 21 17:48:05 s307229 systemd[10282]: uba.service: Failed to determine group credentials: No such process
Sep 21 17:48:05 s307229 systemd[10282]: uba.service: Failed at step GROUP spawning /home/kokoto/uba/.venv/bin/python: No such process
Sep 21 17:48:05 s307229 systemd[1]: uba.service: Main process exited, code=exited, status=216/GROUP
Sep 21 17:48:05 s307229 systemd[1]: uba.service: Failed with result 'exit-code'.

我不确定,但可能ubuntu使用的是python2版本。尝试将
python
更改为
python3

ExecStart=/home/kokoto/uba/.venv/bin/python3 /home/kokoto/uba/bot_bd.py