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

errors towards the end of installation. #599

Closed
ghost opened this issue May 28, 2012 · 11 comments
Closed

errors towards the end of installation. #599

ghost opened this issue May 28, 2012 · 11 comments

Comments

@ghost
Copy link

ghost commented May 28, 2012

While trying to install pywin32-217.win-amd64-py2.6.exe, I get following errors towards the end of installation.

Traceback (most recent call last):

File "<string>", line 612, in <module>

File "<string>", line 322, in install

File "<string>", line 160, in LoadSystemModule

ImportError: DLL load failed: The specified module could not be found.

Reported by: *anonymous

Original Ticket: pywin32/bugs/599

@ghost
Copy link
Author

ghost commented May 28, 2012

screenshot

Original comment by: *anonymous

@ghost
Copy link
Author

ghost commented Jul 5, 2012

I get the same error trying to install pywin32-217.win-amd64-py3.3.exe

Original comment by: guruglenn

@ghost
Copy link
Author

ghost commented Jul 5, 2012

Just for kicks, I added a print statement in LoadSystemModule in pywin32_postinstall.py, and the module it cannot load, on my system, is

c:\python33\Lib\site-packages\pywin32_system32\pywintypes33.dll

This probably doesn't surprise you since that is what the comments imply... The file exists in that location.

Is there something else I can do to help debug this problem?

Original comment by: guruglenn

@ghost
Copy link
Author

ghost commented Jul 5, 2012

These problems all appear to be specific to 3.3. Sadly pywin32-217 was built with vc2008 where 3.3 recently moved to vs2010. I'm looking into it...

Original comment by: mhammond

@ghost
Copy link
Author

ghost commented Jul 6, 2012

I put a build up at http://starship.python.net/~skippy/downloads/pywin32-217.1.win-amd64-py3.3.exe - it works for me here, but it would be great if anyone experiencing this problem could test it out. It is being slow to upload, so give it 30 mins after this message was posted - the filesize is 8,441,923.

I'll make a real release soon...

Original comment by: mhammond

@ghost
Copy link
Author

ghost commented Jul 6, 2012

Build 217.1 works for me.

Original comment by: guruglenn

@ghost
Copy link
Author

ghost commented Oct 28, 2012

I get this install error with 217 on both Vista 32 and 64, w/ 32bit Python 2.6 on both. Is there a manual install method? I'd like to use the library very much. Thanks.

Original comment by: dcmacleo

@ghost
Copy link
Author

ghost commented Oct 28, 2012

OK, got ambitious and looked it up myself! ;)

Here's what worked for me for others:

http://forums.arcgis.com/threads/33808-PyWin32-212.win32-py2.6-silent-install

Original comment by: dcmacleo

@ghost
Copy link
Author

ghost commented Nov 21, 2012

I'll try adding on to this instead of making a new one...

I have gotten the DLL load failed error in all runs of the pywin32 win32 installer I have ever done. This is on many different machines, with different Windows versions. The post install script has never worked within the installer.

I got around the problem by running the post install script manually on the cmd line with the -install parameter. This has always worked.

Then one day I happen to install VS2008 Express Edition to do some development work with Python. Ever since I installed VS2008, the post install script now runs properly at the end of the installer.

I uninstalled VS2008 to see how the installer would react. I now get a sys.excepthook missing and stderr not found error. Though, I suspect, it was trying to print the DLL load failed exception and couldn't. Just speculation, though.

I would recommend someone try using the installer on a system that has never had VS2008 installed and see if the DLL load failed error can be reproduced.

Original comment by: hasenpfeffer2

@ghost
Copy link
Author

ghost commented Nov 26, 2012

I found some more information about my problems related to post install script failures I was experiencing.

The most interesting is that the installer does not seem to work when the logged-in account is not a local account. I am a member of Administrators on my machine, but my account is a network account, and the post install script always fails at the end of the installer with a sys.stderr not found and such. By creating a local Admin account and using that account to start the installer, then the post install script works. Can a change be made to allow non-local administrator accounts work?

I believe my original problems were not related to installing VS2008 now. I had caused most of my problems by using a custom pythonxx.dll that did not include the correct manifest for VS2008 dlls. Once I started using the shipping pythonxx.dll, then things worked mostly as expected, except for the above non-local admin problem.

Incidentally, I also found that having the pythonxx.dll in the same folder as the pywin32....exe installer caused my administrator problem to go away as well. So, normally I always get the sys.stderr missing failure. If the pythonxx.dll is in the same folder as the installer executable, then the post install script works fine even under a non-local admin account.

Original comment by: hasenpfeffer2

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

Avasam commented Mar 16, 2024

.exe/binary installers are now deprecated #1939 and a lot of DLL location issues have been resolved since then, especially by using wheels available on PyPI

@Avasam Avasam closed this as completed Mar 16, 2024
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

1 participant