Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failing #27

Closed
ben-polytope opened this issue Aug 15, 2023 · 1 comment
Closed

Build Failing #27

ben-polytope opened this issue Aug 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ben-polytope
Copy link

ben-polytope commented Aug 15, 2023

maturin version = 1.1.0
tested python versions = 3.11.4, 3.7.16
Fedora x86_64

Failing to compile after 0.2.0 release. Both pip install cryo_python --upgrade and pip install cryo_python==0.2.0
result in compilation errors.

Compiling cryo_freeze v0.2.0 (/tmp/pip-install-dgqswh2e/cryo-python_676e219b6c1a4edba3ab25421b173ac7/local_dependencies/cryo_freeze)
      error: environment variable `GIT_DESCRIPTION` not defined at compile time
        --> local_dependencies/cryo_cli/src/reports.rs:44:69
         |
      44 |     let cryo_version = format!("{}__{}", env!("CARGO_PKG_VERSION"), env!("GIT_DESCRIPTION"));
         |                                                                     ^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: use `std::env::var("GIT_DESCRIPTION")` to read the variable at run time
         = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
      
      The following warnings were emitted during compilation:
      
      warning: Could not determine git description
      
      error: could not compile `cryo_cli` (lib) due to previous error
      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `PYO3_ENVIRONMENT_SIGNATURE="cpython-3.11-64bit" PYO3_PYTHON="/usr/bin/python3" PYTHON_SYS_EXECUTABLE="/usr/bin/python3" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-dgqswh2e/cryo-python_676e219b6c1a4edba3ab25421b173ac7/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryo_python
Failed to build cryo_python
ERROR: Could not build wheels for cryo_python, which is required to install pyproject.toml-based projects
@ben-polytope ben-polytope added the bug Something isn't working label Aug 15, 2023
@sslivkoff
Copy link
Member

fixed in #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants