From 871259 at lcps.org Wed Jun 2 18:09:52 2021 From: 871259 at lcps.org (CodingMan125) Date: Wed, 2 Jun 2021 18:09:52 -0400 Subject: [python-win32] Using win32gui.FindWindow() results in black or white screen Message-ID: <3CC8A485-507F-41D6-8EC4-9A28C7DEA6D1@hxcore.ol> Dear, List Members using the FindWindow function from win32gui to find the window handle of a certain window through window name to enable video capture of certain window results in a black screen. Although trying the same code without a window handle to default it to capturing the whole screen results in a successful video capture, the same code however results in a black or white screen when trying to capture a specific window with window handle. How can I solve this? Code: This is the main file, main.py import cv2 as cv import numpy as np import os from time import time from windowcapture import WindowCapture # Change the working directory to the folder this script is in. # Doing this because I'll be putting the files from each video in their own folder on GitHub os.chdir(os.path.dirname(os.path.abspath(__file__))) # initialize the WindowCapture class wincap = WindowCapture('Albion Online Client') loop_time = time() while(True): # get an updated image of the game screenshot = wincap.get_screenshot() cv.imshow('Computer Vision', screenshot) # debug the loop rate print('FPS {}'.format(1 / (time() - loop_time))) loop_time = time() # press 'q' with the output window focused to exit. # waits 1 ms every loop to process key presses if cv.waitKey(1) == ord('q'): cv.destroyAllWindows() break print('Done.') This is the class file which gets imported into main.py, windowcapture.py import numpy as np import win32gui, win32ui, win32con class WindowCapture: # properties w = 0 h = 0 hwnd = None cropped_x = 0 cropped_y = 0 offset_x = 0 offset_y = 0 # constructor def __init__(self, window_name): # find the handle for the window we want to capture self.hwnd = win32gui.FindWindow('UnityWndClass', window_name) if not self.hwnd: raise Exception('Window not found: {}'.format(window_name)) # get the window size window_rect = win32gui.GetWindowRect(self.hwnd) self.w = window_rect[2] - window_rect[0] self.h = window_rect[3] - window_rect[1] # account for the window border and titlebar and cut them off border_pixels = 8 titlebar_pixels = 30 self.w = self.w - (border_pixels * 2) self.h = self.h - titlebar_pixels - border_pixels self.cropped_x = border_pixels self.cropped_y = titlebar_pixels # set the cropped coordinates offset so we can translate screenshot # images into actual screen positions self.offset_x = window_rect[0] + self.cropped_x self.offset_y = window_rect[1] + self.cropped_y def get_screenshot(self): # get the window image data wDC = win32gui.GetWindowDC(self.hwnd) dcObj = win32ui.CreateDCFromHandle(wDC) cDC = dcObj.CreateCompatibleDC() dataBitMap = win32ui.CreateBitmap() dataBitMap.CreateCompatibleBitmap(dcObj, self.w, self.h) cDC.SelectObject(dataBitMap) cDC.BitBlt((0, 0), (self.w, self.h), dcObj, (self.cropped_x, self.cropped_y), win32con.SRCCOPY) # convert the raw data into a format opencv can read #dataBitMap.SaveBitmapFile(cDC, 'debug.bmp') signedIntsArray = dataBitMap.GetBitmapBits(True) img = np.fromstring(signedIntsArray, dtype='uint8') img.shape = (self.h, self.w, 4) # free resources dcObj.DeleteDC() cDC.DeleteDC() win32gui.ReleaseDC(self.hwnd, wDC) win32gui.DeleteObject(dataBitMap.GetHandle()) # drop the alpha channel, or cv.matchTemplate() will throw an error like: # error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() # && _img.dims() <= 2 in function 'cv::matchTemplate' img = img[...,:3] # make image C_CONTIGUOUS to avoid errors that look like: # File ... in draw_rectangles # TypeError: an integer is required (got type tuple) # see the discussion here: # https://github.com/opencv/opencv/issues/14866#issuecomment-580207109 img = np.ascontiguousarray(img) return img # find the name of the window you're interested in. # once you have it, update window_capture() # https://stackoverflow.com/questions/55547940/how-to-get-a-list-of-the-name-of-every-open-window def list_window_names(self): def winEnumHandler(hwnd, ctx): if win32gui.IsWindowVisible(hwnd): print(hex(hwnd), win32gui.GetWindowText(hwnd)) win32gui.EnumWindows(winEnumHandler, None) # translate a pixel position on a screenshot image to a pixel position on the screen. # pos = (x, y) # WARNING: if you move the window being captured after execution is started, this will # return incorrect coordinates, because the window position is only calculated in # the __init__ constructor. def get_screen_position(self, pos): return (pos[0] + self.offset_x, pos[1] + self.offset_y) This code was run on a HP Pavilion Gaming Laptop, Model: 15-dk1056wm This laptop was running a 24 bit depth display This code was run in a python virtual environment using virtualenv, this virtual environment was running Python 3.8.0 ? 32 bit Code dependencies: appdirs==1.4.4 distlib==0.3.2 filelock==3.0.12 numpy==1.20.3 opencv-python==4.5.2.52 pywin32==301 six==1.16.0 virtualenv==20.4.7 Sent from Mail for Windows 10 Sincerely, A Fellow List Member -------------- next part -------------- An HTML attachment was scrubbed... URL: From timr at probo.com Thu Jun 3 12:36:39 2021 From: timr at probo.com (Tim Roberts) Date: Thu, 3 Jun 2021 09:36:39 -0700 Subject: [python-win32] Using win32gui.FindWindow() results in black or white screen In-Reply-To: <3CC8A485-507F-41D6-8EC4-9A28C7DEA6D1@hxcore.ol> References: <3CC8A485-507F-41D6-8EC4-9A28C7DEA6D1@hxcore.ol> Message-ID: <4fafd407-236d-776a-d977-e18b9f2b7dac@probo.com> CodingMan125 wrote: > > > Dear, List Members using the FindWindow function from win32gui to find > the window handle of a certain window through window name to enable > video capture of certain window results in a black screen. Although > trying the same code without a window handle to default it to > capturing the whole screen results in a successful video capture, the > same code however results in a black or white screen when trying to > capture a specific window with window handle. How can I solve this? > In general, you can't.? From your description and from the comments in the code, I'm assuming you're trying to capture some kind of multimedia stream -- a movie playback or a camera live view.? In that case, the video stream is not actually contained in the application window.? Instead, the video is rendered in its native format (usually a YUV format) into an offscreen region. That offscreen region is then used as a texture surface which the GPU's 3D engine renders onto the visible screen.? The application window remains a solid color, which is used as a chromakey (like a "green screen") to allow menus to be easily drawn on top. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3389 bytes Desc: S/MIME Cryptographic Signature URL: From greg.ewing at canterbury.ac.nz Thu Jun 3 19:19:18 2021 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Fri, 4 Jun 2021 11:19:18 +1200 Subject: [python-win32] Using win32gui.FindWindow() results in black or white screen In-Reply-To: References: <3CC8A485-507F-41D6-8EC4-9A28C7DEA6D1@hxcore.ol> Message-ID: <4bbd9fb8-c72d-69a9-373d-853f05dc6bb3@canterbury.ac.nz> On 4/06/21 4:59 am, Dennis Lee Bieber wrote: > Many video apps don't display in "Windows". The window you grabbed is a > basically a hole through which the graphics chips are rendering and are not > available, and the render is not part of the window itself. > > When grabbing the entire screen, you are getting the screen buffer > which includes the video. Maybe you could find the size and position of the window, and then extract the relevant part from a full screen capture? -- Greg From messiaz at gmail.com Wed Jun 9 08:57:18 2021 From: messiaz at gmail.com (Messias Monteiro) Date: Wed, 9 Jun 2021 09:57:18 -0300 Subject: [python-win32] Error on to load pywin32 installing odoo with python 3.7.4 Message-ID: Hi All, I?m experiencing the following error.. can you help? Kind regards, C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\venv\Scripts\python.exe C:/Users/Messias/Desktop/Pycharm_Projects/Odoo14_exe/Odoo14/odoo-bin --conf C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14 Traceback (most recent call last): File "C:/Users/Messias/Desktop/Pycharm_Projects/Odoo14_exe/Odoo14/odoo-bin", line 5, in import odoo File "C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14\odoo\__init__.py", line 113, in from . import modules File "C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14\odoo\modules\__init__.py", line 8, in from . import db, graph, loading, migration, module, registry File "C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14\odoo\modules\graph.py", line 10, in import odoo.tools as tools File "C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14\odoo\tools\__init__.py", line 8, in from . import osutil File "C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\Odoo14\odoo\tools\osutil.py", line 73, in import win32service as ws ImportError: DLL load failed: N?o foi poss?vel encontrar o m?dulo especificado. Process finished with exit code 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fibrahim at ualberta.ca Wed Jun 9 19:41:44 2021 From: fibrahim at ualberta.ca (Fadi Ibrahim) Date: Wed, 9 Jun 2021 17:41:44 -0600 Subject: [python-win32] (no subject) Message-ID: Dear users, Hope you are well and safe and enjoying the summer wherever you are. I have 2 questions and I would highly appreciate it if someone can answer them. 1- The Pywin32 seems to indicate 2 things, a Python IDE and it is also an extension to be added to Python using pip install pywin32 for instance right? Please kindly let me know if my understanding is correct. 2- I am using OpenOPC to read values from an OPC server under the following settings: - Windows 10 - 64 - bits - Python 3.7 64 - bits - PyCharm - Graybox OPC DA Auto Wrapper x64 - Pyro 4 - Pywin32 installed via PyCharm - Matrikon OPC and I can connect to the Matrikon OPC DA server and browse the tags, but when I try to read a tag ( *opc.read(['Random.Int1']*)) the execution gets terminated with the error: *"Process finished with exit code -1073741819 (0xC0000005)*" However, running exactly the same settings under Windows 7, no issues happened and all went well. Have anyone encountered such issues? Should I install Pywin32 separately in the Windows 10 system, or install it via Pycharm or via pip install pywin32 as I did? Or how can I make it work, meaning: reading tags' values from an OPC server using Python 3.7 64-bit under Windows 10 64-bit! Kind regards, Fadi ----------------------------------------------------------------------------------- Fadi Ibrahim, Ph.D. P.Eng. Research Associate University of Alberta/Process Control Group -------------- next part -------------- An HTML attachment was scrubbed... URL: From anteqqq1996 at gmail.com Thu Jun 10 03:12:17 2021 From: anteqqq1996 at gmail.com (anteqqq1) Date: Thu, 10 Jun 2021 09:12:17 +0200 Subject: [python-win32] Issue with monitor off Message-ID: Hello there, I have a question concerning Win32 usage. The idea is that after operations in python i want to turn my monitor off but when i use Win32 command win32gui.SendMessage(win 32con.HWND_BROADCAST, win32con.WM_SYSCOMMAND, win32con.SC_MONITORPOWER , 2) the monitor not only goin off state but the machine is also going sleep mode . My question is : Is there any way to prevent machine going to sleep ? The only thing i need is to turn monitor off :) Greetings , Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From timr at probo.com Thu Jun 10 12:35:42 2021 From: timr at probo.com (Tim Roberts) Date: Thu, 10 Jun 2021 09:35:42 -0700 Subject: [python-win32] Issue with monitor off In-Reply-To: References: Message-ID: anteqqq1 wrote: > Hello there, I have a question concerning Win32 usage. The idea is > that after operations in python i want to turn my monitor off but when > i use Win32 command win32gui.SendMessage(win 32con.HWND_BROADCAST, > win32con.WM_SYSCOMMAND, win32con.SC_MONITORPOWER , 2) the monitor not > only goin off state but the machine is also going sleep mode . My > question is : Is there any way to prevent machine going to sleep ? The > only thing i need is to turn monitor off :) The operating system can do this for you automatically, in the "Power & Sleep" control panel page. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3389 bytes Desc: S/MIME Cryptographic Signature URL: From premanshu999 at yahoo.co.in Sun Jun 20 04:43:54 2021 From: premanshu999 at yahoo.co.in (Premanshu Basak) Date: Sun, 20 Jun 2021 14:13:54 +0530 Subject: [python-win32] OutlookAddin.py msoControlButton Caption not working References: <000e01d765b0$67b00f80$37102e80$.ref@yahoo.co.in> Message-ID: <000e01d765b0$67b00f80$37102e80$@yahoo.co.in> Hi team, I tried running the python demo code "OutlookAddin.py" which comes with win32com as a demo outlook com addin. I will still share the code below. My question here is when I run, it does adds a addin button on my Outlook 2016. However there is no Caption on it. I will have to figureout the button by hovering mouse over the toolbar area to check the button and click. Can anyone please explain why the caption is not appearing when the addin loads. How it looks when loaded in Outlook 2016: the button is there but have to hover mouse to see it. OutlookAddin.py: # A demo plugin for Microsoft Outlook (NOT Outlook Express) # # This addin simply adds a new button to the main Outlook toolbar, # and displays a message box when clicked. Thus, it demonstrates # how to plug in to Outlook itself, and hook outlook events. # # Additionally, each time a new message arrives in the Inbox, a message # is printed with the subject of the message. # # To register the addin, simply execute: # outlookAddin.py # This will install the COM server, and write the necessary # AddIn key to Outlook # # To unregister completely: # outlookAddin.py --unregister # # To debug, execute: # outlookAddin.py --debug # # Then open Pythonwin, and select "Tools->Trace Collector Debugging Tool" # Restart Outlook, and you should see some output generated. # # NOTE: If the AddIn fails with an error, Outlook will re-register # the addin to not automatically load next time Outlook starts. To # correct this, simply re-register the addin (see above) from win32com import universal from win32com.server.exception import COMException from win32com.client import gencache, DispatchWithEvents import winerror import pythoncom from win32com.client import constants import sys # Support for COM objects we use. gencache.EnsureModule('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 0, bForDemand=True) # Outlook 9 gencache.EnsureModule('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 1, bForDemand=True) # Office 9 # The TLB defining the interfaces we implement universal.RegisterInterfaces('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0, ["_IDTExtensibility2"]) class ButtonEvent: def OnClick(self, button, cancel): import win32ui # Possible, but not necessary, to use a Pythonwin GUI win32ui.MessageBox("Hello from Python") return cancel class FolderEvent: def OnItemAdd(self, item): try: print("An item was added to the inbox with subject:", item.Subject) except AttributeError: print("An item was added to the inbox, but it has no subject! - ", repr(item)) class OutlookAddin: _com_interfaces_ = ['_IDTExtensibility2'] _public_methods_ = [] _reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER _reg_clsid_ = "{0F47D9F3-598B-4d24-B7E3-92AC15ED27E2}" _reg_progid_ = "Python.Test.OutlookAddin" _reg_policy_spec_ = "win32com.server.policy.EventHandlerPolicy" def OnConnection(self, application, connectMode, addin, custom): print("OnConnection", application, connectMode, addin, custom) # ActiveExplorer may be none when started without a UI (eg, WinCE synchronisation) activeExplorer = application.ActiveExplorer() if activeExplorer is not None: bars = activeExplorer.CommandBars toolbar = bars.Item("Standard") item = toolbar.Controls.Add(Type=constants.msoControlButton, Temporary=True) # Hook events for the item item = self.toolbarButton = DispatchWithEvents(item, ButtonEvent) item.Caption = "Python" item.TooltipText = "Click for Python" item.Enabled = True # And now, for the sake of demonstration, setup a hook for all new messages inbox = application.Session.GetDefaultFolder(constants.olFolderInbox) self.inboxItems = DispatchWithEvents(inbox.Items, FolderEvent) def OnDisconnection(self, mode, custom): print("OnDisconnection") def OnAddInsUpdate(self, custom): print("OnAddInsUpdate", custom) def OnStartupComplete(self, custom): print("OnStartupComplete", custom) def OnBeginShutdown(self, custom): print("OnBeginShutdown", custom) def RegisterAddin(klass): import winreg key = winreg.CreateKey(winreg.HKEY_CURRENT_USER, "Software\\Microsoft\\Office\\Outlook\\Addins") subkey = winreg.CreateKey(key, klass._reg_progid_) winreg.SetValueEx(subkey, "CommandLineSafe", 0, winreg.REG_DWORD, 0) winreg.SetValueEx(subkey, "LoadBehavior", 0, winreg.REG_DWORD, 3) winreg.SetValueEx(subkey, "Description", 0, winreg.REG_SZ, klass._reg_progid_) winreg.SetValueEx(subkey, "FriendlyName", 0, winreg.REG_SZ, klass._reg_progid_) def UnregisterAddin(klass): import winreg try: winreg.DeleteKey(winreg.HKEY_CURRENT_USER, "Software\\Microsoft\\Office\\Outlook\\Addins\\" + klass._reg_progid_) except WindowsError: pass if __name__ == '__main__': import win32com.server.register win32com.server.register.UseCommandLine(OutlookAddin) if "--unregister" in sys.argv: UnregisterAddin(OutlookAddin) else: RegisterAddin(OutlookAddin) Regards, Premanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2680 bytes Desc: not available URL: From ranjithckm7 at gmail.com Thu Jun 24 03:15:12 2021 From: ranjithckm7 at gmail.com (Ranjithkumar Duraisamy) Date: Thu, 24 Jun 2021 12:45:12 +0530 Subject: [python-win32] Python Error Message-ID: Hello Everyone, I'm very new to the Python area and I'm trying to get some help on the below error. I was told to run below, if it works i'll do this in an automated way, so it'll be installed along with main package during installation. *pip install pywin32* * pywin32_postinstall.py * [image: image.png] *Regards,Ranjithkumar Duraisamy,+91 9884465537* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 189350 bytes Desc: not available URL: From graemeglass at gmail.com Thu Jun 24 04:19:43 2021 From: graemeglass at gmail.com (Graeme Glass) Date: Thu, 24 Jun 2021 10:19:43 +0200 Subject: [python-win32] Python Error In-Reply-To: References: Message-ID: This is a permission issue. The user you are installing the package as, does not have permissions to the folder it is being installed in. Kind regards, Graeme On Thu, 24 Jun 2021 at 09:24, Ranjithkumar Duraisamy wrote: > Hello Everyone, > > I'm very new to the Python area and I'm trying to get some help on the > below error. > I was told to run below, if it works i'll do this in an automated way, so > it'll be installed along with main package during installation. > > *pip install pywin32* > * pywin32_postinstall.py * > > [image: image.png] > > > > > *Regards,Ranjithkumar Duraisamy,+91 9884465537* > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 189350 bytes Desc: not available URL: From ranjithckm7 at gmail.com Thu Jun 24 04:28:11 2021 From: ranjithckm7 at gmail.com (Ranjithkumar Duraisamy) Date: Thu, 24 Jun 2021 13:58:11 +0530 Subject: [python-win32] Python Error In-Reply-To: References: Message-ID: Hi Graeme, I hold admin privilege on this pc and I'm able to install all other software relevant to this part. But this one keeps failing. :( *Regards,Ranjithkumar Duraisamy,+91 9884465537* On Thu, Jun 24, 2021 at 1:49 PM Graeme Glass wrote: > This is a permission issue. The user you are installing the package as, > does not have permissions to the folder it is being installed in. > > Kind regards, > Graeme > > On Thu, 24 Jun 2021 at 09:24, Ranjithkumar Duraisamy < > ranjithckm7 at gmail.com> wrote: > >> Hello Everyone, >> >> I'm very new to the Python area and I'm trying to get some help on the >> below error. >> I was told to run below, if it works i'll do this in an automated way, so >> it'll be installed along with main package during installation. >> >> *pip install pywin32* >> * pywin32_postinstall.py * >> >> [image: image.png] >> >> >> >> >> *Regards,Ranjithkumar Duraisamy,+91 9884465537* >> _______________________________________________ >> python-win32 mailing list >> python-win32 at python.org >> https://mail.python.org/mailman/listinfo/python-win32 >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 189350 bytes Desc: not available URL: From stimpy4516 at hotmail.com Thu Jun 24 20:49:31 2021 From: stimpy4516 at hotmail.com (Stimpy ******) Date: Fri, 25 Jun 2021 00:49:31 +0000 Subject: [python-win32] Python Error In-Reply-To: References: , Message-ID: Hi Rranjithkumar, Have you tried to launch the application (the IDLE IDE, I suppos) which is in turn spawning that terminal with elevated privileges (run as admin)? (ie are you getting an UAC prompt for elevation) Regards, Adam ________________________________ From: python-win32 on behalf of Ranjithkumar Duraisamy Sent: Thursday, June 24, 2021 4:28 AM To: Graeme Glass Cc: python-win32 at python.org Subject: Re: [python-win32] Python Error Hi Graeme, I hold admin privilege on this pc and I'm able to install all other software relevant to this part. But this one keeps failing. :( Regards, Ranjithkumar Duraisamy, +91 9884465537 On Thu, Jun 24, 2021 at 1:49 PM Graeme Glass > wrote: This is a permission issue. The user you are installing the package as, does not have permissions to the folder it is being installed in. Kind regards, Graeme On Thu, 24 Jun 2021 at 09:24, Ranjithkumar Duraisamy > wrote: Hello Everyone, I'm very new to the Python area and I'm trying to get some help on the below error. I was told to run below, if it works i'll do this in an automated way, so it'll be installed along with main package during installation. pip install pywin32 pywin32_postinstall.py [image.png] Regards, Ranjithkumar Duraisamy, +91 9884465537 _______________________________________________ python-win32 mailing list python-win32 at python.org https://mail.python.org/mailman/listinfo/python-win32 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 189350 bytes Desc: image.png URL: From ranjithckm7 at gmail.com Thu Jun 24 23:23:25 2021 From: ranjithckm7 at gmail.com (Ranjithkumar Duraisamy) Date: Fri, 25 Jun 2021 08:53:25 +0530 Subject: [python-win32] Python Error In-Reply-To: References: Message-ID: Hi, Sorry I don't know what it is. But I run a python installer which was packaged by PTV VIsum. As they're claiming it's the one which supports their product(PTV Visum 2021). But their support is terrible :( I couldn't get enough support from them as they're also simply saying run it through an elevated window. Since the program setup is elevated, Installation was started and still completes fine. But the error part I reported was pain. I have no idea how this part of execution alone misses elevation. Sorry for the long explanation. and Thanks for your help in advance. i.e downloaded from below link. https://cgi.ptvgroup.com/visionSetups/Setups/PYTHON/Setup_Vision-Python_3.7.4_x64.exe *Regards,Ranjithkumar Duraisamy,+91 9884465537* On Fri, Jun 25, 2021 at 6:19 AM Stimpy ****** wrote: > Hi Rranjithkumar, > > Have you tried to launch the application (the IDLE IDE, I suppos) which > is in turn spawning that terminal with elevated privileges (run as admin)? > (ie are you getting an UAC prompt for elevation) > > Regards, > Adam > > ------------------------------ > *From:* python-win32 hotmail.com at python.org> on behalf of Ranjithkumar Duraisamy < > ranjithckm7 at gmail.com> > *Sent:* Thursday, June 24, 2021 4:28 AM > *To:* Graeme Glass > *Cc:* python-win32 at python.org > *Subject:* Re: [python-win32] Python Error > > Hi Graeme, > > I hold admin privilege on this pc and I'm able to install all other > software relevant to this part. But this one keeps failing. :( > > > > > *Regards, Ranjithkumar Duraisamy, +91 9884465537* > > > On Thu, Jun 24, 2021 at 1:49 PM Graeme Glass > wrote: > > This is a permission issue. The user you are installing the package as, > does not have permissions to the folder it is being installed in. > > Kind regards, > Graeme > > On Thu, 24 Jun 2021 at 09:24, Ranjithkumar Duraisamy < > ranjithckm7 at gmail.com> wrote: > > Hello Everyone, > > I'm very new to the Python area and I'm trying to get some help on the > below error. > I was told to run below, if it works i'll do this in an automated way, so > it'll be installed along with main package during installation. > > *pip install pywin32* > * pywin32_postinstall.py * > > [image: image.png] > > > > > *Regards, Ranjithkumar Duraisamy, +91 9884465537* > _______________________________________________ > python-win32 mailing list > python-win32 at python.org > https://mail.python.org/mailman/listinfo/python-win32 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 189350 bytes Desc: not available URL: