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

Installation issues with "Operation not permitted" and imblearn #12823

Closed
1 task done
ferdinandraja opened this issue Jul 4, 2024 · 2 comments
Closed
1 task done

Installation issues with "Operation not permitted" and imblearn #12823

ferdinandraja opened this issue Jul 4, 2024 · 2 comments
Labels
type: support User Support

Comments

@ferdinandraja
Copy link

Description

Whenever I want to install something from pip, I'll always get a warning. The output is :
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
ERROR: Could not find a version that satisfies the requirement imblearn (from versions: none)
ERROR: No matching distribution found for imblearn

Expected behavior

No response

pip version

24.0

Python version

3.11.4

OS

MacOS Ventura

How to Reproduce

Whenever I use pip, this error always come

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/
ERROR: Could not find a version that satisfies the requirement imblearn (from versions: none)
ERROR: No matching distribution found for imblearn

Code of Conduct

@ferdinandraja ferdinandraja added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jul 4, 2024
@ichard26 ichard26 added type: support User Support and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jul 8, 2024
@ichard26
Copy link
Member

ichard26 commented Jul 8, 2024

Hello, pip seems to have having trouble opening a socket or using the appropriate system APIs needed to connect to PyPI. This isn't an issue with pip but likely an issue with your system configuration (perhaps you're using some heavily locked user account).

To track down the root issue, you could try fetching one of PyPI's pages from a short Python script using requests (which pip uses internally for making HTTP requests).

import requests

resp = requests.get("https://pypi.org/simple/pip")
resp.raise_for_status()
print(resp.status_code, resp.text[:300])

This should return something similar to...

200 <!DOCTYPE html>
<html>
  <head>
    <meta name="pypi:repository-version" content="1.1">
    <title>Links for pip</title>
  </head>
  <body>
    <h1>Links for pip</h1>
<a href="https://files.pythonhosted.org/packages/3d/9d/1e313763bdfb6a48977b65829c6ce2a43eaae29ea2f907c8bbef024a7219/pip-0.2.tar.gz#sh

In either respect, we have limited capacity to provide user support on the issue tracker. You will probably be better served by reaching out to peers or help forums, such as Python Discuss help category, /r/learnpython on reddit, Python Discord's #python-help channel, #python on Libera.chat (IRC), python-list or python-tutor mailing lists, or StackOverflow.

@ichard26
Copy link
Member

Closing due to a lack of a response. As mentioned before, we have a limited capacity to provide user support so alternative forums are recommended.

@ichard26 ichard26 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2024
@pradyunsg pradyunsg changed the title WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', PermissionError(1, 'Operation not permitted'))': /simple/imblearn/ Installation issues with "Operation not permitted" and imblearn Jul 31, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

2 participants