[python-win32] Obsolete code paths and version-specific checks

2022-12-02 Thread Samuel Therrien
Hi! While working on adding annotations for typing support in pure python modules, I noticed a lot​ of conditions and code made to run on older versions of Python. Which are both EOL and no longer supported in pywin32. Removing those would alleviate a lot of code and help smooth out the addition

Re: [python-win32] Pywin32 without the interface

2022-12-02 Thread Tim Roberts
On 12/2/22 12:10 PM, Tim Roberts wrote: On 12/2/22 4:25 AM, QMUL_EECS DVS wrote: Is it related to the fact that I can’t open Visio/ Word windows? If so, is there a way for me to avoid this error? The first and most obvious question is, do you actually have Office and Visio installed on your

Re: [python-win32] Pywin32 without the interface

2022-12-02 Thread Tim Roberts
On 12/2/22 4:25 AM, QMUL_EECS DVS wrote: Thanks for replying. Apologies for my vague question, let me see if I can rephrase: I want to run pywin inside an aws instance, which only allows for command line interface. Currently I can use pywin in my local machine, but it needs to open Visio a

Re: [python-win32] Pywin32 without the interface

2022-12-02 Thread Tim Roberts
On 12/2/22 4:25 AM, QMUL_EECS DVS wrote: Thanks for replying. Apologies for my vague question, let me see if I can rephrase: I want to run pywin inside an aws instance, which only allows for command line interface. Currently I can use pywin in my local machine, but it needs to open Visio a

Re: [python-win32] Pywin32 without the interface

2022-12-02 Thread Tim Roberts
On 12/2/22 4:25 AM, QMUL_EECS DVS wrote: Thanks for replying. Apologies for my vague question, let me see if I can rephrase: I want to run pywin inside an aws instance, which only allows for command line interface. Currently I can use pywin in my local machine, but it needs to open Visio a

Re: [python-win32] Pywin32 without the interface

2022-12-02 Thread QMUL_EECS DVS
Hi Tim, Thanks for replying. Apologies for my vague question, let me see if I can rephrase: I want to run pywin inside an aws instance, which only allows for command line interface. Currently I can use pywin in my local machine, but it needs to open Visio and Word windows. However, in the aws ins