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

There is some trouble with AutomationClient.dll has been loaded #16

Closed
Kunkka1988 opened this issue Dec 27, 2016 · 11 comments
Closed

There is some trouble with AutomationClient.dll has been loaded #16

Kunkka1988 opened this issue Dec 27, 2016 · 11 comments

Comments

@Kunkka1988
Copy link

Kunkka1988 commented Dec 27, 2016

Hi Kaisheng,

In win10, it will show the "WindowsError: [Error 126] The specified module could not be found" hints after processed "import uiautomation as automation";

I took my attention with KB971513 patch but that would not fit to win10. Specially, on another win10 machine, that works well and didn't pop-up any error hint.

I guess there is something incompatible with UIAutomationClient.dll but have no idea to fix it;
If you are free please have a look at it.
Thanks.

@yinkaisheng
Copy link
Owner

yinkaisheng commented Dec 28, 2016

Maybe some other dlls that UIAutomationClientX86.dll depends are not found. UIAutomationClientX86.dll was compiled by Visual Studio 2010 sp1.
Try to install Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) or x64
If the problem still exists after installing the package, open UIAutomationClientx86.dll with Dependency Walker, it will show the missed dlls that UIAutomationClientx86.dll depends.

@Kunkka1988
Copy link
Author

It's very timely and I'll try to figure it out.
Thanks a lot.

@yinkaisheng
Copy link
Owner

Is it fixed?

@Kunkka1988
Copy link
Author

It's not yet.
The analysis of Dependency Walker showed me there is some differences about API-MS-WIN-CORE*.dll/MSVCRT/MSVCP_WIN, but that was not obviously;
So I wanted to replace the DLLs from another machine but OS stopped me with permissions;

@Kunkka1988
Copy link
Author

That's caused by OS version.
If change to pure OS then it will be fine.
Thanks.

@LeeseHe
Copy link

LeeseHe commented Mar 20, 2017

Hi Kunkka,

Whan do you mean when you say pure OS?

Thank you.

@Kunkka1988
Copy link
Author

Hi Kaisheng,

Pure OS comes from MicroSoft, and there isn't any preloaded drivers/plugins/programs in it.
That means some driver/programs will change or affect the DLLs which uiautomation depends.
Thanks.

@yinkaisheng
Copy link
Owner

Build your UIAutomationClientX86.dll on the machine that failed
https://github.com/yinkaisheng/UIAutomationClient

@Kunkka1988
Copy link
Author

Hi Kaisheng,

Got it, thanks.

@yinkaisheng
Copy link
Owner

I have recompiled the dlls to fit different python versions.
Update uiautomation by 'pip install -U uiautomation' and try again.

@yinkaisheng
Copy link
Owner

Please update the code and test again. I fixed a issue with 64 bit Python.
It should work now.

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

No branches or pull requests

3 participants