# Pastebin IJJDdCb5 Traceback (most recent call last): File "xx.py", line 15, in foo_ffi.compile() File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/recompiler.py", line 1555, in recompile compiler_verbose, debug) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/command/build_ext.py", line 313, in run customize_compiler(self.compiler) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/sysconfig_pypy.py", line 145, in customize_compiler _osx_support.customize_compiler(_config_vars) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 431, in customize_compiler _find_appropriate_compiler(_config_vars) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 186, in _find_appropriate_compiler % (cc.replace("'", "'\"'\"'"),)) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 63, in _read_output import tempfile File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/tempfile.py", line 45, in from random import Random as _Random File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/random.py", line 46, in from hashlib import sha512 as _sha512 File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/hashlib.py", line 161, in import _hashlib File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/_hashlib/__init__.py", line 4, in from _cffi_ssl._stdssl.utility import (_str_to_ffi_buffer, _bytes_with_len, File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 182, in foo_ffi.compile() File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/api.py", line 727, in compile compiler_verbose=verbose, debug=debug, **kwds) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/recompiler.py", line 1555, in recompile compiler_verbose, debug) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/ffiplatform.py", line 22, in compile outputfilename = _build(tmpdir, ext, compiler_verbose, debug) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib_pypy/cffi/ffiplatform.py", line 51, in _build dist.run_command('build_ext') File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/command/build_ext.py", line 313, in run customize_compiler(self.compiler) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/distutils/sysconfig_pypy.py", line 145, in customize_compiler _osx_support.customize_compiler(_config_vars) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 431, in customize_compiler _find_appropriate_compiler(_config_vars) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 186, in _find_appropriate_compiler % (cc.replace("'", "'\"'\"'"),)) File "/Users/dev/Downloads/pypy3.7-v7.3.3-osx64/lib-python/3/_osx_support.py", line 64, in _read_output fp = tempfile.NamedTemporaryFile() AttributeError: module 'tempfile' has no attribute 'NamedTemporaryFile'