-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Improve handling of stale homebrew/core clones #15775
Comments
The likely explanation is that
Try doing
and see if that helps. |
That did the trick! Thanks for the quick reply. I see |
You should be getting this warning from
Not really sure why that didn't show up for you. What's the output of |
Sounds like this should be off? I have no memory of enabling this (although I've had Homebrew installed for forever). |
Up to you really. You can leave it on if it's not causing you problems. Reopening this because it seems like there is still a bug or three here:
Not 100% certain if any/all/none of the above are bugs, but we should probably do something to try to improve them. |
brew postinstall
fails for [email protected]
@carlocab is this something we've ever done? Agreed the others were bugs. |
Should be resolved by #15780. Looking at |
Should be resolved by #15781 |
Y'all are awesome 🔥 |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Note: as seen above, my
brew doctor
does output some warnings, but these are all PHP-related which is not dependent on Python.Install
[email protected]
as a dependency ofbrew install aws-sam-cli
.Interestingly, the installer is looking for
setuptools-67.6.1-py3-none-any.whl
:Navigating to the directory, I see a similarly-named file:
Renaming this file to match the file it's looking for then yields a missing
pip-23.0.1-py3-none-any.whl
:Renaming
pip-23.2.1-py3-none-any.whl
to this filename then yields a missingwheel-0.40.0-py3-none-any.whl
:I don't use Python outside of this so I'm not really sure what these errors are even about, but it seems like some sort of incorrectly-versioned dependency is being installed. I do have
[email protected]
installed successfully.What happened (include all command output)?
$ brew install [email protected]
Running
brew update --auto-update
...==> Auto-updated Homebrew!
==> Updated Homebrew from 4c612ab to f56f27b.
No changes to formulae or casks.
==> Fetching [email protected]
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.11/manifests/3.11.4_1-1
##################################################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.11/blobs/sha256:0b34eff80378cb1157e1fefee56a89160e7a805226c32a2f24b09d5d17c1710e
##################################################################################################################################### 100.0%
==> Pouring [email protected]_1.arm64_ventura.bottle.1.tar.gz
==> /opt/homebrew/Cellar/[email protected]/3.11.4_1/bin/python3.11 -Im ensurepip
==> /opt/homebrew/Cellar/[email protected]/3.11.4_1/bin/python3.11 -Im pip install -v --no-deps --no-index --upgrade --isolated --target=/opt/home
Last 15 lines from /Users/sheng/Library/Logs/Homebrew/[email protected]/post_install.02.python3.11:
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 643, in _prepare_linked_requirement
hash = hash_file(local_file.path)[0].hexdigest()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/utils/misc.py", line 616, in hash_file
with open(path, "rb") as f:
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ensurepip/_bundled/setuptools-67.6.1-py3-none-any.whl'
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall [email protected]
==> Caveats
Python has been installed as
/opt/homebrew/bin/python3
Unversioned symlinks
python
,python-config
,pip
etc. pointing topython3
,python3-config
,pip3
etc., respectively, have been installed into/opt/homebrew/opt/[email protected]/libexec/bin
You can install Python packages with
pip3 install
They will install into the site-package directory
/opt/homebrew/lib/python3.11/site-packages
tkinter is no longer included with this formula, but it is available separately:
brew install [email protected]
gdbm (
dbm.gnu
) is no longer included in this formula, but it is available separately:brew install [email protected]
dbm.ndbm
changed database backends in Homebrew Python 3.11.If you need to read a database from a previous Homebrew Python created via
dbm.ndbm
,you'll need to read your database using the older version of Homebrew Python and convert to another format.
dbm
still defaults todbm.gnu
when it is installed.For more information about Homebrew and Python, see: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺 /opt/homebrew/Cellar/[email protected]/3.11.4_1: 3,281 files, 61.9MB
==> Running
brew cleanup [email protected]
...Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see
man brew
).$ brew postinstall [email protected]
==> Postinstalling [email protected]
==> /opt/homebrew/Cellar/[email protected]/3.11.4_1/bin/python3.11 -Im ensurepip
==> /opt/homebrew/Cellar/[email protected]/3.11.4_1/bin/python3.11 -Im pip install -v --no-deps --no-index --upgrade --isolated --target=/opt/homebrew/lib/python3.11/site-packages /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ensurepip/_bundled/setuptools-67.6.1-py3-none-any.whl /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/en
Last 15 lines from /Users/sheng/Library/Logs/Homebrew/[email protected]/post_install.02.python3.11:
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 643, in _prepare_linked_requirement
hash = hash_file(local_file.path)[0].hexdigest()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pip/_internal/utils/misc.py", line 616, in hash_file
with open(path, "rb") as f:
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ensurepip/_bundled/setuptools-67.6.1-py3-none-any.whl'
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall [email protected]
What did you expect to happen?
Successful install with no errors.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: