On Fri, Dec 31, 2010 at 7:56 AM, Mark Hammond <skippy.hamm...@gmail.com>wrote:
> On 29/12/2010 9:40 PM, vijayendra bapte wrote: > >> I have created dll file using `python setup_VI.py py2exe` and then tried >> to register it using `regsvr32 test_icon_overlay.dll`. Registration >> fails with windows error message "Error 0x80040201 while registering >> shell extension". >> > > I guess trying to track the above down is what needs to be done. Maybe try > making an exe purely for the purposes of registering (ie, just invoking > HandleCommandLine) and see how it does - at least you might get a traceback > out of it. > > I have turned on logger in `Python27/Lib/site-packages/py2exe/boot_com_servers.py` and here is the traceback which I am getting in `comerror.txt` on `regsvr32 test_icon_overlay.dll` PATH is ['C:\\root\\avalon\\module\\sync\\python\\src\\dist\\library.zip'] Traceback (most recent call last): File "boot_com_servers.py", line 37, in <module> pywintypes.error: (126, 'GetModuleFileName', 'The specified module could not be found.') Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'DllRegisterServer' is not defined Looks like there might be a problem with `win32api.GetModuleFileName(sys.frozendllhandle)` or with the dll build on 64-bit Windows 7 . Also, I saw that installation of 'pywin32-214.win-amd64-py2.7' on 64-bit Windows 7 finish with the error message: close failed in file object destructor: sys.excepthook is missing lost sys.stderr <<Attached snapshot of error message>> Thanks, Vijayendra.
<<attachment: pywin32-214.win-amd64-py2.7 installation error.png>>
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32