Skip to content

Unable to install RustPython from source with cargo install. #3982

Closed
@pateljoel

Description

@pateljoel

I ran the below command:

cargo install --git https://github.com/RustPython/RustPython --features ssl

To try the new pip features and I get this error:

Compiling rustpython-derive v0.1.2 (/Users/jptl/.cargo/git/checkouts/rustpython-f8ef4d934ac33cd8/0341e72/derive)
error[E0493]: destructors cannot be evaluated at compile-time
   --> vm/src/builtins/bytes.rs:619:15
    |
619 |             ..PyNumberMethods::NOT_IMPLEMENTED
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
620 |         };
    |         - value is dropped here

error[E0493]: destructors cannot be evaluated at compile-time
   --> vm/src/builtins/complex.rs:469:15
    |
469 |             ..PyNumberMethods::NOT_IMPLEMENTED
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
470 |         };
    |         - value is dropped here

error[E0493]: destructors cannot be evaluated at compile-time
   --> vm/src/builtins/float.rs:600:15
    |
600 |             ..PyNumberMethods::NOT_IMPLEMENTED
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
601 |         };
    |         - value is dropped here

error[E0493]: destructors cannot be evaluated at compile-time
   --> vm/src/builtins/int.rs:824:15
    |
824 |             ..PyNumberMethods::NOT_IMPLEMENTED
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
825 |         };
    |         - value is dropped here

error[E0493]: destructors cannot be evaluated at compile-time
   --> vm/src/builtins/mappingproxy.rs:229:15
    |
229 |             ..PyNumberMethods::NOT_IMPLEMENTED
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
230 |         };
    |         - value is dropped here

error[E0493]: destructors cannot be evaluated at compile-time
  --> vm/src/builtins/singletons.rs:63:15
   |
63 |             ..PyNumberMethods::NOT_IMPLEMENTED
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ statics cannot evaluate destructors
64 |         };
   |         - value is dropped here

For more information about this error, try `rustc --explain E0493`.
error: could not compile `rustpython-vm` due to 6 previous errors
error: failed to compile `rustpython v0.1.2 (https://github.com/RustPython/RustPython#0341e72d)`, intermediate artifacts can be found at `/var/folders/kr/bth5f40j6k97jj7m0w22rnh80000gn/T/cargo-installPr3Y3y`

Rust & Cargo Versions

rustc 1.62.1 (e092d0b6b 2022-07-16)
cargo 1.62.1 (a748cf5a3 2022-06-08)

I am on macOS Monterey 12.4 x86_64.

Any help would be appreciated.

Joel

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions