Skip to content

PIP installation fails on PyGithub: use_2to3 is invalid. #144

@orens

Description

@orens

I am trying to install webdiff and ran into problems:

➜  ~ pip install webdiff
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting webdiff
  Using cached webdiff-0.15.0-py3-none-any.whl (1.4 MB)
Collecting binaryornot
  Using cached binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
Collecting PyGithub==1.25.2
  Using cached PyGithub-1.25.2.tar.gz (2.6 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in PyGithub setup command: use_2to3 is invalid.
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
➜  ~ pip --version
pip 22.0.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

pip install PyGithub succeeds, and installs V1.55. pip install PyGithub==1.25.2 fails the same way, so I think the problem can be resolved with updated dependencies.

Please LMK if there's any other info I can provide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions