Skip to content

How to use explorer #34

@onnimonni

Description

@onnimonni

Hey!

I would want to use duckdb through adbc: https://hexdocs.pm/adbc/Adbc.html

In order to do so I need explorer to convert the dataframes to rows.

I would be happy with precompiled nif for explorer but even building it is okay but just doesn't pass:

$ nixos-rebuild switch --fast --flake ...
...
building '/nix/store/zb76c7yms2dbkxskd8xdrppj7qw7i680-explorer-native-0.11.1.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/hcsy7ybz7h27apci7mssldw3lin9gkf7-explorer-0.11.1/native/explorer
source root is explorer
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
Executing cargoSetupPostPatchHook
Validating consistency between /build/explorer/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Running phase: buildPhase
Executing cargoBuildHook
cargoBuildHook flags: -j 32 --target x86_64-unknown-linux-gnu --offline --profile release
error: failed to get `anyhow` as a dependency of package `explorer v0.1.0 (/build/explorer)`

Caused by:
  failed to load source for dependency `anyhow`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to update replaced source registry `crates-io`

Caused by:
  failed to parse manifest at `/build/cargo-vendor-dir/polars-plan-0.49.1/Cargo.toml`

Caused by:
  feature `edition2024` is required

  The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.84.0 (66221abde 2024-11-19)).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.
error: Cannot build '/nix/store/zb76c7yms2dbkxskd8xdrppj7qw7i680-explorer-native-0.11.1.drv'.
       Reason: builder failed with exit code 101.
       Output paths:
         /nix/store/0fyhzaibwsi9whpqrs1w0spjbavdkzkn-explorer-native-0.11.1
error: Cannot build '/nix/store/l7px8q8gysr22gg4c1rmmi8iv71zfdda-explorer-0.11.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/7f12gpkh923252sgs9vijak60rzbz686-explorer-0.11.1
error: Cannot build '/nix/store/qw3q705724z01336r1kqbj5xh6smgi33-phoenix-web-development.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/2bp2jmxr947pcsnr9wb90nxldwfw8l9b-phoenix-web-development
...

Has someone already used explorer in a elixir app and built it succesfully?

I followed the default instructions from the README to build deps.nix and included it in a NixosModule. Everything works if I remove the explorer dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions