root@ubuntu:/bomb# echo $DISPLAY
:0
root@ubuntu:/bomb# python3 main.py
Traceback (most recent call last):
File "main.py", line 8, in
from module.bombScreen import BombScreen, BombScreenEnum
File "/bomb/module/bombScreen.py", line 7, in
from .image import Image
File "/bomb/module/image.py", line 11, in
from .utils import *
File "/bomb/module/utils.py", line 4, in
import pyautogui
File "/usr/local/lib/python3.8/dist-packages/pyautogui/init.py", line 249, in
import mouseinfo
File "/usr/local/lib/python3.8/dist-packages/mouseinfo/init.py", line 223, in
_display = Display(os.environ['DISPLAY'])
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'DISPLAY'
alguem ja passou por esse problema no linux? estava rodando no windows via VM, porem gostaria de otimizar os recursos com o Linux.
root@ubuntu:/bomb# echo $DISPLAY :0 root@ubuntu:/bomb# python3 main.py Traceback (most recent call last): File "main.py", line 8, in
from module.bombScreen import BombScreen, BombScreenEnum
File "/bomb/module/bombScreen.py", line 7, in
from .image import Image
File "/bomb/module/image.py", line 11, in
from .utils import *
File "/bomb/module/utils.py", line 4, in
import pyautogui
File "/usr/local/lib/python3.8/dist-packages/pyautogui/init.py", line 249, in
import mouseinfo
File "/usr/local/lib/python3.8/dist-packages/mouseinfo/init.py", line 223, in
_display = Display(os.environ['DISPLAY'])
File "/usr/lib/python3.8/os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'DISPLAY'
alguem ja passou por esse problema no linux? estava rodando no windows via VM, porem gostaria de otimizar os recursos com o Linux.