Try to add environment variable PYTHONHOME = С:\OSGeo4W\apps\Python25. I've always use this instruction http://gis-lab.info/qa/qgis-compile-vce.html (sorry, it's in Russian) and have no problems with compiling. Note, that this instruction is very similar with INSTALL file from QGIS source tree
2011/5/11 sunilrajkiran pichaimani <sunilrajki...@gmail.com>: >> +1 to sstx , I followed the same steps from INSTALL.doc but could not >> suceed still I got the last 2 errors as > > > Generating ui_qgsplugininstalleroldreposbase.py > 'import site' failed; use -v for traceback > Traceback (most recent call last): > File "C:\OSGeo4W\apps\Python25\Lib\site-packages\PyQt4\uic\pyuic.py", line > 34, in <module> > import optparse > ImportError: No module named optparse > Performing Post-Build Event... > 'import site' failed; use -v for traceback > Traceback (most recent call last): > File "C:/qgis_source/cmake/PythonCompile.py", line 3, in <module> > import py_compile > ImportError: No module named py_compile > > Can anyone help me yo solve this also Please? > Regards, > Sunil > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > -- Alexander Bruy _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer