Symptoms

readCSPAccounts.py script of Office 365 APS package returns the following error:

#python ./readCSPAccounts.py --o365APS2-app-instance-id=7 --vendor-id=12

Error: argument 6 must be string, not None

Cause

Incorrect parameter specified in the Utils.py module.

Resolution

Check the following section in the Utils.py:

__dbhost = "172.16.1.2"
__dbname = "plesk"
__dbuser = "plesk"
__dbpass = None
__apihost = "172.16.1.3"

Change the __dbpass = None to __dbpass = "" and run the script.

Internal content