[python-win32] Com server on 64 bit Windows 7
vijayendra bapte
vijayendra.bapte at gmail.com
Fri Dec 31 05:50:44 CET 2010
On Fri, Dec 31, 2010 at 7:56 AM, Mark Hammond <skippy.hammond at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101231/816a2063/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pywin32-214.win-amd64-py2.7 installation error.png
Type: image/png
Size: 19055 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101231/816a2063/attachment-0001.png>
More information about the python-win32
mailing list