When installing perl with Python 3.6, Spack gets a UnicodeDecodeError:
==> Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 3792: ordinal not in range(128)
/usr/WS2/gyllen/lee218/thisisaverylongdirectorynametotryandbreaksbanglimitinspack/spack/lib/spack/spack/package.py:1718, in build_process:
1715 echo = logger.echo
1716 self.log()
1717
1718 # Run post install hooks before build stage is removed.
1719 spack.hooks.post_install(self.spec)
1720
1721 # Stop timer.
This happens in filter_shebang in lib/spack/spack/hooks/sbang.py on the original_file.read(). This only happens when the path is long enough to trigger this post_install step. It also only fails with Python <=3.6. It does not fail with Python 2.X or Python >= 3.7.
When installing perl with Python 3.6, Spack gets a UnicodeDecodeError:
==> Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 3792: ordinal not in range(128)
/usr/WS2/gyllen/lee218/thisisaverylongdirectorynametotryandbreaksbanglimitinspack/spack/lib/spack/spack/package.py:1718, in build_process:
1715 echo = logger.echo
1716 self.log()
1717
This happens in filter_shebang in lib/spack/spack/hooks/sbang.py on the original_file.read(). This only happens when the path is long enough to trigger this post_install step. It also only fails with Python <=3.6. It does not fail with Python 2.X or Python >= 3.7.