Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Oct 18, 2013 · 5 comments
Closed

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

ghost opened this issue Oct 18, 2013 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2013

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
""" % 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!

Reported by: jbray1982

Original Ticket: pywin32/bugs/660

@ghost
Copy link
Author

ghost commented Oct 18, 2013

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!

Original comment by: jbray1982

@ghost
Copy link
Author

ghost commented Oct 18, 2013

So wait, I need specifically the Windows 7 SDK?

Original comment by: jbray1982

@ghost
Copy link
Author

ghost commented Dec 16, 2013

Close the ticket then.

Original comment by: native_api

@ghost
Copy link
Author

ghost commented Dec 16, 2013

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

Original comment by: native_api

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 12, 2024

if os.path.isfile(os.path.join(sdk_dir, "include", "activng.h")):

@mhammond I believe this should be closed by #1936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants