Python error immediately after Kivy app runing





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to run a very simple Kivy script:



import kivy
kivy.require("1.10.1")

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

class SampleKivy(App):
def build(self):
return Label(text="Hello world")

SampleKivy().run()


but python immediately crashes after the window opens
enter image description here



I followed instructions for installation on win 10 for Python 3.6.5
I did it with success on an other Windows 10 PC of mine
I also did it with success on an Ubuntu Virtual Machine ( the real true is that the Ubuntu installation was tricky)



Can someone help me solve it please?



Thanks a lot



Kostas










share|improve this question























  • I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

    – Torxed
    Nov 23 '18 at 21:08













  • This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

    – kpk
    Nov 23 '18 at 21:50











  • There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

    – John Anderson
    Nov 23 '18 at 22:49











  • Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

    – kpk
    Nov 24 '18 at 10:26











  • The log file looks normal. Have you tried clicking on the Debug button that appears?

    – John Anderson
    Nov 24 '18 at 18:12


















0















I am trying to run a very simple Kivy script:



import kivy
kivy.require("1.10.1")

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

class SampleKivy(App):
def build(self):
return Label(text="Hello world")

SampleKivy().run()


but python immediately crashes after the window opens
enter image description here



I followed instructions for installation on win 10 for Python 3.6.5
I did it with success on an other Windows 10 PC of mine
I also did it with success on an Ubuntu Virtual Machine ( the real true is that the Ubuntu installation was tricky)



Can someone help me solve it please?



Thanks a lot



Kostas










share|improve this question























  • I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

    – Torxed
    Nov 23 '18 at 21:08













  • This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

    – kpk
    Nov 23 '18 at 21:50











  • There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

    – John Anderson
    Nov 23 '18 at 22:49











  • Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

    – kpk
    Nov 24 '18 at 10:26











  • The log file looks normal. Have you tried clicking on the Debug button that appears?

    – John Anderson
    Nov 24 '18 at 18:12














0












0








0








I am trying to run a very simple Kivy script:



import kivy
kivy.require("1.10.1")

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

class SampleKivy(App):
def build(self):
return Label(text="Hello world")

SampleKivy().run()


but python immediately crashes after the window opens
enter image description here



I followed instructions for installation on win 10 for Python 3.6.5
I did it with success on an other Windows 10 PC of mine
I also did it with success on an Ubuntu Virtual Machine ( the real true is that the Ubuntu installation was tricky)



Can someone help me solve it please?



Thanks a lot



Kostas










share|improve this question














I am trying to run a very simple Kivy script:



import kivy
kivy.require("1.10.1")

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

class SampleKivy(App):
def build(self):
return Label(text="Hello world")

SampleKivy().run()


but python immediately crashes after the window opens
enter image description here



I followed instructions for installation on win 10 for Python 3.6.5
I did it with success on an other Windows 10 PC of mine
I also did it with success on an Ubuntu Virtual Machine ( the real true is that the Ubuntu installation was tricky)



Can someone help me solve it please?



Thanks a lot



Kostas







python kivy






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 21:01









kpkkpk

366




366













  • I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

    – Torxed
    Nov 23 '18 at 21:08













  • This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

    – kpk
    Nov 23 '18 at 21:50











  • There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

    – John Anderson
    Nov 23 '18 at 22:49











  • Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

    – kpk
    Nov 24 '18 at 10:26











  • The log file looks normal. Have you tried clicking on the Debug button that appears?

    – John Anderson
    Nov 24 '18 at 18:12



















  • I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

    – Torxed
    Nov 23 '18 at 21:08













  • This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

    – kpk
    Nov 23 '18 at 21:50











  • There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

    – John Anderson
    Nov 23 '18 at 22:49











  • Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

    – kpk
    Nov 24 '18 at 10:26











  • The log file looks normal. Have you tried clicking on the Debug button that appears?

    – John Anderson
    Nov 24 '18 at 18:12

















I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

– Torxed
Nov 23 '18 at 21:08







I don't think you should be returning anything from build()? And perhaps add a def on_pause(self): return True? See if that helps? You could look through the smaller examples on their website to see how they do it, and what functions are required for a bare minimum. A good example might be the simple picture viewer? :)

– Torxed
Nov 23 '18 at 21:08















This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

– kpk
Nov 23 '18 at 21:50





This small script ( and others more complicated) worked fine in an other installation on win 10 on a second PC of mine. It worked fine also in Ubuntu. By the way I had no luck with def on_pause(self): return True?

– kpk
Nov 23 '18 at 21:50













There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

– John Anderson
Nov 23 '18 at 22:49





There is nothing wrong with the script. Have a look in your .kivylogs directory in your home directory (not Desktop). There should a a log file for each time you run a Kivy app. Check for any errors posted in the log file.

– John Anderson
Nov 23 '18 at 22:49













Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

– kpk
Nov 24 '18 at 10:26





Log file seems to me clear enough. Is what I get when I tun the script. This is my log file [link] textuploader.com/d3lla

– kpk
Nov 24 '18 at 10:26













The log file looks normal. Have you tried clicking on the Debug button that appears?

– John Anderson
Nov 24 '18 at 18:12





The log file looks normal. Have you tried clicking on the Debug button that appears?

– John Anderson
Nov 24 '18 at 18:12












1 Answer
1






active

oldest

votes


















0














I restart my PC in safe mode ( for another reason) and problem fixed.
I can't say that is a solution but it worked for me , for the time



thanks



Kostas






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%2f53452898%2fpython-error-immediately-after-kivy-app-runing%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














    I restart my PC in safe mode ( for another reason) and problem fixed.
    I can't say that is a solution but it worked for me , for the time



    thanks



    Kostas






    share|improve this answer




























      0














      I restart my PC in safe mode ( for another reason) and problem fixed.
      I can't say that is a solution but it worked for me , for the time



      thanks



      Kostas






      share|improve this answer


























        0












        0








        0







        I restart my PC in safe mode ( for another reason) and problem fixed.
        I can't say that is a solution but it worked for me , for the time



        thanks



        Kostas






        share|improve this answer













        I restart my PC in safe mode ( for another reason) and problem fixed.
        I can't say that is a solution but it worked for me , for the time



        thanks



        Kostas







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 3 '18 at 20:09









        kpkkpk

        366




        366
































            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%2f53452898%2fpython-error-immediately-after-kivy-app-runing%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







            這個網誌中的熱門文章

            Hercules Kyvelos

            Tangent Lines Diagram Along Smooth Curve

            Yusuf al-Mu'taman ibn Hud