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

[BUG] Python 3.8.5 broken #2050

Closed
jamietre opened this issue Jul 21, 2020 · 9 comments · Fixed by #2054
Closed

[BUG] Python 3.8.5 broken #2050

jamietre opened this issue Jul 21, 2020 · 9 comments · Fixed by #2054

Comments

@jamietre
Copy link

jamietre commented Jul 21, 2020

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
@jamietre jamietre added the bug label Jul 21, 2020
@alexeast99
Copy link

alexeast99 commented Jul 21, 2020

I'm having this problem as well. How did you downgrade to Python 3.8.4?
Edit: Take a look here for how to downgrade.

@alexeast99
Copy link

alexeast99 commented Jul 21, 2020

I'm not sure how you installed pip without also installing Python 3.8.5 as a dependency. I'm able to remove Python 3.8.5 and install Python 3.8.4, but when I install python-pip it reverts back to using Python 3.8.5. I would really appreciate some help!

Update: To use pip with Python 3.8.4, you must download the pip tarball from the MSYS2 old packages. Check out the link in the comment above^

@jamietre
Copy link
Author

jamietre commented Jul 21, 2020 via email

@feature-not-a-bug
Copy link

feature-not-a-bug commented Jul 22, 2020

I was able to downgrade using this:

pacman -U /var/cache/pacman/pkg/python-3.8.4-1-x86_64.pkg.tar.zst
pacman -U http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-pip-20.0.2-1-any.pkg.tar.xz

If you don't have the old version of python in your local cache then just swap the link for the remote repo

kubkon added a commit to kubkon/zig that referenced this issue Jul 22, 2020
kubkon added a commit to kubkon/zig that referenced this issue Jul 22, 2020
andrewrk pushed a commit to ziglang/zig that referenced this issue Jul 22, 2020
Luukdegram pushed a commit to Luukdegram/zig that referenced this issue Jul 22, 2020
@lazka
Copy link
Member

lazka commented Jul 23, 2020

The problem is that the latest msys2-runtime doesn't provide TCP_NODELAY anymore for some reason.

@lazka
Copy link
Member

lazka commented Jul 23, 2020

lazka added a commit to lazka/MSYS2-packages that referenced this issue Jul 23, 2020
@lazka
Copy link
Member

lazka commented Jul 23, 2020

Potential fix: #2054

@jamietre
Copy link
Author

Looks like the update has been published, works great again, thanks!

@lazka
Copy link
Member

lazka commented Jul 24, 2020

Yes, thanks for testing :)

kubkon added a commit to kubkon/zig that referenced this issue Oct 4, 2020
Since msys2/MSYS2-packages#2050 was fixed, we can now revert back to the
original install script.

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
kubkon added a commit to ziglang/zig that referenced this issue Oct 4, 2020
Since msys2/MSYS2-packages#2050 was fixed, we can now revert back to the
original install script.

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants