XanaDublaKublaConch/pysdtoken

ERROR:pysdtoken.pysdtoken:Error finding Soft Token service.

Opened this issue · 1 comments

Hi, my Operating System is 64bits but my soft token is 32bits. I don´t know why but it is the homologated version by the company so I can't change it.

So I changed the "C:/Program) Files\RSA SecurID Token Common\stauto32.dll" to "C:/Program) Files (x86)\RSA SecurID Token Common\stauto32.dll"
I know it is not the best way to solve it but I thought it might work.

here is the error I'm facing after that:

from pysdtoken import SDProcess
sd = SDProcess(log_level='DEBUG')

(output)
DEBUG:pysdtoken.pysdtoken:Pin style set to PINless
DEBUG:pysdtoken.pysdtoken:No dll name passed in during initialization. Determining correct default from platform/arch
DEBUG:pysdtoken.pysdtoken:This is a windows platform.
DEBUG:pysdtoken.pysdtoken:This is a 64-bit platform.
INFO:pysdtoken.pysdtoken:Using path C:\Program Files (x86)\RSA SecurID Token Common\stauto32.dll
DEBUG:pysdtoken.pysdtoken:dll path C:\Program Files (x86)\RSA SecurID Token Common\stauto32.dll exists.
DEBUG:pysdtoken.pysdtoken:Loading C:\Program Files (x86)\RSA SecurID Token Common\stauto32.dll using ctypes windll method
DEBUG:pysdtoken.pysdtoken:[WinError 193] %1 is not a valid Win32 application
ERROR:pysdtoken.pysdtoken:Error finding Soft Token service.
DEBUG:pysdtoken.pysdtoken:Destructor called. Attempting graceful close of SDProcess

Any suggestion?

It's been a while, but I think you have to load 32-bit dlls with 32-bit python. Can you install python 32-bit? From what I understand, it's impossible for 64-bit python to load a 32-bit dll.