connector-x: [ARM64] ERROR: No matching distribution found for connectorx==0.2.2

Hello,

I would like to use connector-x on ARM64 architecture. However, it seems that this library has no ARM architecture version when trying to pip install it via docker buildx on this type of architecture.

Would it be possible to release an ARM64 version of the library?

Thanks!

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 40 (17 by maintainers)

Most upvoted comments

@lonestriker can you try this nightly version: #186 (comment) ?

Perfect, that fixed up the build issue on my M1 mac!

Edit: Looks like the build generates the wrong filename though for the distribution. It’s listing it as ‘intel’:

connectorx-0.2.4a5-cp39-cp39-macosx_10_15_intel.whl

but when I check the generated library but it’s arm64:

$ file connectorx_python.cpython-39-darwin.so
connectorx_python.cpython-39-darwin.so: Mach-O 64-bit dynamically linked shared library arm64

Steps to build for those who also hit the same issue:

Fresh clone of source

$ git clone https://github.com/sfu-db/connector-x.git

Install nightly-2021-10-21

$ rustup install nightly-2021-10-21
info: syncing channel updates for 'nightly-2021-10-21-aarch64-apple-darwin'

  nightly-2021-10-21-aarch64-apple-darwin unchanged - rustc 1.58.0-nightly (efd048394 2021-10-20)

info: checking for self-updates

Override default project toolchain

$ rustup default nightly-2021-10-21
$ rustup override set nightly-2021-10-21
$ rustup show
Default host: aarch64-apple-darwin
rustup home:  /Users/user/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin
nightly-2021-10-21-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin

active toolchain
----------------

nightly-2021-10-21-aarch64-apple-darwin (default)
rustc 1.58.0-nightly (efd048394 2021-10-20)

Build

$ just bootstrap-python
$ just ci-build-python-extention ci-build-python-wheel ci-rename-wheel