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

0.5.3 fails to install on MacBook Pro (13-inch, M1, 2020) #468

Closed
cmoad opened this issue Oct 18, 2021 · 1 comment
Closed

0.5.3 fails to install on MacBook Pro (13-inch, M1, 2020) #468

cmoad opened this issue Oct 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@cmoad
Copy link

cmoad commented Oct 18, 2021

Environment

MacBook Pro (13-inch, M1, 2020)

Delta-rs version: 0.5.3

Binding:

Environment: Local environment w/Python 3.9.7

  • Cloud provider: n/a
  • OS: MacOS
  • Other:

Bug

deltalake python module fails to install on M1 (arm64) Mac.

pip install deltalake==0.5.3
Collecting deltalake==0.5.3
  Using cached deltalake-0.5.3.tar.gz (4.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing wheel metadata (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/charliemoad/.virtualenvs/crystal-lake/bin/python /Users/charliemoad/.virtualenvs/crystal-lake/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/fg/0895l8z15klg4qqbnmxw95cm0000gp/T/tmp8oix2080
       cwd: /private/var/folders/fg/0895l8z15klg4qqbnmxw95cm0000gp/T/pip-install-aytczqlf/deltalake_2b540f7eb8c247b6ad4acdc9d65b3bff
  Complete output (23 lines):
  💥 maturin failed
    Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
    Caused by: `cargo metadata` exited with an error:     Updating crates.io index
      Updating git repository `https://github.com/apache/arrow-rs`
      Updating git repository `https://github.com/Azure/azure-sdk-for-rust`
   Downloading crates ...
  error: failed to download `zeroize v1.4.2`

  Caused by:
    unable to get packages from source

  Caused by:
    failed to parse manifest at `/Users/charliemoad/.asdf/installs/rust/1.50.0/registry/src/git.luolix.top-1ecc6299db9ec823/zeroize-1.4.2/Cargo.toml`

  Caused by:
    feature `resolver` is required

    this Cargo does not support nightly features, but if you
    switch to nightly channel you can add
    `cargo-features = ["resolver"]` to enable this feature
  Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/private/var/folders/fg/0895l8z15klg4qqbnmxw95cm0000gp/T/pip-modern-metadata-_hyqs7cg', '--interpreter', '/Users/charliemoad/.virtualenvs/crystal-lake/bin/python']' returned non-zero exit status 1.
  Checking for Rust toolchain....
  Running `maturin pep517 write-dist-info --metadata-directory /private/var/folders/fg/0895l8z15klg4qqbnmxw95cm0000gp/T/pip-modern-metadata-_hyqs7cg --interpreter /Users/charliemoad/.virtualenvs/crystal-lake/bin/python`
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/b2/de/9dcd2a06020fb59aea8bcbcd2e6c92ebd0433f694a0cf9c859360508d73f/deltalake-0.5.3.tar.gz#sha256=9ce9feafe94e14904dc2aabebe96572cab36bd77fcef610441f68be291b18e3d (from https://pypi.org/simple/deltalake/) (requires-python:>=3.6). Command errored out with exit status 1: /Users/charliemoad/.virtualenvs/crystal-lake/bin/python /Users/charliemoad/.virtualenvs/crystal-lake/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/fg/0895l8z15klg4qqbnmxw95cm0000gp/T/tmp8oix2080 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement deltalake==0.5.3 (from versions: 0.5.0, 0.5.1, 0.5.2, 0.5.3)
ERROR: No matching distribution found for deltalake==0.5.3

What happened:

Pip install fails.

What you expected to happen:

Module to successfully install.

How to reproduce it:

pip install deltalake==0.5.3

More details:

@cmoad cmoad added the bug Something isn't working label Oct 18, 2021
@cmoad
Copy link
Author

cmoad commented Oct 18, 2021

I was able to self resolve this. I had rust installed with https://asdf-vm.com/, same tool I use for Python. The above error happened with multiple versions. I removed all those rust installs and tried the one from homebrew and it worked successfully.

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

1 participant