On Windows, command line client login credential prompt fails (python 2.7)
This occurs right after I enter my username:
OS: Windows 10 (64-bit)
Verified fixed py-1.7 vs 184.0-x
Per discussion with Larsson/Ziming, reopening.
I can repro the problem on OSX (no .synapseConfig and no .synapseCache/.session).
On fresh installation on Windows, I;m getting:
If the file is there then I'm not prompted as expected (but can't validate this).
The problem is that the getpass library has OS dependent implementations of getpass.getpass(). Specifically, for windows, it uses getpass.win_getpass(). This function then uses msvcrt.putch() (Windows only library) to display the password prompt. However, putch() does not accept unicode characters (msvcrt.putwch() does but we can't exactly modify the library), and we use "from _future_ import unicode_literals" to make all string literals unicode. So the solution would be to detect if the OS is Windows and convert the password prompt from unicode type to str