Combined server assembly using Python on a 64-bit Windows 7 machine

Original post here: http://mail.python.org/pipermail/python-win32/2010-December/011011.html

I use:

  • OS: 64-bit version of Windows 7 Professional
  • Python: python-2.7.1.amd64
  • Python win32 extensions: pywin32-214.win-amd64-py2.7
  • Py2exe: py2exe-0.6.9.win64-py2.7.amd64

I am trying to create an icon overlay for Windows. It worked fine on 32-bit Windows, but does not work on 64-bit Windows 7.

Here are the Python modules I created for testing:

C:\icons, python test_icon_overlay.py Windows explorer.exe. dll, setup_VI.py

dll python setup_VI.py py2exe, regsvr32 test_icon_overlay.dll. Windows Error 0x80040201 while registering shell extension.

Python27/Lib/site-packages/py2exe/boot_com_servers.py , comerror.txt 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

, win32api.GetModuleFileName(sys.frozendllhandle) DLL- 64- Windows 7.

, , pywin32-214.win-amd64-py2.7 64- Windows 7 :

close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

-, ? .

+3
1

py2exe 64- Python. Sys.frozendllhandle, py2exe, , win32api.GetModuleFileName(sys.frozendllhandle) .

, py2exe http://www.lfd.uci.edu/~gohlke/pythonlibs/#py2exe

+5

Source: https://habr.com/ru/post/1783178/


All Articles