Python kivy Unable to find any valuable Window provider












0















This is well known and quite common issue. I've tried all found solutions but no success. I'm trying to make simple python app using kivy. After running below code I'm getting bunch of errors. Code:



import kivy
kivy.require('1.9.1')

import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'

from kivy.app import App
from kivy.uix.label import Label

from kivy import Config
Config.set('graphics', 'multisamples', '0')

class MyApp(App):
def build(self):
return Label(text='Hello world')

if __name__ == '__main__':
MyApp().run()


After running the code:



[INFO   ] [Logger      ] Record log in C:UsersPatryk.kivylogskivy_19-01-18_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [Window ] Activate GLES2/ANGLE context
[CRITICAL] [Window ] Unable to find any valuable Window provider.
sdl2 - RuntimeError: b'Could not initialize EGL'
File "C:Pythonlibsite-packageskivycore__init__.py", line 67, in core_select_lib
cls = cls()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 140, in __init__
super(WindowSDL, self).__init__()
File "C:Pythonlibsite-packageskivycorewindow__init__.py", line 968, in __init__
self.create_window()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 272, in create_window
self.fullscreen, resizable, state)
File "kivycorewindow_window_sdl2.pyx", line 209, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
File "kivycorewindow_window_sdl2.pyx", line 66, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App ] Unable to get a Window, abort.


PATH and PYTHONPATHS contains:



C:WindowsSystem32;
C:Python;
C:PythonDLLs;
C:PythonLib;
C:PythonScripts;
C:Pythonsharesdl2;
C:Pythonshareglew


Before I've started to investigate I saw this:



POP Window



I've tried few interpreters. Python 3.5.2, 3.6.1 and 3.7.2. The error is the same. Any ideas?










share|improve this question























  • This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

    – inclement
    2 days ago











  • Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

    – ForyszeP
    yesterday











  • Do you definitely have kivy.deps.sdl2 installed?

    – inclement
    yesterday











  • Yes. You will find the list below.

    – ForyszeP
    10 hours ago
















0















This is well known and quite common issue. I've tried all found solutions but no success. I'm trying to make simple python app using kivy. After running below code I'm getting bunch of errors. Code:



import kivy
kivy.require('1.9.1')

import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'

from kivy.app import App
from kivy.uix.label import Label

from kivy import Config
Config.set('graphics', 'multisamples', '0')

class MyApp(App):
def build(self):
return Label(text='Hello world')

if __name__ == '__main__':
MyApp().run()


After running the code:



[INFO   ] [Logger      ] Record log in C:UsersPatryk.kivylogskivy_19-01-18_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [Window ] Activate GLES2/ANGLE context
[CRITICAL] [Window ] Unable to find any valuable Window provider.
sdl2 - RuntimeError: b'Could not initialize EGL'
File "C:Pythonlibsite-packageskivycore__init__.py", line 67, in core_select_lib
cls = cls()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 140, in __init__
super(WindowSDL, self).__init__()
File "C:Pythonlibsite-packageskivycorewindow__init__.py", line 968, in __init__
self.create_window()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 272, in create_window
self.fullscreen, resizable, state)
File "kivycorewindow_window_sdl2.pyx", line 209, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
File "kivycorewindow_window_sdl2.pyx", line 66, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App ] Unable to get a Window, abort.


PATH and PYTHONPATHS contains:



C:WindowsSystem32;
C:Python;
C:PythonDLLs;
C:PythonLib;
C:PythonScripts;
C:Pythonsharesdl2;
C:Pythonshareglew


Before I've started to investigate I saw this:



POP Window



I've tried few interpreters. Python 3.5.2, 3.6.1 and 3.7.2. The error is the same. Any ideas?










share|improve this question























  • This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

    – inclement
    2 days ago











  • Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

    – ForyszeP
    yesterday











  • Do you definitely have kivy.deps.sdl2 installed?

    – inclement
    yesterday











  • Yes. You will find the list below.

    – ForyszeP
    10 hours ago














0












0








0








This is well known and quite common issue. I've tried all found solutions but no success. I'm trying to make simple python app using kivy. After running below code I'm getting bunch of errors. Code:



import kivy
kivy.require('1.9.1')

import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'

from kivy.app import App
from kivy.uix.label import Label

from kivy import Config
Config.set('graphics', 'multisamples', '0')

class MyApp(App):
def build(self):
return Label(text='Hello world')

if __name__ == '__main__':
MyApp().run()


After running the code:



[INFO   ] [Logger      ] Record log in C:UsersPatryk.kivylogskivy_19-01-18_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [Window ] Activate GLES2/ANGLE context
[CRITICAL] [Window ] Unable to find any valuable Window provider.
sdl2 - RuntimeError: b'Could not initialize EGL'
File "C:Pythonlibsite-packageskivycore__init__.py", line 67, in core_select_lib
cls = cls()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 140, in __init__
super(WindowSDL, self).__init__()
File "C:Pythonlibsite-packageskivycorewindow__init__.py", line 968, in __init__
self.create_window()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 272, in create_window
self.fullscreen, resizable, state)
File "kivycorewindow_window_sdl2.pyx", line 209, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
File "kivycorewindow_window_sdl2.pyx", line 66, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App ] Unable to get a Window, abort.


PATH and PYTHONPATHS contains:



C:WindowsSystem32;
C:Python;
C:PythonDLLs;
C:PythonLib;
C:PythonScripts;
C:Pythonsharesdl2;
C:Pythonshareglew


Before I've started to investigate I saw this:



POP Window



I've tried few interpreters. Python 3.5.2, 3.6.1 and 3.7.2. The error is the same. Any ideas?










share|improve this question














This is well known and quite common issue. I've tried all found solutions but no success. I'm trying to make simple python app using kivy. After running below code I'm getting bunch of errors. Code:



import kivy
kivy.require('1.9.1')

import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'

from kivy.app import App
from kivy.uix.label import Label

from kivy import Config
Config.set('graphics', 'multisamples', '0')

class MyApp(App):
def build(self):
return Label(text='Hello world')

if __name__ == '__main__':
MyApp().run()


After running the code:



[INFO   ] [Logger      ] Record log in C:UsersPatryk.kivylogskivy_19-01-18_0.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [Window ] Activate GLES2/ANGLE context
[CRITICAL] [Window ] Unable to find any valuable Window provider.
sdl2 - RuntimeError: b'Could not initialize EGL'
File "C:Pythonlibsite-packageskivycore__init__.py", line 67, in core_select_lib
cls = cls()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 140, in __init__
super(WindowSDL, self).__init__()
File "C:Pythonlibsite-packageskivycorewindow__init__.py", line 968, in __init__
self.create_window()
File "C:Pythonlibsite-packageskivycorewindowwindow_sdl2.py", line 272, in create_window
self.fullscreen, resizable, state)
File "kivycorewindow_window_sdl2.pyx", line 209, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
File "kivycorewindow_window_sdl2.pyx", line 66, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App ] Unable to get a Window, abort.


PATH and PYTHONPATHS contains:



C:WindowsSystem32;
C:Python;
C:PythonDLLs;
C:PythonLib;
C:PythonScripts;
C:Pythonsharesdl2;
C:Pythonshareglew


Before I've started to investigate I saw this:



POP Window



I've tried few interpreters. Python 3.5.2, 3.6.1 and 3.7.2. The error is the same. Any ideas?







python kivy






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









ForyszePForyszeP

1




1













  • This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

    – inclement
    2 days ago











  • Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

    – ForyszeP
    yesterday











  • Do you definitely have kivy.deps.sdl2 installed?

    – inclement
    yesterday











  • Yes. You will find the list below.

    – ForyszeP
    10 hours ago



















  • This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

    – inclement
    2 days ago











  • Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

    – ForyszeP
    yesterday











  • Do you definitely have kivy.deps.sdl2 installed?

    – inclement
    yesterday











  • Yes. You will find the list below.

    – ForyszeP
    10 hours ago

















This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

– inclement
2 days ago





This is essentially a generic 'your Kivy doesn't have all the compiled components it needs' error. How did you install it?

– inclement
2 days ago













Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

– ForyszeP
yesterday





Step by step as instructions on kivy.org/doc/stable/installation/installation-windows.html

– ForyszeP
yesterday













Do you definitely have kivy.deps.sdl2 installed?

– inclement
yesterday





Do you definitely have kivy.deps.sdl2 installed?

– inclement
yesterday













Yes. You will find the list below.

– ForyszeP
10 hours ago





Yes. You will find the list below.

– ForyszeP
10 hours ago












1 Answer
1






active

oldest

votes


















0














List of installed libs:



Kivy    1.10.1  1.10.1
Kivy-Garden 0.1.4
Kivy-examples 1.10.1 1.10.1
Pygments 2.3.1 2.3.1
certifi 2018.11.29 2018.11.29
chardet 3.0.4 3.0.4
docutils 0.14 0.14
idna 2.8 2.8
kivy.deps.angle 0.1.7 0.1.7
kivy.deps.glew 0.1.10 0.1.10
kivy.deps.gstreamer 0.1.13 0.1.13
kivy.deps.sdl2 0.1.18 0.1.18
pip 18.1 18.1
pypiwin32 223 223
python-firebase 1.2 1.2
pywin32 224 224
requests 2.21.0 2.21.0
setuptools 40.6.3 40.6.3
urllib3 1.24.1 1.24.1
wheel 0.32.3 0.32.3





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252770%2fpython-kivy-unable-to-find-any-valuable-window-provider%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    List of installed libs:



    Kivy    1.10.1  1.10.1
    Kivy-Garden 0.1.4
    Kivy-examples 1.10.1 1.10.1
    Pygments 2.3.1 2.3.1
    certifi 2018.11.29 2018.11.29
    chardet 3.0.4 3.0.4
    docutils 0.14 0.14
    idna 2.8 2.8
    kivy.deps.angle 0.1.7 0.1.7
    kivy.deps.glew 0.1.10 0.1.10
    kivy.deps.gstreamer 0.1.13 0.1.13
    kivy.deps.sdl2 0.1.18 0.1.18
    pip 18.1 18.1
    pypiwin32 223 223
    python-firebase 1.2 1.2
    pywin32 224 224
    requests 2.21.0 2.21.0
    setuptools 40.6.3 40.6.3
    urllib3 1.24.1 1.24.1
    wheel 0.32.3 0.32.3





    share|improve this answer




























      0














      List of installed libs:



      Kivy    1.10.1  1.10.1
      Kivy-Garden 0.1.4
      Kivy-examples 1.10.1 1.10.1
      Pygments 2.3.1 2.3.1
      certifi 2018.11.29 2018.11.29
      chardet 3.0.4 3.0.4
      docutils 0.14 0.14
      idna 2.8 2.8
      kivy.deps.angle 0.1.7 0.1.7
      kivy.deps.glew 0.1.10 0.1.10
      kivy.deps.gstreamer 0.1.13 0.1.13
      kivy.deps.sdl2 0.1.18 0.1.18
      pip 18.1 18.1
      pypiwin32 223 223
      python-firebase 1.2 1.2
      pywin32 224 224
      requests 2.21.0 2.21.0
      setuptools 40.6.3 40.6.3
      urllib3 1.24.1 1.24.1
      wheel 0.32.3 0.32.3





      share|improve this answer


























        0












        0








        0







        List of installed libs:



        Kivy    1.10.1  1.10.1
        Kivy-Garden 0.1.4
        Kivy-examples 1.10.1 1.10.1
        Pygments 2.3.1 2.3.1
        certifi 2018.11.29 2018.11.29
        chardet 3.0.4 3.0.4
        docutils 0.14 0.14
        idna 2.8 2.8
        kivy.deps.angle 0.1.7 0.1.7
        kivy.deps.glew 0.1.10 0.1.10
        kivy.deps.gstreamer 0.1.13 0.1.13
        kivy.deps.sdl2 0.1.18 0.1.18
        pip 18.1 18.1
        pypiwin32 223 223
        python-firebase 1.2 1.2
        pywin32 224 224
        requests 2.21.0 2.21.0
        setuptools 40.6.3 40.6.3
        urllib3 1.24.1 1.24.1
        wheel 0.32.3 0.32.3





        share|improve this answer













        List of installed libs:



        Kivy    1.10.1  1.10.1
        Kivy-Garden 0.1.4
        Kivy-examples 1.10.1 1.10.1
        Pygments 2.3.1 2.3.1
        certifi 2018.11.29 2018.11.29
        chardet 3.0.4 3.0.4
        docutils 0.14 0.14
        idna 2.8 2.8
        kivy.deps.angle 0.1.7 0.1.7
        kivy.deps.glew 0.1.10 0.1.10
        kivy.deps.gstreamer 0.1.13 0.1.13
        kivy.deps.sdl2 0.1.18 0.1.18
        pip 18.1 18.1
        pypiwin32 223 223
        python-firebase 1.2 1.2
        pywin32 224 224
        requests 2.21.0 2.21.0
        setuptools 40.6.3 40.6.3
        urllib3 1.24.1 1.24.1
        wheel 0.32.3 0.32.3






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        ForyszePForyszeP

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252770%2fpython-kivy-unable-to-find-any-valuable-window-provider%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Homophylophilia

            Updating UILabel text programmatically using a function

            Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage