Still getting the same error and tested 5 versions of samtools. Samtools is installed and set in PATH because I use it regularly. "ValueError: invalid literal for int() with base 10: 'samtools: writing to standard output failed: Broken pipe\nsamtools: error closing standard output: -150\n'"