Forums

Loading Python3.4 interpreter...

Hi today I was trying to run a script and when I try to run it , it gives me a Loading Python3.4 interpreter... message and it never disappeared and now I am in the tarpit :(.

this only happens when I run it from the IDE.

[Edit: the server closed it]

That's odd. That can happen from time to time, if one of our console servers is running slowly and your console happens to be assigned to it (each time you start a new console it gets randomly assigned to one of the console servers linked to your account). But it won't affect the tarpit -- CPU usage only gets assigned if your code is actually using CPU.

Is it possible that your code did some large amount of number crunching before it printed anything out? Normally you'd expect the "Loading interpreter" message to disappear as soon as the interpreter starts, but there is a possibility that under some circumstances it might wait until your program prints something out.

hi giles,

I was not doing anything cpu intense at that time nor was the other one. It only happened when I tried to run it through the IDE.

I tried it again and it got stuck on that again and used up 17% of the cpu :(.

[edit: when I went back it used up 25% of the cpu] It seems to take up cpu- and not do anything.

I figured it out! (Or what I think was the problem):

I was using os.urandom() alot and so it was still making it while it said it was loading. tell me if I'm wrong.

That might explain it -- generating random numbers can be surprisingly CPU-intensive, especially if you're calling it a lot of times.

thank you a lot.