4015: rbt hangs using git-bash

rhabarbersaft

What version are you running?

RBTools 0.7.5

What steps will reproduce the problem?

  1. rbt status -d

What is the expected output? What do you see instead?

Expected to ask for username & password

Instead I see:

RBTools 0.7.5
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
Running on Windows-8-6.2.9200
...
Making HTTP GET request to http://<correct URL>/api/
After that it hangs forever.

What operating system are you using?

Windows 10 with GIT for Windows 2.6.1
Using MINGW64 GIT bash

Attach the debug out from the command.

see above

Please provide any additional information below.

Also mentioned in https://groups.google.com/forum/#!searchin/reviewboard/rbt$20hangs/reviewboard/NadKDh5R9qM/t5ngBw2OAAAJ

chipx86
#1 chipx86
  • -New
    +Confirmed
  • +Release-0.7.x
  • +OpSys:Windows
#2 skeeping

I looked into this and the problem actually lies with the git install. If you setup the newer git versions (probably 2 and later) you have the option of using a terminal emulator or the windows default console window backend. The terminal emulator is the default option and it has issues with Python (amongst other things) which rbtools depends on. If you switch to the windows default console window on a reinstall the issue will be gone.

Unfortunatly i dont see how the RB team can fix this other then updating to python 3.4.3 which seems to work on git bash.

#3 hr3pswtk

it can be used in MINGW (and probably msys2) with winpty, like so

game@r3d4 MINGW64 ~
$ winpty /c/Program\ Files\ \(x86\)/RBTools/Python27/python.exe /c/Program\ Files\ \(x86\)/RBTools/Python27/Scripts/rbt-script.py login --server https://projects:8081/ --username myuser

Please log in to the Review Board server at projects:8081.
Password: *******
You are already logged in to Review Board at projects:8081

very ugly, I know ...