vmprof / vmprof-python

vmprof - a statistical program profiler
https://vmprof.readthedocs.io
Other
432 stars 55 forks source link

Python 3.11 Windows 11 22H2 Pip install error #255

Closed Marius-Juston closed 11 months ago

Marius-Juston commented 1 year ago

Hello I am unable to install vmprof for my python 3.11, this is the error I am getting


Collecting vmprof
  Using cached vmprof-0.4.15.tar.gz (289 kB)
  Preparing metadata (setup.py) ... done
Collecting requests (from vmprof)
  Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: six in c:\users\auvsl\anaconda3\envs\uwb-jackal\lib\site-packages (from vmprof) (1.16.0)
Collecting pytz (from vmprof)
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting colorama (from vmprof)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting charset-normalizer<4,>=2 (from requests->vmprof)
  Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/91/6e/db0e545302bf93b6dbbdc496dd192c7f8e8c3bb1584acba069256d8b51d4/charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl.metadata
  Using cached charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl.metadata (31 kB)
Collecting idna<4,>=2.5 (from requests->vmprof)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<3,>=1.21.1 (from requests->vmprof)
  Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.metadata
  Using cached urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB)
Collecting certifi>=2017.4.17 (from requests->vmprof)
  Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl.metadata
  Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Using cached charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl (96 kB)
Using cached urllib3-2.0.4-py3-none-any.whl (123 kB)
Building wheels for collected packages: vmprof
  Building wheel for vmprof (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\constants.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\marks.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\merge_point.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\objects.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\parser.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\prettyprinter.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\query.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\upload.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\__init__.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\__main__.py -> build\lib.win-amd64-cpython-311\jitlog
      creating build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\cli.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\profiler.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\reader.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\show.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\stats.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\upload.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\__init__.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\__main__.py -> build\lib.win-amd64-cpython-311\vmprof
      creating build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\binary.py -> build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\service.py -> build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\__init__.py -> build\lib.win-amd64-cpython-311\vmshare
      running build_ext
      building '_vmprof' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\AUVSL\anaconda3\envs\UWB-Jackal\include -IC:\Users\AUVSL\anac
onda3\envs\UWB-Jackal\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\
Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x8
6)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc/_vmprof.c /Fobuild\temp.win-amd64-cpython-311\Release\src/_vmprof.obj -DVMPROF_WINDOWS=1 "-I src/" "-I src/libbacktrace"
      _vmprof.c
      src/_vmprof.c(68): warning C4090: '=': different 'const' qualifiers
      src/_vmprof.c(71): warning C4090: '=': different 'const' qualifiers
      src/_vmprof.c(111): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      src/_vmprof.c(295): error C2039: 'frame': is not a member of '_ts'
      C:\Users\AUVSL\anaconda3\envs\UWB-Jackal\include\cpython/pystate.h(82): note: see declaration of '_ts'
      src/_vmprof.c(295): warning C4047: 'function': 'PyFrameObject *' differs in levels of indirection from 'void **'
      src/_vmprof.c(295): warning C4024: 'vmp_walk_and_record_stack': different types for formal and actual parameter 1
      src/_vmprof.c(295): warning C4022: 'vmp_walk_and_record_stack': pointer mismatch for actual parameter 2
      src/_vmprof.c(295): error C2198: 'vmp_walk_and_record_stack': too few arguments for call
      src/_vmprof.c(299): error C2065: 'ssize_t': undeclared identifier
      src/_vmprof.c(299): error C2146: syntax error: missing ')' before identifier 'routine_ip'
      src/_vmprof.c(299): error C2059: syntax error: ')'
      src/_vmprof.c(299): error C2059: syntax error: ')'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vmprof
  Running setup.py clean for vmprof
Failed to build vmprof
ERROR: Could not build wheels for vmprof, which is required to install pyproject.toml-based projects
(UWB-Jackal) PS C:\Users\AUVSL\Documents\Marius\UWB-Jackal> pip install vmprof
Collecting vmprof
  Using cached vmprof-0.4.15.tar.gz (289 kB)
  Preparing metadata (setup.py) ... done
Collecting requests (from vmprof)
  Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: six in c:\users\auvsl\anaconda3\envs\uwb-jackal\lib\site-packages (from vmprof) (1.16.0)
Collecting pytz (from vmprof)
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting colorama (from vmprof)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting charset-normalizer<4,>=2 (from requests->vmprof)
  Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/91/6e/db0e545302bf93b6dbbdc496dd192c7f8e8c3bb1584acba069256d8b51d4/charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl.metadata
  Using cached charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl.metadata (31 kB)
Collecting idna<4,>=2.5 (from requests->vmprof)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<3,>=1.21.1 (from requests->vmprof)
  Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.metadata
  Using cached urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB)
Collecting certifi>=2017.4.17 (from requests->vmprof)
  Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl.metadata
  Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Using cached charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl (96 kB)
Using cached urllib3-2.0.4-py3-none-any.whl (123 kB)
Building wheels for collected packages: vmprof
  Building wheel for vmprof (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\constants.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\marks.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\merge_point.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\objects.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\parser.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\prettyprinter.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\query.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\upload.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\__init__.py -> build\lib.win-amd64-cpython-311\jitlog
      copying jitlog\__main__.py -> build\lib.win-amd64-cpython-311\jitlog
      creating build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\cli.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\profiler.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\reader.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\show.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\stats.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\upload.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\__init__.py -> build\lib.win-amd64-cpython-311\vmprof
      copying vmprof\__main__.py -> build\lib.win-amd64-cpython-311\vmprof
      creating build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\binary.py -> build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\service.py -> build\lib.win-amd64-cpython-311\vmshare
      copying vmshare\__init__.py -> build\lib.win-amd64-cpython-311\vmshare
      running build_ext
      building '_vmprof' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\AUVSL\anaconda3\envs\UWB-Jackal\include -IC:\Users\AUVSL\anac
onda3\envs\UWB-Jackal\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\
Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x8
6)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcsrc/_vmprof.c /Fobuild\temp.win-amd64-cpython-311\Release\src/_vmprof.obj -DVMPROF_WINDOWS=1 "-I src/" "-I src/libbacktrace"
      _vmprof.c
      src/_vmprof.c(68): warning C4090: '=': different 'const' qualifiers
      src/_vmprof.c(71): warning C4090: '=': different 'const' qualifiers
      src/_vmprof.c(111): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
      src/_vmprof.c(295): error C2039: 'frame': is not a member of '_ts'
      C:\Users\AUVSL\anaconda3\envs\UWB-Jackal\include\cpython/pystate.h(82): note: see declaration of '_ts'
      src/_vmprof.c(295): warning C4047: 'function': 'PyFrameObject *' differs in levels of indirection from 'void **'
      src/_vmprof.c(295): warning C4024: 'vmp_walk_and_record_stack': different types for formal and actual parameter 1
      src/_vmprof.c(295): warning C4022: 'vmp_walk_and_record_stack': pointer mismatch for actual parameter 2
      src/_vmprof.c(295): error C2198: 'vmp_walk_and_record_stack': too few arguments for call
      src/_vmprof.c(299): error C2065: 'ssize_t': undeclared identifier
      src/_vmprof.c(299): error C2146: syntax error: missing ')' before identifier 'routine_ip'
      src/_vmprof.c(299): error C2059: syntax error: ')'
      src/_vmprof.c(299): error C2059: syntax error: ')'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vmprof
  Running setup.py clean for vmprof
Failed to build vmprof
ERROR: Could not build wheels for vmprof, which is required to install pyproject.toml-based projects```
mattip commented 1 year ago

You are trying to install vmprof-0.4.15 which was released in May 2019, over 4 years ago, before the release of python3.8. There is a small chance the latest HEAD might work, you can try to install it with

pip install git+https://github.com/vmprof/vmprof-python
tshirtman commented 1 year ago

The current setup.py indicates python_requires='>=3.6, <3.11' at the moment, and i get the following error (for reference) when i try to override that, while installing for 3.10 works, so installing from source won’t be enough for installation on 3.11.

Requirement already satisfied: requests in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from vmprof==0.4.15) (2.31.0)
Requirement already satisfied: six in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from vmprof==0.4.15) (1.16.0)
Requirement already satisfied: pytz in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from vmprof==0.4.15) (2023.3.post1)
Requirement already satisfied: colorama in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from vmprof==0.4.15) (0.4.6)
Requirement already satisfied: charset-normalizer<4,>=2 in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from requests->vmprof==0.4.15) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from requests->vmprof==0.4.15) (2.9)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from requests->vmprof==0.4.15) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages (from requests->vmprof==0.4.15) (2021.10.8)
Installing collected packages: vmprof
  Running setup.py develop for vmprof
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [66 lines of output]
        running develop
        /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
        !!

                ********************************************************************************
                Please avoid running ``setup.py`` and ``easy_install``.
                Instead, use pypa/build, pypa/installer or other
                standards-based tools.

                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************

        !!
          easy_install.initialize_options(self)
        /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
        !!

                ********************************************************************************
                Please avoid running ``setup.py`` directly.
                Instead, use pypa/build, pypa/installer or other
                standards-based tools.

                See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
                ********************************************************************************

        !!
          self.initialize_options()
        running egg_info
        creating vmprof.egg-info
        writing vmprof.egg-info/PKG-INFO
        writing dependency_links to vmprof.egg-info/dependency_links.txt
        writing entry points to vmprof.egg-info/entry_points.txt
        writing requirements to vmprof.egg-info/requires.txt
        writing top-level names to vmprof.egg-info/top_level.txt
        writing manifest file 'vmprof.egg-info/SOURCES.txt'
        /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/command/sdist.py:126: SetuptoolsDeprecationWarning: `build_py` command does not inherit from setuptools' `build_py`.
        !!

                ********************************************************************************
                Custom 'build_py' does not implement 'get_data_files_without_manifest'.
                Please extend command classes from setuptools instead of distutils.

                See https://peps.python.org/pep-0632/ for details.
                ********************************************************************************

        !!
          self._add_data_files(self._safe_data_files(build_py))
        reading manifest file 'vmprof.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        adding license file 'LICENSE'
        writing manifest file 'vmprof.egg-info/SOURCES.txt'
        running build_ext
        building '_vmprof' extension
        creating build
        creating build/temp.macosx-13-arm64-cpython-311
        creating build/temp.macosx-13-arm64-cpython-311/src
        clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/Users/gpettier/.virtualenvs/compliance-reports/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/_vmprof.c -o build/temp.macosx-13-arm64-cpython-311/src/_vmprof.o -Wno-unused -DVMPROF_APPLE=1 -DVMPROF_UNIX=1 -g -O2 "-I src/" "-I src/libbacktrace"
        src/_vmprof.c:301:53: error: no member named 'frame' in 'struct _ts'; did you mean 'cframe'?
            entry_count = vmp_walk_and_record_stack(tstate->frame, m, SINGLE_BUF_SIZE/sizeof(void*)-1, (int)skip, 0);
                                                            ^~~~~
                                                            cframe
        /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:110:16: note: 'cframe' declared here
            _PyCFrame *cframe;
                       ^
        1 error generated.
        error: command '/usr/bin/clang' failed with exit code 1
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [66 lines of output]
    running develop
    /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    running egg_info
    creating vmprof.egg-info
    writing vmprof.egg-info/PKG-INFO
    writing dependency_links to vmprof.egg-info/dependency_links.txt
    writing entry points to vmprof.egg-info/entry_points.txt
    writing requirements to vmprof.egg-info/requires.txt
    writing top-level names to vmprof.egg-info/top_level.txt
    writing manifest file 'vmprof.egg-info/SOURCES.txt'
    /Users/gpettier/.virtualenvs/compliance-reports/lib/python3.11/site-packages/setuptools/command/sdist.py:126: SetuptoolsDeprecationWarning: `build_py` command does not inherit from setuptools' `build_py`.
    !!

            ********************************************************************************
            Custom 'build_py' does not implement 'get_data_files_without_manifest'.
            Please extend command classes from setuptools instead of distutils.

            See https://peps.python.org/pep-0632/ for details.
            ********************************************************************************

    !!
      self._add_data_files(self._safe_data_files(build_py))
    reading manifest file 'vmprof.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'vmprof.egg-info/SOURCES.txt'
    running build_ext
    building '_vmprof' extension
    creating build
    creating build/temp.macosx-13-arm64-cpython-311
    creating build/temp.macosx-13-arm64-cpython-311/src
    clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/Users/gpettier/.virtualenvs/compliance-reports/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/_vmprof.c -o build/temp.macosx-13-arm64-cpython-311/src/_vmprof.o -Wno-unused -DVMPROF_APPLE=1 -DVMPROF_UNIX=1 -g -O2 "-I src/" "-I src/libbacktrace"
    src/_vmprof.c:301:53: error: no member named 'frame' in 'struct _ts'; did you mean 'cframe'?
        entry_count = vmp_walk_and_record_stack(tstate->frame, m, SINGLE_BUF_SIZE/sizeof(void*)-1, (int)skip, 0);
                                                        ^~~~~
                                                        cframe
    /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:110:16: note: 'cframe' declared here
        _PyCFrame *cframe;
                   ^
    1 error generated.
    error: command '/usr/bin/clang' failed with exit code 1
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
mattip commented 11 months ago

We now have wheels for python 3.11 on windows. Closing.