browserstack/browserstack-local-python

bs_local.stop() hangs python

Opened this issue · 0 comments

I have a program in python which has been running well till now.
Starting today, I am facing a strange issue. I have local testing enabled as described here https://github.com/browserstack/browserstack-local-python

However, the program hangs at this point : bs_local.stop().
Then I have to stop the kernel and get the below trace back:

Traceback (most recent call last):

File "", line 1, in
bs_local.stop()

File "/anaconda3/lib/python3.6/site-packages/browserstack/local.py", line 74, in stop
(out, err) = proc.communicate()

File "/anaconda3/lib/python3.6/subprocess.py", line 843, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)

File "/anaconda3/lib/python3.6/subprocess.py", line 1514, in _communicate
ready = selector.select(timeout)

File "/anaconda3/lib/python3.6/selectors.py", line 376, in select
fd_event_list = self._poll.poll(timeout)

KeyboardInterrupt

Please help.