indygreg / indygreg/PyOxidizer
Macos 12.3 "error: cargo run failed" with python 3.8 pyoxidizer 0.22.0
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description

```
__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 98 extension modules
compiling custom config.c to object file
locating Apple SDK macosx11.1+ supporting macosx10.9
using MacOSX (version: 12.1) SDK at /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk targeting macosx10.9
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-I" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c" "-Wall" "-Wextra" "-std=c99" "-DNDEBUG" "-DPy_BUILD_CORE" "-isysroot" "/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk" "-o" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c/config.o" "-c" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c/config.c"
exit status: 0
running: "ar" "cq" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c/libirrelevant.a" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c/config.o"
exit status: 0
running: "ar" "s" "/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/config_c/libirrelevant.a"
exit status: 0
resolving inputs for custom Python library...
linking customized Python library...
invoking `ar s` to index archive symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/libpython/lib.a(dlfcn_simple.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/libpython/lib.a(dynamic_annotations.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizer-libpythonATGwug/libpython/lib.a(pymath.o) has no symbols
30338832 byte Python library created
locating Apple SDK macosx11.1+ supporting macosx10.9
using MacOSX (version: 12.1) SDK at /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk targeting macosx10.9
building with Rust 1.61.0
Compiling target-lexicon v0.12.4
Compiling libc v0.2.126
Compiling once_cell v1.12.0
Compiling cc v1.0.73
Compiling cfg-if v1.0.0
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling memchr v2.5.0
Compiling syn v1.0.96
Compiling encoding_rs v0.8.31
Compiling autocfg v1.1.0
Compiling smallvec v1.8.0
Compiling fs_extra v1.2.0
Compiling serde v1.0.137
Compiling parking_lot_core v0.9.3
Compiling anyhow v1.0.57
Compiling semver v1.0.9
Compiling scopeguard v1.1.0
Compiling base64 v0.13.0
Compiling same-file v1.0.6
Compiling byteorder v1.4.3
Compiling regex-syntax v0.6.26
Compiling quoted_printable v0.4.5
Compiling data-encoding v2.3.2
Compiling either v1.6.1
Compiling indoc v1.0.6
Compiling tugger-file-manifest v0.9.0
Compiling unindent v0.1.9
Compiling dunce v1.0.2
Compiling spdx v0.8.1
Compiling lock_api v0.4.7
Compiling walkdir v2.3.2
Compiling itertools v0.10.3
Compiling jemalloc-sys v0.5.0+5.3.0
Compiling aho-corasick v0.7.18
Compiling quote v1.0.18
Compiling memmap2 v0.5.4
Compiling pyo3-build-config v0.16.5
Compiling charset v0.1.3
Compiling python-packed-resources v0.10.0
Compiling rustc_version v0.4.0
Compiling regex v1.5.6
Compiling mailparse v0.13.8
Compiling parking_lot v0.12.1
Compiling python-packaging v0.14.0
Compiling pyo3-ffi v0.16.5
Compiling pyo3 v0.16.5
Compiling pyembed v0.22.0
Compiling toml v0.5.9
Compiling pyo3-macros-backend v0.16.5
Compiling embed-resource v1.7.2
Compiling pyapp v0.1.0 (/private/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizernnFwQt/pyapp)
Compiling pyo3-macros v0.16.5
Compiling python-oxidized-importer v0.7.0
Compiling jemallocator v0.5.0
Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
evaluating dependencies for /private/var/folders/cc/1m186k811qz62mv4pbn4cxh80000gn/T/pyoxidizernnFwQt/pyapp/Cargo.toml using features: build-mode-prebuilt-artifacts, global-allocator-jemalloc, allocator-jemalloc
Software Licensing Summary
==========================
50 distinct software components
0 lack a known software license
0 have unknown license expressions
14 distinct SPDX licenses
2 components in the public domain
2 have copyleft licenses
Count OSI FSF free Copyleft SPDX License
2 [x] [ ] [ ] BSD Zero Clause License
28 [x] [x] [ ] Apache License 2.0
2 [x] [x] [ ] BSD 3-Clause "New" or "Revised" License
1 [ ] [x] [ ] Creative Commons Zero v1.0 Universal
1 [x] [ ] [ ] CNRI Python License
32 [x] [x] [ ] MIT License
2 [x] [x] [x] Mozilla Public License 2.0
2 [ ] [x] [ ] OpenSSL License
3 [x] [x] [ ] Python License 2.0
1 [ ] [ ] [ ] TCL/TK License
5 [x] [x] [ ] The Unlicense
1 [ ] [x] [ ] X11 License
1 [x] [x] [ ] zlib License
1 [ ] [ ] [ ] bzip2 and libbzip2 License v1.0.6
Noteworthy Licensing Info
=========================
* Rust crate pyembed has a copyleft license (Mozilla Public License 2.0)
* Rust crate python-oxidized-importer has a copyleft license (Mozilla Public License 2.0)
adding extra file COPYING.txt to .
installing files to /Users/arunkumarduraisamy/pyapp/./build/x86_64-apple-darwin/debug/install
error: cargo run failed
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported build with macOS 12.3, Python 3.8, and PyOxidizer 0.22.0, focusing on the final `cargo run failed` message after installation. No source file or test is named; done means identifying the underlying failure and verifying that the reported packaging command completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, python, rust
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100