Error installing slipcover with Python 3.11
See original GitHub issueHi,
Trying to install slipcover
with pip 22.3.1
and Python 3.11.0
gives an error with the following output:
$ pip3.11 install slipcover
Collecting slipcover
Using cached slipcover-0.2.0.tar.gz (28 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: tabulate in /usr/local/lib/python3.11/site-packages (from slipcover) (0.9.0)
Building wheels for collected packages: slipcover
Building wheel for slipcover (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-cpython-311
creating build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/slipcover.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/__init__.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/branch.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/bytecode.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/__main__.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
running build_ext
building 'slipcover.tracker' extension
creating build/temp.macosx-11-x86_64-cpython-311
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c tracker.cxx -o build/temp.macosx-11-x86_64-cpython-311/tracker.o -std=c++17 -arch x86_64 -arch arm64 -arch arm64e
**tracker.cxx:4:10: fatal error: 'pyptr.h' file not found
#include "pyptr.h"
^~~~~~~~~
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: Failed building wheel for slipcover
Running setup.py clean for slipcover
Failed to build slipcover
Installing collected packages: slipcover
Running setup.py install for slipcover ... error
error: subprocess-exited-with-error
× Running setup.py install for slipcover did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running install
/usr/local/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-cpython-311
creating build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/slipcover.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/__init__.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/branch.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/bytecode.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
copying slipcover/__main__.py -> build/lib.macosx-11-x86_64-cpython-311/slipcover
running build_ext
building 'slipcover.tracker' extension
creating build/temp.macosx-11-x86_64-cpython-311
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c tracker.cxx -o build/temp.macosx-11-x86_64-cpython-311/tracker.o -std=c++17 -arch x86_64 -arch arm64 -arch arm64e
**tracker.cxx:4:10: fatal error: 'pyptr.h' file not found
#include "pyptr.h"
^~~~~~~~~
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: legacy-install-failure
× Encountered error while trying to install package.
╰─> slipcover
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Looks to be an issue with the slipcover.tracker extension? I’m on macOS Big Sur 11.7.1 if that makes any difference. Let me know if I can provide any further information.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5
Top Results From Across the Web
What's New In Python 3.11 — Python 3.11.1 documentation
This article explains the new features in Python 3.11, compared to 3.10. For full details, see the ... PEP 657: Fine-grained error locations...
Read more >Fails to build on Python 3.11 - longintrepr.h: No such file or ...
Failed to build aiohttp yarl error: subprocess-exited-with-error × Building wheel for aiohttp (pyproject.toml) did not run successfully.
Read more >Installation error of scikit-image in python-3.11.0
In my case, this problem was solved via installing a wheel file from: · In my case, I download the cp311 windows amd64...
Read more >What's New in Python 3.11 - YouTube
0:03:45 Python Version History 0:06:07 New Features in Python 3.10 0:07:40 Installing Python 3.11 0:08:48 Changes to exceptions and error ...
Read more >Installation — Astropy v5.2
If you get a PermissionError this means that you do not have the required administrative access to install new packages to your Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll issue an official release soon, but in the meantime you can try installing with
pip install -i https://test.pypi.org/simple/ slipcover==0.2.0.dev202211211045
Hi, yes, this is a known issue with the source packages… it’s been fixed, but I hadn’t generated a new distribution yet. Working on it…