On a Windows Server, logged with domain account - When I try to run my python executable from command prompt (with admin), it throws error, saying it cannot find some modules.

But on same server, when logged via local admin account or local user account, when I try to run same executable, it runs properly.

You can see the error in linked image below -

Error: module object has no attribute CUIAutomation

P.S. I have created the exe via pyinstaller.

Also note: Strange thing, path exe is looking for is one for of my local system, rather than that of target system

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.