python - csv module doesn't work in Google App Engine -


we using google app engine python our application. wrote code exports data csv, using csv module. when try read csv:

import csv  users_csv_file = self.request.get("users_csv_file") csv_reader = csv.reader(users_csv_file) 

i exception:

attributeerror: 'module' object has no attribute 'reader' 

what problem , why can't import csv?

eventually found problem. had directory "csv" , when imported csv imported local directory, didn't have attribute reader. renamed directory "_csv" , solved problem.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -