Skip to content

[BUG] Python 3.8.5 broken #2050

@jamietre

Description

@jamietre

Describe the bug

Python 3.8.5 breaks many things

Steps to Reproduce the Problem

  1. Upgrade from 3.8.4. to 3.8.5
  2. python3 -m pip install camelcase
    Error:
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/site-packages/pip/__main__.py", line 19, in <module>
    sys.exit(_main())
  File "/usr/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/usr/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand
  File "/usr/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 15, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "/usr/lib/python3.8/site-packages/pip/_internal/index/package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "/usr/lib/python3.8/site-packages/pip/_internal/index/collector.py", line 12, in <module>
    from pip._vendor import html5lib, requests
  File "/usr/lib/python3.8/site-packages/pip/_vendor/requests/__init__.py", line 43, in <module>
    from pip._vendor import urllib3
  File "/usr/lib/python3.8/site-packages/pip/_vendor/urllib3/__init__.py", line 7, in <module>
    from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
  File "/usr/lib/python3.8/site-packages/pip/_vendor/urllib3/connectionpool.py", line 29, in <module>
    from .connection import (
  File "/usr/lib/python3.8/site-packages/pip/_vendor/urllib3/connection.py", line 68, in <module>
    class HTTPConnection(_HTTPConnection, object):
  File "/usr/lib/python3.8/site-packages/pip/_vendor/urllib3/connection.py", line 96, in HTTPConnection
    default_socket_options = [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]
AttributeError: module 'socket' has no attribute 'TCP_NODELAY'

Running python "awslocal" script (python wrapper around aws cli):

'Namespace' object has no attribute 'cli_binary_format'

Expected behavior:

Python scripts work

Dowgrading to 3.8.4, everything works again.

Additional Context: Operating System, Screenshots

  • OS: [e.g. Windows 10 Pro version 1909 64bit]

I am not a python developer so I don't have a lot of context to troubleshoot or provide additional details; basically everything I use that depends on Python stopped working after I upgraded this morning.

[Edit] Quick way to downgrade:

pacman -U http://repo.msys2.org/msys/x86_64/python-3.8.4-1-x86_64.pkg.tar.zst

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions