title: Error CSV: coercing to Unicode: need string or buffer, S3BotoStorageFile found
body: <p>I'm getting the following error when trying to read the <strong>row</strong> and <strong>column</strong> count of a <strong>CSV</strong>:</p>
  
  <p><strong>> coercing to Unicode: need string or buffer, S3BotoStorageFile found</strong></p>
  
  <pre><code>import csv
  
  class CSV:
      def __init__(self, file=None):
          self.file = file
  
      def read_file(self):
          data = []
          file_read = read_file(self.file)
          return file_read
  
      def get_row_count(self):
          return len(self.read_file())
  
      def get_column_count(self):
          new_data = self.read_file()
          return len(new_data[0])
  
      def get_data(self, rows=1):
          data = self.read_file()
          return data[:rows]
  
  def read_file(self):
      with open(self.file, 'r') as f:
          data = [row for row in csv.reader(f.read().splitlines())]
      return data
  </code></pre>
  
  <p><strong>How do I resolve?</strong> </p>