crossenv icon indicating copy to clipboard operation
crossenv copied to clipboard

ModuleNotFoundError: No module named '_sysconfigdata__aarch64-linux-android'

Open Soft-Buddy opened this issue 1 year ago • 0 comments

(cross) rudra@DESKTOP-S5FHTQH:~/env$ python
Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
(cross) rudra@DESKTOP-S5FHTQH:~/env$ python -m pip install numpy
Collecting numpy
  Downloading numpy-1.26.4.tar.gz (15.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 6.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      + /home/rudra/env/venv/cross/bin/python /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011/vendored-meson/meson/meson.py setup /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011 /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011/.mesonpy-69vxc__e -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011/.mesonpy-69vxc__e/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.99
      Source dir: /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011
      Build dir: /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011/.mesonpy-69vxc__e
      Build type: native build
      Project name: NumPy
      Project version: 1.26.4
      C compiler for the host machine: clang (clang 14.0.0-1ubuntu1 "Ubuntu clang version 14.0.0-1ubuntu1.1")
      C linker for the host machine: clang ld.bfd 2.38
      C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
      C++ linker for the host machine: c++ ld.bfd 2.38
      Cython compiler for the host machine: cython (cython 3.0.8)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/home/rudra/env/venv/cross/bin/python)
      Found pkg-config: /usr/bin/pkg-config (0.29.2)
      Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)

      ../meson.build:41:12: ERROR: Python dependency not found

      A full log can be found at /tmp/pip-install-hm_g2_1c/numpy_69be6fc7852e463d98beeaa7f57f2011/.mesonpy-69vxc__e/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
(cross) rudra@DESKTOP-S5FHTQH:~/env$ python -m sysconfig
Platform: "linux-aarch64"
Python version: "3.11"
Current installation scheme: "venv"

Traceback (most recent call last):
  File "/usr/lib/python3.11/runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.11/sysconfig.py", line 893, in <module>
    _main()
  File "/usr/lib/python3.11/sysconfig.py", line 887, in _main
    _print_dict('Paths', get_paths())
                         ^^^^^^^^^^^
  File "/usr/lib/python3.11/sysconfig.py", line 652, in get_paths
    return _expand_vars(scheme, vars)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/sysconfig.py", line 289, in _expand_vars
    _extend_dict(vars, get_config_vars())
                       ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/sysconfig.py", line 706, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/lib/python3.11/sysconfig.py", line 567, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_sysconfigdata__aarch64-linux-android'
(cross) rudra@DESKTOP-S5FHTQH:~/env$

Soft-Buddy avatar Feb 08 '24 16:02 Soft-Buddy