'Error installing Kivy on Windows: Provider: x11(['window_sdl2'] ignored) Couldn't connect to X server

I'm trying to install Kivy on Windows10, 64 and I always face the same error:

$python main.py 
[INFO   ] [Logger      ] Record log in /home/kk391035/.kivy/logs/kivy_21-07-26_1.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "/mnt/c/Users/pedro/Downloads/edh-life-counter/kivy_venv/lib/python3.8/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.8.10 (default, Jun  2 2021, 10:49:15)
[GCC 9.4.0]
[INFO   ] [Python      ] Interpreter at "/mnt/c/Users/pedro/Downloads/edh-life-counter/kivy_venv/bin/python"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [Window      ] Provider: x11(['window_sdl2'] ignored)
Couldn't connect to X server

I'm currently following the kivy installation guide. I did:

python -m pip install --upgrade pip setuptools virtualenv
source kivy_venv/bin/activate
python -m pip install kivy[base] kivy_examples

I've also tried installing all the kivy dependencies:

pip install kivy[base,media,full,dev,tuio,gstreamer,angle,sdl2,glew]

I tried on a virtual environment and on my pc environment using Visual Studio Code.

I also tried to enter those commands from this video and it doesn't work:

python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
python -m pip install kivy

In my virtual environment this is my Python version:

$python --version
Python 3.8.10

In my pc those are my Python versions:

$python --version
Python 2.7.18

$python3 --version
Python 3.8.10

Can you please guys help me. I tried to look in the Internet and I found nothing to help me!



Solution 1:[1]

I would look at Step Functions (SF), as they have AWS Glue task which can be synchronous.

I think you could orchestrate your work using SF with the sync Glue task. In your SF you would have a branch based on Success or Failure of the glue task. This would lead to either re-sending new msg to the SQS, or removing it from the queue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcin