运行带有anaconda的macOS 10.12上的Galsim安装的scons测试时的TypeError

时间:2018-01-13 20:33:52

标签: scons galsim

我正在尝试按照https://github.com/GalSim-developers/GalSim/blob/master/INSTALL.md#0-overall-summary上的说明安装Galsim,但是当我到达scons tests部分时,仍然会收到以下类型错误。

    Starting python tests...
    scons: *** [tests/tests.log] TypeError : write() argument must be str, not bytes
    Traceback (most recent call last):
    File "/Users/lorena/anaconda3/lib/scons-3.0.0/SCons/Action.py", line 1197, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
    File "/Users/lorena/git/GalSim/tests/SConscript", line 81, in run_tests
    sys.stdout.write(buf)
    TypeError: write() argument must be str, not bytes
    scons: building terminated because of errors.

我正在使用python 3.6。

0 个答案:

没有答案