pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Build Failure: pyo3-ffi v0.20.3 - SOABI not found in sysconfigdata file

Open Sangeetha-E opened this issue 1 year ago • 3 comments

I'm encountering an issue when trying to compile the pyo3-ffi v0.20.3. The build fails with the following error:

Error logs:

Compiling pyo3-ffi v0.20.3
Compiling pyo3 v0.20.3
error: failed to run custom build command for `pyo3-ffi v0.20.3`

Caused by:
  process didn't exit successfully: (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=PYO3_CROSS
  cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
  cargo:rerun-if-env-changed=PYO3_NO_PYTHON
  cargo:rerun-if-env-changed=_PYTHON_SYSCONFIGDATA_NAME
  cargo:rerun-if-env-changed=PYO3_ENVIRONMENT_SIGNATURE
  cargo:rerun-if-env-changed=PYO3_PYTHON
  cargo:rerun-if-env-changed=VIRTUAL_ENV
  cargo:rerun-if-env-changed=CONDA_PREFIX

  --- stderr
  error: SOABI not found in sysconfigdata file
warning: build failed, waiting for other jobs to finish...

I am looking for guidance on how to resolve this build issue. Any help or suggestions would be greatly appreciated.

Sangeetha-E avatar Sep 04 '24 09:09 Sangeetha-E

What's the output of python3 -m sysconfig? Can you find SOABI in it?

messense avatar Sep 04 '24 09:09 messense

Yes. I found SOABI.

$ python3 -m sysconfig | grep SOABI
	ALT_SOABI = "0"
	SOABI = "cpython-311-x86_64-linux-gnu"

Note: I am cross compiling pyo3-ffi.

Sangeetha-E avatar Sep 04 '24 09:09 Sangeetha-E

What target are you cross compiling to? Are you able to try latest PyO3 (0.22.2)? We might have improved things (or at least improved error messages), and if it's still a problem maybe we can improve the error message further.

davidhewitt avatar Sep 04 '24 12:09 davidhewitt

This has stalled for ~1yr, closing.

davidhewitt avatar Nov 03 '25 12:11 davidhewitt