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

Error installing slipcover with Python 3.11 #34

Closed
dscrofts opened this issue Nov 21, 2022 · 5 comments
Closed

Error installing slipcover with Python 3.11 #34

dscrofts opened this issue Nov 21, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@dscrofts
Copy link

Hi,

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.

@jaltmayerpizzorno jaltmayerpizzorno added the bug Something isn't working label Nov 21, 2022
@jaltmayerpizzorno jaltmayerpizzorno self-assigned this Nov 21, 2022
@jaltmayerpizzorno
Copy link
Collaborator

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...

@jaltmayerpizzorno
Copy link
Collaborator

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

@jaltmayerpizzorno
Copy link
Collaborator

I'm sorry, I'm seeing some issues with 3.11 specificially... maybe give me another few mins to look at it first.

@jaltmayerpizzorno
Copy link
Collaborator

Still looking, but I think so far that it's just tests being brittle (and Python 3.11 having removed some things that were there in 3.11b4).

@jaltmayerpizzorno
Copy link
Collaborator

Yea, I only found test issues (some are brittle and broke with all the changes in 3.11). The builds above should be good until we make "official" ones.

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

2 participants