Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On windows can't install pyroscope pip package #136

Open
csakaszamok opened this issue Sep 21, 2023 · 3 comments
Open

On windows can't install pyroscope pip package #136

csakaszamok opened this issue Sep 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@csakaszamok
Copy link

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

@csakaszamok csakaszamok added the bug Something isn't working label Sep 21, 2023
@nilayparikh
Copy link

Is there any update? I am facing the similar issue.

@lucaatt94
Copy link

I have the same issue both on Windows and Linux based OSs. Following up the thread.

@s4v4g3
Copy link

s4v4g3 commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants