AnsweredAssumed Answered

Python script works in 2.7 but not 2.6?

Question asked by t.faull on Mar 28, 2017
Latest reply on Mar 29, 2017 by vangelo-esristaff

Hi. I have a script created in Python 2.7.10. It runs without issue on a machine with 2.7.10 installed:

(spreadsheet>>>XY Event Layer>>>Feature Class)


But on a machine with 2.6.5 installed, it errors. Why is this?:

Is it because I'm trying to make an XY event layer from a sheet within an Excel spreadsheet, and I don't have Microsoft Office installed on this second machine (no licence)? Screenshot below shows the spreadsheet needed for the XY event layer, and it's showing up as an unassociated file type (no program found to open it).


I didn't think Microsoft Office would be needed for Python to be able to extract a sheet. I've also experimented with making a CSV version of the file and pointing the script to use that, but the same error appears.

Any thoughts most welcome!!!