Hello,
My IT group has built a python script that runs as a service on our windows boxes and makes use of the pywin32 module. However, we are attempting to upgrade to Windows 8.1 and need an automated way to install the pywin32 module to python. However, the setup.py fails with the following error:
Traceback (most recent call last):
File "\path\to\setup.py", line 1957, in <module>
""" % dirs).split()
File "\path\to\setup.py", line 605,
in init
if os.path.isfile(os.path.join(sdk_dir, "include", "activng.h")):
File "\other\path\to\ntpath.py, line 96, in join
assert len(path) > 0
TypeError: object of type 'NoneType' has no len()
The GUI installer has given me no problems, but that is not an option, as this should be an unattended install.
Thanks!
Actually this may not be a bug, I think I may have just been misinformed about what came included with Windows 8.1.
Apparently the SDK does not ship with 8.1 Enterprise. Still leaves me in a bad spot since I can't connect to the internet until this script runs and I can't run the script until I get the SDK from the internet, but that isn't an issue with your module.
Thanks anyway, sorry for the mispost!
Close the ticket then.
So wait, I need specifically the Windows 7 SDK?
Last edit: Jason 2013-10-18
If you're building pywin32 yourself, you need whatever SDK your Python instance was built with.
Last edit: native_api 2013-12-16