Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


robf
  •  robf
  • No customer Topic Starter
2015-12-17T22:20:51Z
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!
Sponsor
Forum information
Support
2015-12-18T18:10:26Z
Hi Robf,

It seems like an issue because of the difference in running environment, please make sure you have created and selected a Credential that simulates the logged in user's profile, not just his access rights. In order to do this, you need to select local login and load profile in the Credential which you use for running this Job. Please let me know if this resolves your problem. Additionally, please share a screenshot of your foreground settings.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top