Skip to content

Cannot install with python 3.11 #23

@ryanc-bs

Description

@ryanc-bs

Summary

I cannot install github package using python 3.11

Reproduction Steps

pyenv global 3.11
pip install github

Minimal Reproducible Code

No response

Expected Results

Package installed successfully

Actual Results

...
 aiohttp/_websocket.c:198:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.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 aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

Looks like the issue is that the github is pinning an older version of aiohttp which doesn't support python 3.11. Should be fixable by upgrading to the latest v3.8.6 for aiohttp.

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

aio-libs/aiohttp#6600

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions