There's a little "." before "venv/bin/activate" that's easy to miss. I'll update it to "source" to make it more obvious.
I haven't been able to make sense of n-samples and n-iters. Changing the former caused generation to freeze at 0%. Changing the latter seems to generate multiple images, even though the SD docs for n-iters are "sample this often".