Menu

#761 InprocServer returns 0x80040154 (Class not registered)

v1.0 (example)
open
nobody
None
5
2017-12-06
2017-12-06
Tobias Loew
No

Hi,

I've installed Python 3.5 (x64) (without adding Python to the environment variables) and the appropriate pywin32 and registered a COM-class.
Instantiation from x86 processes (e.g. Excel 32-bit) worked fine (a pythonw.exe process was started)
Instantiation from x64 processes failed: 0x80040154 (Class not registered) was returned

(Removing the "InprocServer32" key from HKCR\CLSID{MyGuid}\ solves the x64-problem (a pythonw.exe process is then created).)

After "Modifiying" the Python 3.5 installation and checking "Add Python to environment variables" the x64 InprocServer32 works fine. Somehow the "pythoncom35.dll" needs python in the environment variables to work.

Please either make it work or check the environment variables on pywin32-installation and give a warning (since it is quite hard to figure out, what's going wrong)

Tobias

Discussion