I have been using VisualCron for about a year and 90% of my scripts are written in Python. To this point it has been a breeze. I recently implemented a new library to handle passwords in scripts. I am using Keyring which will make a call to the Windows Credential Vault to obtain the password for an account. The script works when running it from a command line. When I run it through VisualCron I get the following error:
TypeError: Can't convert 'NoneType' object to str implicitly
In investigating the problem I found that it will work properly if I select "foreground execution". All of my scripts are set for "background execution". The machine I have VisualCron installed on is a virtual machine running Windows Server 2008 R2. Unless I am mistaken, in order to run in the foreground there needs to be an active user session open for the job to run in. Typically there would not be a user session running on the server.
Am I correct in that assumption regarding running in the foreground and, if so, are there any other options to running the script that I could use? Any help would be most appreciated. Thanks!