1

I am writing a python script to automate some ArcMaps data processing. I am getting hung up at raw_input(). I am using raw_input to get input from a user. A folder will be created with the folder name based on the user input.

I don't understand why this isn't working. I've viewed tutorials, read the manual, etc... and I still can't figure out why I am getting this error for raw_input().

I've managed to be able to get user to select files and directories suing the Tkinter toolkit should I look into using this toolkit to get text from a user prompt as well?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
user3150002
  • 87
  • 1
  • 3
  • 8

1 Answers1

2

raw_input does not work in the Python window in ArcMap, plain and simple. Since the application is not a command line app there is no sys.stdin to read from.

I would recommend you instead write a geoprocessing script tool and use the dialog it provides for user input. Please refer to this prior question for more information.

Jason Scheirer
  • 18,002
  • 2
  • 53
  • 72