Massimo, Chris Thank you both of your reply!
I added import pyodbc in db.py and here's what I get. This is expected just like Chris described. "ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed." Then I tried mt.exe things. (See attached file) Strangely, I got error with python27.dll but went through with python.exe. At least, I confirmed the modified date has been changed on the .pyd files. But I still have the same problem...maybe I'm unlucky one :( Chris, Can you send me the fixed .pyd files so I can try in my environment ?
?c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>mt.exe -inputresource:C:\Windows\System32\python27.dll -outputresource :C:\Python27\Lib\site-packages\pyodbc.pyd Microsoft (R) Manifest Tool version 5.2.3790.2076 Copyright (c) Microsoft Corporation 2005. All rights reserved. mt.exe : general error c101008c: Failed to read the manifest from the resource of file "C:\Windows\System32\python27.dll ". The specified resource name cannot be found in the image file. c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>mt.exe -inputresource:C:\Python27\python.exe -outputresource:C:\Pytho n27\Lib\site-packages\pyodbc.pyd Microsoft (R) Manifest Tool version 5.2.3790.2076 Copyright (c) Microsoft Corporation 2005. All rights reserved. c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>mt.exe -inputresource:C:\Python27\python.exe -outputresource:C:\Pytho n27\Lib\site-packages\pyodbcconf.pyd Microsoft (R) Manifest Tool version 5.2.3790.2076 Copyright (c) Microsoft Corporation 2005. All rights reserved. c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>^V

