Skip to content

python3-sys build error on  #110

Closed
Closed
@Peter-Noble

Description

@Peter-Noble

Hey, we're trying to build rust-cpython on windows and running into the following error:

C:\Users\johnr\Documents\CrowdMaster\rust\channel_world>cargo build Compiling utf8-ranges v0.1.3 Compiling winapi-build v0.1.1 Compiling winapi v0.2.8 Compiling cpython v0.1.0 (https://github.com/dgrunwald/rust-cpython.git#5395cd41) Compiling regex-syntax v0.3.9 Compiling memchr v0.1.11 Compiling kernel32-sys v0.2.2 Compiling aho-corasick v0.5.3 Compiling thread-id v2.0.0 Compiling thread_local v0.2.7 Compiling regex v0.1.80 Compiling python3-sys v0.1.3 (https://github.com/dgrunwald/rust-cpython.git#5395cd41) error: failed to run custom build command for python3-sys v0.1.3 (https://github.com/dgrunwald/rust-cpython.git#5395cd41)`
process didn't exit successfully: C:\Users\johnr\Documents\CrowdMaster\rust\target\debug\build\python3-sys-26c0bb845f0b7d10\b uild-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: "failed to run python interpreter \"python3\" \"-c\" \"import sys; import sysconfig; print(sys.version_info[0:2]); print(sysconfig.get_config_var(\\\'LIBDIR\\\')); print(sysconfig .get_config_var(\\\'Py_ENABLE_SHARED\\\')); print(sysconfig.get_config_var(\\\'LDVERSION\\\') or \\\'%s%s\\\' % (sysconfig.get _config_var(\\\'py_version_short\\\'), sysconfig.get_config_var(\\\'DEBUG_EXT\\\') or \\\'\\\')); print(sys.exec_prefix);\":
The system cannot find the file specified. (os error 2)"', src\libcore\result.rs:860
note: Run with RUST_BACKTRACE=1 for a backtrace.`

Cargo.toml looks like this:
`[package]
name = "channel_world"
version = "0.1.0"
authors = ["Peter-Noble [email protected]"]

[lib]
name = "channel_world"
crate-type = ["cdylib"]

[dependencies.cpython]
version = "0.1.0"
default-features = false
features = ["python3-sys"]
git = "https://github.com/dgrunwald/rust-cpython.git"`

The same project builds correctly on Linux. Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions