Ubuntu 18.04 software issue, Idle ok, pycharm shows error












1















Running with ubuntu 18.04
using Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux



Using ‘pycharm 2018 community edition’ as the editor. This is the reply i get from pycharm indicating the error - as follows:



Traceback (most recent call last):
File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in
root.mainloop()
AttributeError: 'NoneType' object has no attribute 'mainloop'



Process finished with exit code 1.



When writing the program I close off with - root.mainloop()



However – if I run the program in IDLE, I do not get an error, the program works.



At this point i would like to mention that i have no idea where to go with this and i am a newbie when it comes to programming. This site appears to be only for people who are experienced in python, someone gave me the procedure for making a comment or raising a question, but I fear it is going to take me a while to learn this procedure. This is possibly the wrong place for me in my early learning curve..



Any ideas on how to fix it?










share|improve this question

























  • Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

    – user535733
    Jan 10 at 3:29











  • Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

    – RonCM
    Jan 10 at 6:25











  • This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

    – RonCM
    Jan 10 at 9:09













  • It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

    – user535733
    Jan 10 at 13:57













  • to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

    – RonCM
    Jan 12 at 13:33


















1















Running with ubuntu 18.04
using Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux



Using ‘pycharm 2018 community edition’ as the editor. This is the reply i get from pycharm indicating the error - as follows:



Traceback (most recent call last):
File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in
root.mainloop()
AttributeError: 'NoneType' object has no attribute 'mainloop'



Process finished with exit code 1.



When writing the program I close off with - root.mainloop()



However – if I run the program in IDLE, I do not get an error, the program works.



At this point i would like to mention that i have no idea where to go with this and i am a newbie when it comes to programming. This site appears to be only for people who are experienced in python, someone gave me the procedure for making a comment or raising a question, but I fear it is going to take me a while to learn this procedure. This is possibly the wrong place for me in my early learning curve..



Any ideas on how to fix it?










share|improve this question

























  • Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

    – user535733
    Jan 10 at 3:29











  • Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

    – RonCM
    Jan 10 at 6:25











  • This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

    – RonCM
    Jan 10 at 9:09













  • It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

    – user535733
    Jan 10 at 13:57













  • to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

    – RonCM
    Jan 12 at 13:33
















1












1








1








Running with ubuntu 18.04
using Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux



Using ‘pycharm 2018 community edition’ as the editor. This is the reply i get from pycharm indicating the error - as follows:



Traceback (most recent call last):
File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in
root.mainloop()
AttributeError: 'NoneType' object has no attribute 'mainloop'



Process finished with exit code 1.



When writing the program I close off with - root.mainloop()



However – if I run the program in IDLE, I do not get an error, the program works.



At this point i would like to mention that i have no idea where to go with this and i am a newbie when it comes to programming. This site appears to be only for people who are experienced in python, someone gave me the procedure for making a comment or raising a question, but I fear it is going to take me a while to learn this procedure. This is possibly the wrong place for me in my early learning curve..



Any ideas on how to fix it?










share|improve this question
















Running with ubuntu 18.04
using Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux



Using ‘pycharm 2018 community edition’ as the editor. This is the reply i get from pycharm indicating the error - as follows:



Traceback (most recent call last):
File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in
root.mainloop()
AttributeError: 'NoneType' object has no attribute 'mainloop'



Process finished with exit code 1.



When writing the program I close off with - root.mainloop()



However – if I run the program in IDLE, I do not get an error, the program works.



At this point i would like to mention that i have no idea where to go with this and i am a newbie when it comes to programming. This site appears to be only for people who are experienced in python, someone gave me the procedure for making a comment or raising a question, but I fear it is going to take me a while to learn this procedure. This is possibly the wrong place for me in my early learning curve..



Any ideas on how to fix it?







18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 10 at 9:47







RonCM

















asked Jan 10 at 3:23









RonCMRonCM

64




64













  • Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

    – user535733
    Jan 10 at 3:29











  • Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

    – RonCM
    Jan 10 at 6:25











  • This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

    – RonCM
    Jan 10 at 9:09













  • It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

    – user535733
    Jan 10 at 13:57













  • to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

    – RonCM
    Jan 12 at 13:33





















  • Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

    – user535733
    Jan 10 at 3:29











  • Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

    – RonCM
    Jan 10 at 6:25











  • This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

    – RonCM
    Jan 10 at 9:09













  • It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

    – user535733
    Jan 10 at 13:57













  • to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

    – RonCM
    Jan 12 at 13:33



















Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

– user535733
Jan 10 at 3:29





Please edit your question to show the complete output (properly formatted). Your summary does not include enough information.

– user535733
Jan 10 at 3:29













Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

– RonCM
Jan 10 at 6:25





Hi, thanks for your comment, you mentioned that i need to properly format my question, may i ask how do i properly format the question....? i assume you have guidelines that i need to learn and follow?

– RonCM
Jan 10 at 6:25













This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

– RonCM
Jan 10 at 9:09







This is the reply i get from pycharm indicating my error: Traceback (most recent call last): File "/home/ron/Desktop/python bible/Concrete app.py", line 39, in <module> root.mainloop() AttributeError: 'NoneType' object has no attribute 'mainloop' Process finished with exit code 1

– RonCM
Jan 10 at 9:09















It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

– user535733
Jan 10 at 13:57







It does not look like a problem with PyCharm nor with Ubuntu. It's an error in your code - seems you did not define the variable 'root' properly.

– user535733
Jan 10 at 13:57















to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

– RonCM
Jan 12 at 13:33







to user535733 , your comment is interesting, let me fill you in a little more. My code was written in Idle.... and when i run the code it works just fine. But when i try to run the exact same code in pycharm, it doesn't work. The code is not modified prior to using pycharm, nor is the code modified when in pycharm. Does that paint a more complete picture?

– RonCM
Jan 12 at 13:33












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f1108460%2fubuntu-18-04-software-issue-idle-ok-pycharm-shows-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1108460%2fubuntu-18-04-software-issue-idle-ok-pycharm-shows-error%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

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀