Closed dishantsharma1988 closed 5 months ago
Hi @dishantsharma1988, that does not seem to be a problem with setuptools.
Actually from the logs you provided, it seems that setuptools
is not even installed in the virtual environment being used for building the package.
Please do note that one thing is the "global Python environment" and another, completely different thing, is the environment used by pip
for the build - so it does not matter if setuptools is installed in your global environment or not, what actually counts is the state of the "build environment". You can read more about that in pip's docs.
I suggest trying again after making sure that pip has connectivity and that it can access PyPI[^1]. The lack of connectivity and/or error when downloading the packages seem to be at the heart of the problem you are experiencing.
[^1]: There are many things that can be happening... misconfiguration of the indexes used by pip
, network problems, firewall, etc... But those are not related to setuptools
itself.
hi thanks for your reply but I am doing it on my local and I do have setuptools installed if you see below : pip show setuptools Name: setuptools Version: 69.5.0 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://github.com/pypa/setuptools Author: Python Packaging Authority Author-email: @.*** License: Location: C:\Users\dishants\AppData\Roaming\Python\Python311\site-packages Requires: Required-by: imageio-ffmpeg, setuptools-rust
Regards, Dishant Sharma
On Thu, Jun 13, 2024 at 12:19 PM Anderson Bravalheri < @.***> wrote:
Hi @dishantsharma1988 https://github.com/dishantsharma1988, that does not seem to be a problem with setuptools.
Actually from the logs you provided, it seems that setuptools is not even installed in the virtual environment being used for building the package.
Please do note that one thing is the "global Python environment" and another, completely different thing, is the environment used by pip for the build - so it does not matter if setuptools is installed in your global environment or not, what actually counts is the state of the "build environment". You can read more about that in pip's docs https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#build-isolation .
I suggest trying again after making sure that pip has connectivity and that it can access PyPI. The lack of connectivity and/or error when downloading the packages seem to be at the heart of the problem you are experiencing.
— Reply to this email directly, view it on GitHub https://github.com/pypa/setuptools/issues/4419#issuecomment-2166143584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVNBMCUH4IDAEA6KMHGODJDZHHBC5AVCNFSM6AAAAABJIOROSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGE2DGNJYGQ . You are receiving this because you were mentioned.Message ID: @.***>
I do have setuptools installed if you see below.
Hi @dishantsharma1988, please see my previous comment that mentions why that is not relevant for the way pip
works. In the end of the day, effectively you do not have setuptools
installed where it matters (i.e. inside the "build environment").
That happens because pip
will create from scratch a complete fresh "throw away" build environment just for the build (and ignore anything else you already have installed).
sorry I am not able to understand this point, can you explain it step by step as I am trying it on my local
Thanks Dishant Sharma
On Thu, Jun 13, 2024 at 1:07 PM Anderson Bravalheri < @.***> wrote:
I do have setuptools installed if you see below.
Hi @dishantsharma1988 https://github.com/dishantsharma1988, please see my previous comment that mentions why that is not relevant for the way pip works.
— Reply to this email directly, view it on GitHub https://github.com/pypa/setuptools/issues/4419#issuecomment-2166323068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVNBMCUCZSXPMVWEBJ47PYLZHHGWJAVCNFSM6AAAAABJIOROSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGMZDGMBWHA . You are receiving this because you were mentioned.Message ID: @.***>
setuptools version
69.5.0
Python version
3.11.1
OS
windows VS terminal
Additional environment information
No response
Description
I am trying to install package of openai-whispe using pip install openai-whisper -i https://pypi.python.org/simple
I am already having a version of setuptools greater than what exception is complaining about but still not letting me install. Please see below
Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [7 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020969B6B410>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020969BF1CD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020969BF26D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020969BF3250>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000020969BF3E50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none) ERROR: No matching distribution found for setuptools>=40.8.0 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. PS C:\Users\dishants\OneDrive - AMDOCS\Documents\GEN AI\Code Review tool> pip show setuptools Name: setuptools Version: 69.5.0 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://github.com/pypa/setuptools Author: Python Packaging Authority Author-email: distutils-sig@python.org License: Location: C:\Users\dishants\AppData\Roaming\Python\Python311\site-packages Requires: Required-by: imageio-ffmpeg, setuptools-rust PS C:\Users\dishants\OneDrive - AMDOCS\Documents\GEN AI\Code Review tool> python --version
Python 3.11.1
Expected behavior
it should allow to install
How to Reproduce
try installing openai-whisper using setuptools 69.5.0
Output
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none) ERROR: No matching distribution found for setuptools>=40.8.0 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.