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

cargo install error #1243

Open
ywgrit opened this issue Dec 18, 2023 · 0 comments
Open

cargo install error #1243

ywgrit opened this issue Dec 18, 2023 · 0 comments

Comments

@ywgrit
Copy link

ywgrit commented Dec 18, 2023

Hi.
I encountered an error in the last step, i.e. "cargo pgrx install":
Compiling linfa-logistic v0.7.0 (/home/wx/qp/tp/investigate/pgml/postgresml/pgml-extension/deps/linfa/algorithms/linfa-logistic)
error[E0277]:Trait binding argmin_param::ArgminParam<F, Dim<[usize;1]>>: serde::ser::Serialize not satisfied
--> deps/linfa/algorithms/linfa-logistic/src/lib.rs:830:19
|
830 | type Solver = LBFGSType1;
| ^^^^^^^^^^^^^ The "serde::ser::Serialize" feature of `argmin_param::ArgminParam<F, Dim<[usize;1]>> is not implemented.

However, When I execute 'cargo build' in the 'deps/linfa/algorithms/linfa-logistic' directory it does not report an error. I'm not familiar with rust, so I'm looking for help!

The following is the environment:
The result of the 'hostnamectl' is as follows
Static hostname: ubuntu
Icon name: computer-desktop
Chassis: desktop
Machine ID: eba2af7b0f294eaf8ae445e52c99168e
Boot ID: feaef101a092456ba57d852ef201caaf
OS: Ubuntu 20.04.6 LTS
Kernel: Linux 5.4.0-156 Linux 5.4.0-156-generic
Architecture: x86-64

rust version: rustc 1.76.0-nightly (6a6287132 2023-12-17)
Cargo version: cargo 1.76.0-nightly (1aa9df1a5 2023-12-12)
The commitid of the postgresml used: b29606c

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant