LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Syntax errors for no reason #709

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
This is a program that was running fine earlier when attempting to run the 
functions but now I am getting unexpected Syntax Errors for no reason.

What version of the product are you using? On what operating system?
I am using PyScripter 2.5.3 64 bit with Python 2.7 64 bit on Windows 7.

Please provide any additional information below.
I have attached a file with some screenshots of the errors I've been getting, I 
put triple quotation marks around the lines which were getting syntax to show 
you all the errors I was getting, if you are unable to open the file these are 
the sort of errors I was getting:
n = 0
print "sentence"

I was getting a red underline under lines with print, or when declaring a 
variable for no reason.

Original issue reported on code.google.com by dylanjam...@gmail.com on 5 Dec 2012 at 6:17

Attachments:

GoogleCodeExporter commented 9 years ago
I am getting the same error (syntax error) with print "something". It seems 
that it is expecting print("something") instead.

Original comment by arefnamm...@gmail.com on 14 Dec 2012 at 1:22

GoogleCodeExporter commented 9 years ago
print("....") is the syntax for python 3.2 I can't seem to be able to change 
the interpreter used with pyscripter to other versions of python--I have both 
python 2.7 and 3.2 installed.

Original comment by arefnamm...@gmail.com on 14 Dec 2012 at 1:39

GoogleCodeExporter commented 9 years ago
To run python 2.7 or any version other than 3.2 you have to use external run 
and configure accordingly.

Original comment by arefnamm...@gmail.com on 14 Dec 2012 at 6:32

GoogleCodeExporter commented 9 years ago
Apparently you are using pyscripter with the python 3.2 and python 2.7.

If PyScripter is started without any command line arguments it uses the highest 
numbered python version available.  To use pyscripter with python 2.7 you need 
to start it with the following command line:

pyscripter --python27

If you used the installer shortcuts that enable you to run pyscripter with any 
version of python are created.

Original comment by pyscripter on 14 Dec 2012 at 10:53