Select to view content in your preferred language

strange error in PYTHON IDLE

1062
4
08-13-2012 09:43 AM
nimitz
by
Frequent Contributor
Hi all,
I have a strange error popping up, when I try to run any script. The error, "syntax error" will pop up, but IDLE will highlight the versionnumber in the credits section. So, basically, I can't run anything. I attacHed a screen shot of what is happening.

I also use pythonwin for 2.6.5, but no error pops up. I just purchased the book, "A python primer for ARCGIS" and the tutorials and examples all use IDLE, so I'm just trying to get IDLE to work for the sake of the book.

Thanks,
Tags (2)
0 Kudos
4 Replies
BruceBacia
Frequent Contributor
That is strange.  Can you post the code you're trying to run?
0 Kudos
nimitz
by
Frequent Contributor
All the code that is on the pdf - basically all my comments - I haven't even gotten to the execution potion of the code. That's why this is strange...

BTW - it's the start of the code to delete multiple fields. I think you responded in the other thread. I'm trying to get the code you and pjordan and rdharles posted to delete fields in a shapefile, but modify for File/Personal GEODB's.

Thanks
0 Kudos
BruceBacia
Frequent Contributor
oh, i see now.  You are writing the code in the shell window. You should go to file > New Window and once it opens, put your script inthere.  Then click run > Run Module
0 Kudos
nimitz
by
Frequent Contributor
oh, i see now.  You are writing the code in the shell window. You should go to file > New Window and once it opens, put your script inthere.  Then click run > Run Module


Yeah, that did the trick!

Many thanks!
0 Kudos