tenstorrent / tt-smi

Tenstorrent console based hardware information program
Apache License 2.0
21 stars 6 forks source link

Failed to build pyluwen on fresh Ubuntu 20.04 install #8

Closed danindiana closed 7 months ago

danindiana commented 7 months ago

Building wheels for collected packages: tt-smi, pyluwen, tt-tools-common Building wheel for tt-smi (pyproject.toml) ... done Created wheel for tt-smi: filename=tt_smi-2.0.1-py3-none-any.whl size=42939 sha256=c031a6c71d34189d259646d96f5a6726b14a02574b7275e6dcc9fd5f3c05e808 Stored in directory: /home/zorapa/.cache/pip/wheels/b8/7d/8f/3b946d9717d5fd56a9e0c1d916ee40440b0f607344bf15d89a Building wheel for pyluwen (pyproject.toml) ... error error: subprocess-exited-with-error

Γ— Building wheel for pyluwen (pyproject.toml) did not run successfully. β”‚ exit code: 1 ╰─> [51 lines of output] Running maturin pep517 build-wheel -i /home/zorapa/programs/tenstornt/.venv/bin/python3 --compatibility off πŸ”— Found pyo3 bindings 🐍 Found CPython 3.8 at /home/zorapa/programs/tenstornt/.venv/bin/python3 πŸ“‘ Using build options features from pyproject.toml Compiling proc-macro2 v1.0.78 Compiling unicode-ident v1.0.12 Compiling typenum v1.17.0 Compiling version_check v0.9.4 Compiling autocfg v1.1.0 Compiling libc v0.2.153 Compiling target-lexicon v0.12.14 Compiling cfg-if v1.0.0 Compiling once_cell v1.19.0 Compiling cpufeatures v0.2.12 Compiling same-file v1.0.6 Compiling thiserror v1.0.57 Compiling serde v1.0.197 Compiling syn v1.0.109 Compiling portable-atomic v1.6.0 Compiling parking_lot_core v0.9.9 Compiling smallvec v1.13.1 Compiling unicode-width v0.1.11 Compiling scopeguard v1.2.0 Compiling bitflags v1.3.2 Compiling pin-utils v0.1.0 Compiling pin-project-lite v0.2.13 Compiling lazy_static v1.4.0 Compiling number_prefix v0.4.0 Compiling inventory v0.3.15 Compiling indoc v1.0.9 Compiling unindent v0.1.11 Compiling walkdir v2.5.0 error: linker cc not found | = note: No such file or directory (os error 2)

  error: could not compile `parking_lot_core` (build script) due to 1 previous error
  warning: build failed, waiting for other jobs to finish...
  error: could not compile `serde` (build script) due to 1 previous error
  error: could not compile `thiserror` (build script) due to 1 previous error
  error: could not compile `proc-macro2` (build script) due to 1 previous error
  error: could not compile `syn` (build script) due to 1 previous error
  error: could not compile `libc` (build script) due to 1 previous error
  error: could not compile `portable-atomic` (build script) due to 1 previous error
  error: could not compile `indoc` (lib) due to 1 previous error
  error: could not compile `typenum` (build script) due to 1 previous error
  error: could not compile `target-lexicon` (build script) due to 1 previous error
  πŸ’₯ maturin failed
    Caused by: Failed to build a native library through cargo
    Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.8-64bit" PYO3_PYTHON="/home/zorapa/programs/tenstornt/.venv/bin/python3" PYTHON_SYS_EXECUTABLE="/home/zorapa/programs/tenstornt/.venv/bin/python3" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-e_e1q0mu/pyluwen_b4f1a8f241034d38ab41dcb09480f943/crates/pyluwen/Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/zorapa/programs/tenstornt/.venv/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pyluwen Building wheel for tt-tools-common (pyproject.toml) ... done Created wheel for tt-tools-common: filename=tt_tools_common-1.0.0-py3-none-any.whl size=20337 sha256=f7d0dda0519b9f306bb54b6933d2be254f19d855ab3a1526f522912fcbf985d2 Stored in directory: /tmp/pip-ephem-wheel-cache-owzrtntl/wheels/3d/c3/e8/ba2e0cdc7d7890c87c4132de0487ecc8191813db879a86b1dc Successfully built tt-smi tt-tools-common Failed to build pyluwen ERROR: Could not build wheels for pyluwen, which is required to install pyproject.toml-based projects

OS: Ubuntu 20.04 focal Kernel: x86_64 Linux 5.15.0-100-generic Uptime: 27m Packages: 1693 Shell: bash 5.0.17 Resolution: 2560x1080 DE: GNOME 3.36.5 WM: Mutter WM Theme: Adwaita GTK Theme: Yaru [GTK2/3] Icon Theme: Yaru Font: Ubuntu 11 Disk: 15G / 1.9T (1%) CPU: AMD Ryzen 9 7950X3D 16-Core @ 32x 4.2GHz GPU: AMD/ATI RAM: 6056MiB / 192424MiB

~/programs/tenstornt/tt-smi$ pip3 list Package Version


pip 24.0 pkg_resources 0.0.0 setuptools 44.0.0

danindiana commented 7 months ago

Necessary to first $apt-get install build-essential

Then $pip3 install .

Successfully built tt-smi pyluwen tt-tools-common Installing collected packages: typish, distlib, zipp, urllib3, uc-micro-py, typing-extensions, tqdm, tomli, pyyaml, pyluwen, pygments, psutil, platformdirs, pathspec, packaging, nodeenv, mypy-extensions, mdurl, jsons, idna, identify, filelock, distro, click, charset-normalizer, cfgv, certifi, virtualenv, requests, pydantic, markdown-it-py, linkify-it-py, importlib-resources, importlib-metadata, elastic-transport, black, rich, pre-commit, mdit-py-plugins, elasticsearch, textual, tt-tools-common, tt-smi Successfully installed black-23.11.0 certifi-2024.2.2 cfgv-3.4.0 charset-normalizer-3.3.2 click-8.1.7 distlib-0.3.8 distro-1.8.0 elastic-transport-8.12.0 elasticsearch-8.11.0 filelock-3.13.1 identify-2.5.35 idna-3.6 importlib-metadata-7.0.2 importlib-resources-6.1.1 jsons-1.6.3 linkify-it-py-2.0.2 markdown-it-py-3.0.0 mdit-py-plugins-0.4.0 mdurl-0.1.2 mypy-extensions-1.0.0 nodeenv-1.8.0 packaging-23.2 pathspec-0.12.1 platformdirs-4.2.0 pre-commit-3.5.0 psutil-5.9.6 pydantic-1.10.14 pygments-2.17.2 pyluwen-0.5.1 pyyaml-6.0.1 requests-2.31.0 rich-13.7.0 textual-0.42.0 tomli-2.0.1 tqdm-4.66.1 tt-smi-2.0.1 tt-tools-common-1.0.0 typing-extensions-4.10.0 typish-1.9.3 uc-micro-py-1.0.3 urllib3-2.2.1 virtualenv-20.25.1 zipp-3.17.0