Serialize is not satisfied error when trying to install safe_core

Using Arch Linux, I ran the following command:

$ sudo cargo build --release --features use-mock-routing --verbose

And received the following error:

Compiling safe_core v0.23.0 (file:///home/admin/Downloads/safe_client_libs-0.23.0)
Running `rustc --crate-name safe_core src/lib.rs --crate-type staticlib --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 --cfg 'feature="use-mock-routing"' -C metadata=7eae0720b6cee60a -C extra-filename=-7eae0720b6cee60a --out-dir /home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps -L dependency=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps --extern self_encryption=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libself_encryption-9122db1b333518cf.rlib --extern config_file_handler=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libconfig_file_handler-e76a5df7ec5efb96.rlib --extern log=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblog-9da6708ae61501ef.rlib --extern unwrap=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libunwrap-03dd0d4caab6729d.rlib --extern routing=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librouting-be988c54c8b9b16a.rlib --extern lazy_static=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblazy_static-d9471cc515b33152.rlib --extern rust_sodium=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librust_sodium-3d92d7cfc617ad47.rlib --extern serde_derive=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libserde_derive-1a4d7c5f4a008fa3.so --extern chrono=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libchrono-a0abf83004bdf84c.rlib --extern libc=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblibc-a648fee61247746d.rlib --extern rand=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librand-edb078ba7b4b5548.rlib --extern serde=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libserde-a92605a8c8496775.rlib --extern maidsafe_utilities=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libmaidsafe_utilities-02893d81d75fb4e2.rlib --extern lru_cache=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblru_cache-92bb69dfc97c3127.rlib -L native=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/build/brotli-sys-4f6c5922c144db5c/out -L native=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/build/rust_sodium-sys-93a3925142c8ed36/out/installed/lib`
    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Serialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:10
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |          ^^^^^^^^^ the trait `serde::Serialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                                 
       |
       = note: required by `serde::ser::SerializeStruct::serialize_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Serialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:10
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |          ^^^^^^^^^ the trait `serde::Serialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                                 
       |
       = note: required by `serde::ser::SerializeStruct::serialize_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::SeqVisitor::visit`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::SeqVisitor::visit`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::MapVisitor::visit_value`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::MapVisitor::visit_value`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::private::missing_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/file_metadata.rs:21:21
       |
    21 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::private::missing_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Serialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:10
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |          ^^^^^^^^^ the trait `serde::Serialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                                 
       |
       = note: required by `serde::ser::SerializeStruct::serialize_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Serialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:10
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |          ^^^^^^^^^ the trait `serde::Serialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                                 
       |
       = note: required by `serde::ser::SerializeStruct::serialize_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::SeqVisitor::visit`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::SeqVisitor::visit`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::MapVisitor::visit_value`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::MapVisitor::visit_value`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::private::missing_field`

    error[E0277]: the trait bound `chrono::DateTime<chrono::UTC>: serde::Deserialize` is not satisfied
      --> src/nfs/metadata/directory_metadata.rs:26:21
       |
    26 | #[derive(Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Clone)]
       |                     ^^^^^^^^^^^ the trait `serde::Deserialize` is not implemented for `chrono::DateTime<chrono::UTC>`                                                                                  
       |
       = note: required by `serde::de::private::missing_field`

    error: aborting due to 16 previous errors

    error: Could not compile `safe_core`.

    Caused by:
      process didn't exit successfully: `rustc --crate-name safe_core src/lib.rs --crate-type staticlib --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 --cfg feature="use-mock-routing" -C metadata=7eae0720b6cee60a -C extra-filename=-7eae0720b6cee60a --out-dir /home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps -L dependency=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps --extern self_encryption=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libself_encryption-9122db1b333518cf.rlib --extern config_file_handler=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libconfig_file_handler-e76a5df7ec5efb96.rlib --extern log=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblog-9da6708ae61501ef.rlib --extern unwrap=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libunwrap-03dd0d4caab6729d.rlib --extern routing=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librouting-be988c54c8b9b16a.rlib --extern lazy_static=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblazy_static-d9471cc515b33152.rlib --extern rust_sodium=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librust_sodium-3d92d7cfc617ad47.rlib --extern serde_derive=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libserde_derive-1a4d7c5f4a008fa3.so --extern chrono=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libchrono-a0abf83004bdf84c.rlib --extern libc=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblibc-a648fee61247746d.rlib --extern rand=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/librand-edb078ba7b4b5548.rlib --extern serde=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libserde-a92605a8c8496775.rlib --extern maidsafe_utilities=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/libmaidsafe_utilities-02893d81d75fb4e2.rlib --extern lru_cache=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/deps/liblru_cache-92bb69dfc97c3127.rlib -L native=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/build/brotli-sys-4f6c5922c144db5c/out -L native=/home/admin/Downloads/safe_client_libs-0.23.0/target/release/build/rust_sodium-sys-93a3925142c8ed36/out/installed/lib` (exit code: 101)
1 Like

Safe_vault is currently not compatible with routing. I have signaled it to Maidsafe a few days ago. Let’s hope that they will soon provide a new safe_vault version that corrects the incompatibilities.

1 Like

Can I run anything right now then?
I would like to give Maidsafe a testrun, try to understand it and then see if I can build apps for it.

4 Likes

You can try the new SAFE Authenticator Browser with Mock-Routing.

5 Likes

Downgit doesn’t seem to be working for me.
It keeps being stuck at Downloaded 0 of 0 files.

You can download the binaries from here and they are all ready to test - https://github.com/maidsafe/safe_browser/releases/tag/0.1.0

You should watch out for the Dev Update coming out in a couple of hours also as there may be something else in that you can use.

I get this error while using the browser:

This site cant be reached

ERR_BLOCKED_BY_CLIENT

Think I saw that before with my own build but not sure. You could searching the code for it if you want to know more about it.

This topic was automatically closed after 60 days. New replies are no longer allowed.