I installed a 32 bit Data Extract Python API module with 32 bit Python 2.7. When I run the command "import dataextract" directly in Python Shell, it doesn't report any errors. But, when I run a sample script I get "ImportError: No module named dataextract" error. What's going on?
It seems that the installation of Python libraries for ArcGIS 10.1 was causing a conflict as ArcGIS also has a Python library called dataextract. Renaming ArcGIS folders inside Python27 folder solved the problem.