The spawn ETXTBSY error occurs when you have multiple copies of the local binary at the same location.
Download the local binary manually and specify the path to it in the ‘bsLocalArgs’ via the ‘binarypath’ parameter as shown below:
bs_local_args = { ‘key’: ‘<browserstack-accesskey>’, ‘binarypath’: ‘<path to BrowserStackLocal>’ }
Refer to these links to download the correct local binary: