grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
10.1k stars 610 forks source link

Failed building wheel for pyroscope-io #2013

Closed PETERCHUU closed 1 year ago

PETERCHUU commented 1 year ago

Describe the bug

I'm try to pip install the pyroscope for my python project on Windows PC. When I'm pipinstall pyroscope-io, it popup a error

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

To Reproduce

the command I'm uysing is

pip install pyroscope-io

and the process went like this:

Collecting pyroscope-io
  Using cached pyroscope-io-0.8.5.tar.gz (29 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.6.0 (from pyroscope-io)
  Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB)
Collecting pycparser (from cffi>=1.6.0->pyroscope-io)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
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]
      C:\Users\XXX\AppData\Local\Temp\pip-build-env-uob2s1og\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-311
      creating build\lib.win-amd64-cpython-311\pyroscope
      copying pyroscope\__init__.py -> build\lib.win-amd64-cpython-311\pyroscope
      creating build\lib.win-amd64-cpython-311\pyroscope_io
      copying pyroscope_io\__init__.py -> build\lib.win-amd64-cpython-311\pyroscope_io
      error: [WinError 2] 系統找不到指定的檔案。
      [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

Expected behavior

It would be lovely if the pip install pyroscope-io are working again.

Thank you for anyone who help me ,

PETERCHUU commented 1 year ago

I'm just read the guide, the pyroscope agent with python is not work on windows

korniltsev commented 1 year ago

We had a contribution https://github.com/grafana/pyroscope-rs/pull/68 But CI did not work so we never released. We should release python pip package for windows.

chintanp commented 8 months ago

@korniltsev This still does not work for me. Do you have any updates since last July whether this was merged or not?

korniltsev commented 7 months ago

It was merged and then partially reverted (the CI parts) so the code should work on windows, but we do not build/distribute it. I have no updates or plans regarding windows support.