indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.49k stars 239 forks source link

Syntax error: EOF in backquote substitution #325

Open pouyamiralayi opened 3 years ago

pouyamiralayi commented 3 years ago

description: trying to build an executable targetting mac os.

command:

RUST_BACKTRACE=full MACOSX_DEPLOYMENT_TARGET=10.9 pyoxidizer build

config file:

def make_dist():
    return PythonDistribution(local_path="/home/sarpedon/pyoxidizer/starter-zero/cpython-3.8.6-x86_64-apple-darwin-pgo-20201020T0626.tar.zst",sha256="e06807ed4d68928634b2690a86ea7a13d339c0fff3808816e98c646bbdc1f79a")
def make_exe(dist):
    policy = dist.make_python_packaging_policy()
    python_config = dist.make_python_interpreter_config()
    python_config.run_module = "payload3"
    exe = dist.to_python_executable(
        name="starter-zero",
        packaging_policy=policy,
        config=python_config,
    )
    exe.add_python_resources(exe.read_package_root(
        path=CWD,
        packages=["payload3"],
    ))
    return exe

def make_embedded_resources(exe):
    return exe.to_embedded_resources()

def make_install(exe):
    files = FileManifest()
    files.add_python_resource(".", exe)
    return files
register_target("dist", make_dist)
register_target("exe", make_exe, depends=["dist"])
register_target("resources", make_embedded_resources, depends=["exe"], default_build_script=True)
register_target("install", make_install, depends=["exe"], default=True)
resolve_targets()

PYOXIDIZER_VERSION = "0.10.1"
PYOXIDIZER_COMMIT = "cbab9171248d12a9668331fbdc52465e66bc6aee"

full backtrace output:

resolving 1 targets
resolving target install
resolving target exe
resolving target dist
resolving Python distribution Local { local_path: "/home/sarpedon/pyoxidizer/starter-zero/cpython-3.8.6-x86_64-apple-darwin-pgo-20201020T0626.tar.zst", sha256: "e06807ed4d68928634b2690a86ea7a13d339c0fff3808816e98c646bbdc1f79a" }
copying /home/sarpedon/pyoxidizer/starter-zero/cpython-3.8.6-x86_64-apple-darwin-pgo-20201020T0626.tar.zst
Python distribution available at /home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/cpython-3.8.6-x86_64-apple-darwin-pgo-20201020T0626.tar.zst
reading data from Python distribution...
resolving Python distribution Url { url: "https://github.com/indygreg/python-build-standalone/releases/download/20201020/cpython-3.8.6-x86_64-unknown-linux-gnu-pgo-20201020T0627.tar.zst", sha256: "789f58ece3ab4ee599e9fd7f6bd9665157ba1a57dca210739df0687ce3757b55" }
downloading https://github.com/indygreg/python-build-standalone/releases/download/20201020/cpython-3.8.6-x86_64-unknown-linux-gnu-pgo-20201020T0627.tar.zst
Python distribution available at /home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/cpython-3.8.6-x86_64-unknown-linux-gnu-pgo-20201020T0627.tar.zst
reading data from Python distribution...
adding Python executable starter-zero to .
     Created binary (application) package
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/.cargo/config
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/build.rs
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/src/main.rs
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/pyoxidizer.bzl
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/starter-zero.exe.manifest
writing /tmp/pyoxidizer.bLb59GulOc4n/starter-zero/starter-zero-manifest.rc
warning: asyncio.__main__ contains __file__
warning: cProfile contains __file__
warning: distutils.command.bdist_wininst contains __file__
warning: distutils.command.sdist contains __file__
warning: distutils.core contains __file__
warning: distutils.dist contains __file__
warning: doctest contains __file__
warning: encodings contains __file__
warning: idlelib.browser contains __file__
warning: idlelib.config contains __file__
warning: idlelib.help contains __file__
warning: idlelib.help_about contains __file__
warning: idlelib.idle contains __file__
warning: idlelib.pyshell contains __file__
warning: idlelib.runscript contains __file__
warning: idlelib.tree contains __file__
warning: importlib contains __file__
warning: importlib._bootstrap contains __file__
warning: importlib._bootstrap_external contains __file__
warning: importlib.abc contains __file__
warning: inspect contains __file__
warning: lib2to3.pygram contains __file__
warning: logging contains __file__
warning: logging.handlers contains __file__
warning: modulefinder contains __file__
warning: multiprocessing.spawn contains __file__
warning: pdb contains __file__
warning: pip.__main__ contains __file__
warning: pip._internal.build_env contains __file__
warning: pip._internal.commands.debug contains __file__
warning: pip._internal.pyproject contains __file__
warning: pip._internal.req.req_install contains __file__
warning: pip._internal.utils.misc contains __file__
warning: pip._internal.utils.setuptools_build contains __file__
warning: pip._internal.utils.virtualenv contains __file__
warning: pip._vendor contains __file__
warning: pip._vendor.certifi.core contains __file__
warning: pip._vendor.distlib.resources contains __file__
warning: pip._vendor.pep517._in_process contains __file__
warning: pip._vendor.pep517.wrappers contains __file__
warning: pip._vendor.pkg_resources contains __file__
warning: pkgutil contains __file__
warning: profile contains __file__
warning: pyclbr contains __file__
warning: pydoc contains __file__
warning: pydoc_data.topics contains __file__
warning: runpy contains __file__
warning: site contains __file__
warning: trace contains __file__
warning: turtle contains __file__
warning: turtledemo.__main__ contains __file__
warning: unittest contains __file__
warning: unittest.loader contains __file__
warning: venv contains __file__
warning: zipimport contains __file__
__file__ was encountered in some embedded modules
PyOxidizer does not set __file__ and this may create problems at run-time
See https://github.com/indygreg/PyOxidizer/issues/69 for more
generating custom link library containing Python...
deriving custom config.c from 93 extension modules
compiling custom config.c to object file
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/libpython.ss5sSW5QDjA8" "-Wall" "-Wextra" "-std=c99" "-DNDEBUG" "-DPy_BUILD_CORE" "-o" "/tmp/pyoxidizer-build-exe.uyJ5A0zyVWJv/config.o" "-c" "/tmp/libpython.ss5sSW5QDjA8/config.c"
exit code: 0
running: "ar" "crs" "/tmp/pyoxidizer-build-exe.uyJ5A0zyVWJv/libpyembeddedconfig.a" "/tmp/pyoxidizer-build-exe.uyJ5A0zyVWJv/config.o"
exit code: 0
resolving inputs for custom Python library...
compiling libpythonXY...
running: "ar" "crs" "/tmp/pyoxidizer-build-exe.uyJ5A0zyVWJv/libpythonXY.a" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/gcmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/getbuildinfo.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/getpath.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/main.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/abstract.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/accu.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/boolobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/bytearrayobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/bytes_methods.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/bytesobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/call.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/capsule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/cellobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/classobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/codeobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/complexobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/descrobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/dictobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/enumobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/exceptions.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/fileobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/floatobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/frameobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/funcobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/genobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/interpreteridobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/iterobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/listobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/longobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/memoryobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/methodobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/moduleobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/namespaceobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/object.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/obmalloc.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/odictobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/picklebufobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/rangeobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/setobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/sliceobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/structseq.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/tupleobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/typeobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/unicodectype.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/unicodeobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Objects/weakrefobject.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/acceler.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/grammar1.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/listnode.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/myreadline.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/node.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/parser.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/parsetok.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/token.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Parser/tokenizer.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/Python-ast.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/_warnings.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/asdl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/ast.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/ast_opt.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/ast_unparse.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/bltinmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/bootstrap_hash.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/ceval.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/codecs.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/compile.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/context.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/dtoa.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/dynamic_annotations.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/dynload_shlib.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/errors.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/fileutils.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/formatter_unicode.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/frozen.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/frozenmain.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/future.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getargs.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getcompiler.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getcopyright.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getopt.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getplatform.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/getversion.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/graminit.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/hamt.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/import.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/importdl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/initconfig.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/marshal.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/modsupport.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/mysnprintf.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/mystrtoul.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pathconfig.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/peephole.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/preconfig.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pyarena.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pyctype.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pyfpe.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pyhash.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pylifecycle.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pymath.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pystate.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pystrcmp.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pystrhex.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pystrtod.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pythonrun.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/pytime.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/structmember.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/symtable.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/sysmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/thread.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Python/traceback.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_abc.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_asynciomodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_bisectmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/blake2b_impl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/blake2module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/blake2s_impl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_bz2module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_cn.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_hk.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_iso2022.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_jp.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_kr.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_codecs_tw.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_collectionsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_contextvarsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_csv.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_ctypes.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/callbacks.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/callproc.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/cfield.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/dlfcn_simple.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/malloc_closure.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/stgdict.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_cursesmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_curses_panel.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_datetimemodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_dbmmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_decimal.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/basearith.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/constants.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/context.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/convolute.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/crt.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/difradix2.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/fnt.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/fourstep.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/io.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/memory.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/mpdecimal.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/numbertheory.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/sixstep.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/transpose.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_elementtree.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_functoolsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_hashopenssl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_heapqmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_iomodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/bufferedio.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/bytesio.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/fileio.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/iobase.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/stringio.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/textio.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_json.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_localemodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_lsprof.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/rotatingtree.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_lzmamodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/md5module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/multibytecodec.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/multiprocessing.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/semaphore.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_opcode.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_operator.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_pickle.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/posixshmem.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_posixsubprocess.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_queuemodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_randommodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_scproxy.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/sha1module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/sha256module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/sha3module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/sha512module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/signalmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/socketmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/cache.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/connection.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/cursor.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/microprotocols.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/module.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/prepare_protocol.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/row.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/statement.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/util.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_sre.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_ssl.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_stat.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_statisticsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_struct.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/symtablemodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_testinternalcapi.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_threadmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_tkinter.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/tkappinit.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_tracemalloc.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/hashtable.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_uuidmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_weakref.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/arraymodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/atexitmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/audioop.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/binascii.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_math.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/cmathmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/errnomodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/faulthandler.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/fcntlmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/grpmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/itertoolsmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/_math.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/mathmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/mmapmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/parsermodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/posixmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/pwdmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/pyexpat.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/xmlparse.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/xmlrole.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/xmltok.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/readline.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/resource.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/selectmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/syslogmodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/termios.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/timemodule.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/unicodedata.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/xxsubtype.o" "/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/build/Modules/zlibmodule.o"
exit code: 0
libpythonXY created
building with Rust 1.47.0
    Updating crates.io index
   Compiling libc v0.2.80
   Compiling memchr v2.3.4
   Compiling lazy_static v1.4.0
   Compiling regex-syntax v0.6.21
   Compiling fs_extra v1.2.0
   Compiling byteorder v1.3.4
   Compiling cc v1.0.62
   Compiling getrandom v0.1.15
   Compiling cfg-if v0.1.10
   Compiling proc-macro-hack v0.5.19
   Compiling encoding_rs v0.8.26
   Compiling anyhow v1.0.34
   Compiling autocfg v1.0.1
   Compiling cfg-if v1.0.0
   Compiling ppv-lite86 v0.2.10
   Compiling pyembed v0.10.0 (/home/sarpedon/.cargo/git/checkouts/pyoxidizer-04b02466db45c615/cbab917/pyembed)
   Compiling base64 v0.12.3
   Compiling same-file v1.0.6
   Compiling either v1.6.1
   Compiling remove_dir_all v0.5.3
   Compiling cpython v0.5.1
   Compiling quoted_printable v0.4.2
   Compiling embed-resource v1.3.4
   Compiling thread_local v1.0.1
   Compiling num-traits v0.2.14
   Compiling jemalloc-sys v0.3.2
   Compiling walkdir v2.3.1
   Compiling itertools v0.9.0
   Compiling starter-zero v0.1.0 (/tmp/pyoxidizer.bLb59GulOc4n/starter-zero)
   Compiling aho-corasick v0.7.15
   Compiling rand v0.4.6
   Compiling memmap v0.7.0
   Compiling base64 v0.10.1
   Compiling python-packed-resources v0.4.0
   Compiling paste-impl v0.1.18
   Compiling rand_core v0.5.1
   Compiling regex v1.4.2
   Compiling tempdir v0.3.7
   Compiling charset v0.1.2
   Compiling paste v0.1.18
   Compiling rand_chacha v0.2.2
   Compiling mailparse v0.13.0
   Compiling rand v0.7.3
   Compiling python-packaging v0.3.0
   Compiling uuid v0.8.1
   Compiling python3-sys v0.5.1
error: failed to run custom build command for `python3-sys v0.5.1`

Caused by:
  process didn't exit successfully: `/tmp/pyoxidizer.bLb59GulOc4n/build/target/debug/build/python3-sys-effc08422445f104/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "python script failed with stderr:\n\n/home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/install/bin/python3.8: 6: /home/sarpedon/pyoxidizer/starter-zero/./build/python_distributions/python.e06807ed4d68/python/install/bin/python3.8: Syntax error: EOF in backquote substitution\n"', /home/sarpedon/.cargo/registry/src/github.com-1ecc6299db9ec823/python3-sys-0.5.1/build.rs:450:65
  stack backtrace:
     0:     0x55f363b269e0 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
     1:     0x55f363b269e0 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
     2:     0x55f363b269e0 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
     3:     0x55f363b269e0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
     4:     0x55f363b44a2c - core::fmt::write::h9ddafa4860d8adff
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
     5:     0x55f363b243b7 - std::io::Write::write_fmt::h1d2ee292d2b65481
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
     6:     0x55f363b28ae0 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
     7:     0x55f363b28ae0 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
     8:     0x55f363b28ae0 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
     9:     0x55f363b2882c - std::panicking::default_hook::he30ad7589e0970f9
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
    10:     0x55f363b29143 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
    11:     0x55f363b28d19 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
    12:     0x55f363b26e6c - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
    13:     0x55f363b28cd9 - rust_begin_unwind
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
    14:     0x55f363b43d51 - core::panicking::panic_fmt::h4e2659771ebc78eb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
    15:     0x55f363b43b73 - core::option::expect_none_failed::h448b58a024c2c33a
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1221
    16:     0x55f363935310 - core::result::Result<T,E>::unwrap::h8c219f3007b424f0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/result.rs:973
    17:     0x55f36391f860 - build_script_build::main::hb480baf1686495e1
                                 at /home/sarpedon/.cargo/registry/src/github.com-1ecc6299db9ec823/python3-sys-0.5.1/build.rs:450
    18:     0x55f36393320b - core::ops::function::FnOnce::call_once::h8bf4f23188e2e9b6
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:227
    19:     0x55f36392449e - std::sys_common::backtrace::__rust_begin_short_backtrace::h83c8083dfe102fd8
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:137
    20:     0x55f3639365e1 - std::rt::lang_start::{{closure}}::h56c2ee4de6bc3b6e
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:66
    21:     0x55f363b29541 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6a3209f124be2235
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
    22:     0x55f363b29541 - std::panicking::try::do_call::h88ce358792b64df0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
    23:     0x55f363b29541 - std::panicking::try::h6311c259678e50fc
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
    24:     0x55f363b29541 - std::panic::catch_unwind::h56c5716807d659a1
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
    25:     0x55f363b29541 - std::rt::lang_start_internal::h73711f37ecfcb277
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
    26:     0x55f3639365b7 - std::rt::lang_start::h70e31a5ae312b2dc
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:65
    27:     0x55f3639206da - main
    28:     0x7fc8776e9b97 - __libc_start_main
    29:     0x55f36391a48a - _start
    30:                0x0 - <unknown>
warning: build failed, waiting for other jobs to finish...
error: build failed
error[PYOXIDIZER_BUILD]: command ["cargo", "build", "--target", "x86_64-unknown-linux-gnu", "--target-dir", "/tmp/pyoxidizer.bLb59GulOc4n/build/target", "--bin", "starter-zero", "--no-default-features", "--features", "build-mode-prebuilt-artifacts cpython-link-unresolved-static jemalloc"] exited with code 101
  --> ./pyoxidizer.bzl:23:5
   |
23 |     files.add_python_resource(".", exe)
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ add_python_resource

error: command ["cargo", "build", "--target", "x86_64-unknown-linux-gnu", "--target-dir", "/tmp/pyoxidizer.bLb59GulOc4n/build/target", "--bin", "starter-zero", "--no-default-features", "--features", "build-mode-prebuilt-artifacts cpython-link-unresolved-static jemalloc"] exited with code 101

additional notes: i have noticed that even when i specify the exact python distribution to use, pyoxidizer will also download the distrobution targetting my own os as in this scenario cpython-3.8.6-x86_64-unknown-linux-gnu

OS: UBUNTU 18.04.3 Architecture: x86_64 PyOxidizer: 0.10.1

indygreg commented 3 years ago

Thanks for the report!

I'm unsure what's going on here!

EOF in backquote substitution seems to be coming from a shell. And this seems to be coming from the bowels of the python3-sys crate's build.rs. Why or where exactly, I'm unsure: the stack only seems to flag a high-level function/line, not something that invokes a process.

Do you have any special characters in your HOME or PATH environment variables? Spaces? Non-ASCII characters? Newlines? Or maybe other environment variables?

It feels like something invoking a shell process isn't doing so correctly...

I'm wondering if the custom distribution you have defined is causing this. Can you reproduce this with the default distributions that PyOxidizer uses?

Regarding the additional notes issue with PyOxidizer downloading a distribution when you provided your own, that's likely a separate matter. There probably needs to be a feature to specify a custom distribution to run on the host (in addition to the distribution to target). Could you please file a separate issue to track this?

pouyamiralayi commented 3 years ago

@indygreg

Do you have any special characters in your HOME or PATH environment variables? Spaces? Non-ASCII characters? Newlines? Or maybe other environment variables?

these are the current values for my HOME and PATH environment variables:

echo "$HOME"
/home/sarpedon
echo "$PATH"
/home/sarpedon/.nvm/versions/node/v12.18.3/bin:~/.poetry/bin:/home/sarpedon/.pyenv/shims:/home/sarpedon/.pyenv/bin:/home/sarpedon/.cargo/bin:/home/sarpedon/.poetry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I'm wondering if the custom distribution you have defined is causing this. Can you reproduce this with the default distributions that PyOxidizer uses?

when i replace custom PythonDistribution with default_python_distribution() it is working fine and it will produce a linux binary as expected.

Regarding the additional notes issue with PyOxidizer downloading a distribution when you provided your own, that's likely a separate matter. There probably needs to be a feature to specify a custom distribution to run on the host (in addition to the distribution to target). Could you please file a separate issue to track this?

326.

indygreg commented 3 years ago

I suspect your custom distribution has something wrong in the shebang line. Would you be running the patch at https://github.com/indygreg/python-build-standalone/pull/61 (which inserts backticks into the shebang line of various Python scripts) by any chance?

pouyamiralayi commented 3 years ago

@indygreg trying to build the distribution, crashes with the following error:

clang> FAILED: lib/libc++abi.1.0.dylib\
clang> : && /usr/bin/clang++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color  -O3 -DNDEBUG  -dynamiclib -Wl,-headerpad_max_install_names -stdlib=libc++  -nodefaultlibs  -compatibility_version 1.0.0 -current_version 1.0.0 -o lib/libc++abi.1.0.dylib -install_name @rpath/libc++abi.1.dylib projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_aux_runtime.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_default_handlers.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_demangle.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_exception_storage.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_guard.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_handlers.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_vector.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_virtual.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_exception.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_stdexcept.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_typeinfo.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/abort_message.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/fallback_malloc.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/private_typeinfo.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/stdlib_new_delete.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_exception.cpp.o projects/libcxxabi/src/CMakeFiles/cxxabi_shared.dir/cxa_personality.cpp.o  -Wl,-rpath,@loader_path/../lib -lSystem -Wl,-exported_symbols_list,/private/var/folders/vg/_hqrdhh12lb7db2c3gk8gqqc0000gn/T/tmplhpxqkyv/llvm/projects/libcxxabi/src/../lib/itanium-base.exp -Wl,-exported_symbols_list,/private/var/folders/vg/_hqrdhh12lb7db2c3gk8gqqc0000gn/T/tmplhpxqkyv/llvm/projects/libcxxabi/src/../lib/new-delete.exp -Wl,-exported_symbols_list,/private/var/folders/vg/_hqrdhh12lb7db2c3gk8gqqc0000gn/T/tmplhpxqkyv/llvm/projects/libcxxabi/src/../lib/exceptions.exp -Wl,-exported_symbols_list,/private/var/folders/vg/_hqrdhh12lb7db2c3gk8gqqc0000gn/T/tmplhpxqkyv/llvm/projects/libcxxabi/src/../lib/personality-v0.exp && :\
clang> Undefined symbols for architecture x86_64:\
clang>   "__ZTIDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang>   "__ZTIPDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang>   "__ZTIPKDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang>   "__ZTSDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang>   "__ZTSPDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang>   "__ZTSPKDu", referenced from:\
clang>      -exported_symbol[s_list] command line option\
clang> ld: symbol(s) not found for architecture x86_64\

complete output

OS: mac 10.13.6 Memory: 16GB Python: 3.8.6 (using pyenv)

pouyamiralayi commented 3 years ago

@indygreg is there any docker image out there which works out for this scenario? a linux docker image with a working pyoxidizer that generates mac compatible executables would be great 💯

indygreg commented 3 years ago

Why are you building your own distribution? What's wrong with the pre-built distributions?

PyOxidizer does not yet officially support cross-compiling from Linux to macOS. PyOxidizer does not yet provide images for building. This is on the long-term project roadmap.

pouyamiralayi commented 3 years ago

@indygreg so to wrap my head around this, to make an executable out of my python code that works on mac environments, i have to use pyoxidizer on mac, while cross-compiling is going to be achieved on the future. thanks!