call last):
File "app.py", line 5, in <module>
import middlewares, filters, handlers
File "/home/ubuntu/editorbot/handlers/__init__.py", line 2, in <module>
from . import users
File "/home/ubuntu/editorbot/handlers/users/__init__.py", line 11, in <module>
from . import text_to_hand
File "/home/ubuntu/editorbot/handlers/users/text_to_hand.py", line 3, in <module>
import pywhatkit as pywhatkit
File "/home/ubuntu/.local/lib/python3.8/site-packages/pywhatkit/__init__.py", line 8, in <module>
from pywhatkit.main import print_sleep_time, check_window, sendwhatmsg, sendwhatmsg_to_group, info, playonyt, search, close_tab, sendwhatmsg_instantly, sendwhats_image
File "/home/ubuntu/.local/lib/python3.8/site-packages/pywhatkit/main.py", line 9, in <module>
import pyautogui as pg
File "/home/ubuntu/.local/lib/python3.8/site-packages/pyautogui/__init__.py", line 249, in <module>
import mouseinfo
File "/home/ubuntu/.local/lib/python3.8/site-packages/mouseinfo/__init__.py", line 223, in <module>
_display = Display(os.environ['DISPLAY'])
File "/usr/lib/python3.8/os.py", line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'DISPLAY'
использую python3.8. ubuntu 18.04 с супервайзером
У сервера нет экрана
звучит хуево
Обсуждают сегодня