watchfiles icon indicating copy to clipboard operation
watchfiles copied to clipboard

install trouble on SUSE11SP4: ERROR: Failed building wheel for maturin

Open fredsun opened this issue 8 months ago • 0 comments

Description

why i use "--no-binary :all:", it still try to use rust to compiler maturin? is there any pre-compiled wheels for the suse11sp4 linux platform?

pip install watchfiles==0.21.0 --no-binary :all:

Collecting watchfiles==0.21.0
  Using cached watchfiles-0.21.0.tar.gz (37 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      Collecting maturin<2,>=0.14.16
        Using cached maturin-1.3.0.tar.gz (175 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'done'
      Collecting tomli>=1.1.0 (from maturin<2,>=0.14.16)
        Using cached tomli-2.0.1-py3-none-any.whl
      Building wheels for collected packages: maturin
        Building wheel for maturin (pyproject.toml): started
        Building wheel for maturin (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Building wheel for maturin (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [35 lines of output]
            running bdist_wheel
            running build
            running build_py
            creating build
            creating build/lib.linux-x86_64-cpython-38
            creating build/lib.linux-x86_64-cpython-38/maturin
            copying maturin/__init__.py -> build/lib.linux-x86_64-cpython-38/maturin
            copying maturin/import_hook.py -> build/lib.linux-x86_64-cpython-38/maturin
            copying maturin/__main__.py -> build/lib.linux-x86_64-cpython-38/maturin
            running egg_info
            creating maturin.egg-info
            writing maturin.egg-info/PKG-INFO
            writing dependency_links to maturin.egg-info/dependency_links.txt
            writing requirements to maturin.egg-info/requires.txt
            writing top-level names to maturin.egg-info/top_level.txt
            writing manifest file 'maturin.egg-info/SOURCES.txt'
            reading manifest file 'maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            /tmp/pip-build-env-vu8523we/overlay/lib/python3.8/site-packages/setuptools/config/_apply_pyprojecttoml.py:80: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
              corresp(dist, value, root_dir)
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file 'maturin.egg-info/SOURCES.txt'
            running build_ext
            running build_rust
            error: can't find Rust compiler
      
            If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
      
            To update pip, run:
      
                pip install --upgrade pip
      
            and then retry package installation.
      
            If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for maturin
      Failed to build maturin
      ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
  • environment:
linux :
    cat /proc/version
        Linux version 3.0.101-63-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP Tue Jun 23 16:02:31 UTC 2015 (4b89d0c)
    
    lsb_release -a
        LSB Version:	core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
        Distributor ID:	SUSE LINUX
        Description:	SUSE Linux Enterprise Server 11 (x86_64)
        Release:	11
        Codename:	n/a
python:
    python3.8.10,
    pycharm2016, 
    pip 23.3.1, 
    setuptools65.5.1

Example Code

nope

Watchfiles Output

nope

Operating System & Architecture

no module named watchfiles

Environment

suse11sp4

Python & Watchfiles Version

python3.8.10,     pycharm2016,      pip 23.3.1,      setuptools65.5.1

Rust & Cargo Version

No response

fredsun avatar Oct 25 '23 01:10 fredsun