1

I downloaded Sypder and I keep getting the error below when I run the script in the interpreter.

>>> continue
  File "<stdin>", line 1
SyntaxError: 'continue' not properly in loop

This happens even on a simple hello world script:

print('hello world!')
falsetru
  • 357,413
  • 63
  • 732
  • 636
AwayFromMyDesk
  • 109
  • 1
  • 9
  • Does this answer your question? [syntaxError: 'continue' not properly in loop](https://stackoverflow.com/questions/14312869/syntaxerror-continue-not-properly-in-loop) – Sören Jun 11 '22 at 09:42

2 Answers2

1

Can you please provide your script? Are you encountering this problem when running python in a n interactive mode on the python interpreter within Spyder?

There are some links on Google groups that discuss this problem:

Google Groups Spyder problems.

Please refer to the responses at the end of the page that points to some solution.

Prahalad Deshpande
  • 4,709
  • 1
  • 20
  • 22
0

The button I was clicking was the 'continue' button. It looks like a play button like in MATLAB. The actual run button is the green circle, just in case anybody runs into this silly little mistake as well. Thanks for the response Prahaland.

AwayFromMyDesk
  • 109
  • 1
  • 9
  • 1
    (*Spyder dev here*) Yes, that's the right answer. We will fix this inconsistency in our next release. Thanks for your patience :-) – Carlos Cordoba Jul 23 '13 at 14:08
  • 1
    Please take a look at our 2.2.2 version. It has a revamped icon set so people doesn't encounter this problem again – Carlos Cordoba Aug 20 '13 at 13:50
  • @CarlosCordoba I'm getting this same problem running Spyder 2.2.5. – Addem Nov 24 '14 at 20:19
  • @Addem then you're pressing the wrong button. The Run button is the button with a big Play arrow (▶) in green. – Carlos Cordoba Nov 25 '14 at 01:19
  • @Carlos Cordoba, sorry, just realized the OP was getting the error all the time. I get the error when i try to use break points and press the bottom that looks like two play buttons on top of each other. – Addem Nov 25 '14 at 05:04
  • @Addem I don't know what could be happening. Please open a new issue in our [issue tracker](http://code.google.com/p/spyderlib/issues/list) and upload there a simple example file that shows the problem. – Carlos Cordoba Nov 25 '14 at 16:31