DatastreamDSWS cannot retrieve token on Windows server 2016
I am running a Python application from a batch file on a Windows Server 2016 machine.
The Python application connects with the correct username and password in this format:
ds = dsws.Datastream(username, password)
However the applciation persistently fails to connect, showing this error:
_get_token : Exception Occured
(<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named 'wincertstore'"), <traceback object at 0x0000020C14A1DE00>)
Can you assist?
Find more posts tagged with
Sort by:
1 - 1 of
11
Sort by:
1 - 1 of
11
On Windows, the DatastreamDSWS library depends on the wincertstore package. You can verify the source code here.
def _loadWinCerts(self):
import wincertstore
cfile = wincertstore.CertFile()
cfile.addstore('CA')
cfile.addstore('ROOT')
cfile.addstore('MY')
self.certfile = cfile.name
atexit.register(cfile.close)
#print(self.certfile.name)
Please install the wincertstore package by using the following command.
pip install wincertstore
@richard.ali
On Windows, the DatastreamDSWS library depends on the wincertstore package. You can verify the source code here.
Please install the wincertstore package by using the following command.