Closed Marius-Juston closed 11 months 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
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.
We now have wheels for python 3.11 on windows. Closing.
Hello I am unable to install vmprof for my python 3.11, this is the error I am getting