pyroscope-rs
pyroscope-rs copied to clipboard
On windows can't install pyroscope pip package
What did you expect to happen instead? error during installation:
Building wheels for collected packages: pyroscope-io
Building wheel for pyroscope-io (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyroscope-io (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
....\pip-build-env-jpvvgt5f\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pyroscope
copying pyroscope\__init__.py -> build\lib.win-amd64-cpython-310\pyroscope
creating build\lib.win-amd64-cpython-310\pyroscope_io
copying pyroscope_io\__init__.py -> build\lib.win-amd64-cpython-310\pyroscope_io
error: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyroscope-io
Failed to build pyroscope-io
ERROR: Could not build wheels for pyroscope-io, which is required to install pyproject.toml-based projects
Steps to reproduce: pip install pyroscope-io
Environment: Python 3.10.12 pip 23.2.1 Windows 11
Is there any update? I am facing the similar issue.
I have the same issue both on Windows and Linux based OSs. Following up the thread.
It seems the build process of the source distribution is broken because Cargo.toml points to dependencies that don't exist in the source distribution, only the repo. https://github.com/grafana/pyroscope-rs/blob/main/pyroscope_ffi/python/lib/Cargo.toml#L12-L14
I was able to build the wheel by cloning the pyroscope-rs repo and running
python setup.py bdist_wheel
from the pyroscope_ffi/python subdirectory.