buffer interface problem

2010-01-07 Thread Andrew Gillanders
I have run into a problem running a Python script that is part of the TerraGear suite for building scenery for FlightGear. I am using Mac OS X 10.4, running Python (version 3.0.1) in a Unix terminal. The purpose of the script is to walk a directory tree, unzipping files, and passing the

Re: buffer interface problem

2010-01-07 Thread Chris Rebert
On Thu, Jan 7, 2010 at 12:19 AM, Andrew Gillanders andrew.gilland...@uqconnect.edu.au wrote: I have run into a problem running a Python script that is part of the TerraGear suite for building scenery for FlightGear. I am using Mac OS X 10.4, running Python (version 3.0.1) in a Unix terminal.

Re: buffer interface problem

2010-01-07 Thread Andrew Gillanders
Thanks Chris. The atoi function was coming from the locale library (from locale import atoi). I changed it to int and now it works. The next hurdle is this: gzin = GzipFile(fname, 'rb') data = gzin.readline() #min_x,min_y = map(atoi,data.split()[:2]) min_x,min_y =

Re: buffer interface problem

2010-01-07 Thread Chris Rebert
On Thu, Jan 7, 2010 at 4:47 AM, Andrew Gillanders andrew.gilland...@uqconnect.edu.au wrote: On 07/01/2010, at 7:13 PM, Chris Rebert wrote: On Thu, Jan 7, 2010 at 12:19 AM, Andrew Gillanders andrew.gilland...@uqconnect.edu.au wrote: I have run into a problem running a Python script that is