Closed rcorces closed 3 years ago
yes you're right. did you fix it in bulker? can you submit it as a PR?
Actually I think this may be solved here on dev:
https://github.com/databio/bulker/commit/47358a79f5d3a2ddcc07f5d96fa7a33a4dcd19cd
Yes - that does look like it is fixed on dev. I didnt fix it in the source of bulker, just forced $SHELL
to be /bin/bash
on the compute node.
I'm not sure if I've properly diagnosed this. I've already fixed the problem but figured I would post in case it helped. I was running on a cluster environment where the compute node default value for
$SHELL
was/bin/sh
. This was (I think) resulting in the following error:I think this is caused by the following
if
statement: https://github.com/databio/bulker/blob/0ded559711164098904eb3d582d2ca4ff6849e46/bulker/bulker.py#L567If your shell is not
bash
orzsh
, you get a warning but you dont end up settingps1
prior to callingps1 = ps1.replace("\\b", name)
. This (i think) causes theUnboundLocalError
shown above.