Menu

#660 Pywin32 script install doesn't work on Windows 8.1

v1.0 (example)
open
nobody
Windows81 (1)
5
2013-10-18
2013-10-18
Jason
No

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!

1 Attachments

Discussion

  • Jason

    Jason - 2013-10-18

    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!

     
    • native_api

      native_api - 2013-12-16

      Close the ticket then.

       
  • Jason

    Jason - 2013-10-18

    So wait, I need specifically the Windows 7 SDK?

     

    Last edit: Jason 2013-10-18
    • native_api

      native_api - 2013-12-16

      If you're building pywin32 yourself, you need whatever SDK your Python instance was built with.

       

      Last edit: native_api 2013-12-16