Задать вопрос
Cheloved
@Cheloved
Good man

Почему возникает ошибка Kivy на виртуальной машине с MacOS «Unable to get a Window, abort»?

Я установил библиотеку Kivy с помощью среды conda, но я получаю ошибку. Все работает на Linux и Windows
/opt/anaconda3/envs/kivy/bin/python /Users/ilya/PycharmProjects/StyleTransfer/kivy_test.py
[INFO   ] [Logger      ] Record log in /Users/ilya/.kivy/logs/kivy_20-05-28_88.txt
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "/opt/anaconda3/envs/kivy/lib/python3.6/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.6.10 | packaged by conda-forge | (default, Apr 24 2020, 16:27:41) 
[GCC Clang 9.0.1 ]
[INFO   ] [Python      ] Interpreter at "/opt/anaconda3/envs/kivy/bin/python"
[INFO   ] [Factory     ] 184 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
Unable to create basic Accelerated OpenGL renderer.
Unable to create basic Accelerated OpenGL renderer.
Core Image is now using the software OpenGL renderer. This will be slow.
[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - RuntimeError: b'Failed creating OpenGL pixel format'
  File "/opt/anaconda3/envs/kivy/lib/python3.6/site-packages/kivy/core/__init__.py", line 71, in core_select_lib
    cls = cls()
  File "/opt/anaconda3/envs/kivy/lib/python3.6/site-packages/kivy/core/window/window_sdl2.py", line 152, in __init__
    super(WindowSDL, self).__init__()
  File "/opt/anaconda3/envs/kivy/lib/python3.6/site-packages/kivy/core/window/__init__.py", line 981, in __init__
    self.create_window()
  File "/opt/anaconda3/envs/kivy/lib/python3.6/site-packages/kivy/core/window/window_sdl2.py", line 290, in create_window
    self.get_gl_backend_name())
  File "kivy/core/window/_window_sdl2.pyx", line 232, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
  File "kivy/core/window/_window_sdl2.pyx", line 74, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App         ] Unable to get a Window, abort.
  • Вопрос задан
  • 137 просмотров
Подписаться 1 Простой Комментировать
Решения вопроса 1
Возможно проблема в самой виртуализации MacOS.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы