brew create --python
failed with No available formula with the name "[email protected]"
#19240
Open
Description
brew doctor
output
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
todesk
Verification
- My "
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue. - I ran
brew update
twice and am still able to reproduce my issue. - This issue's title and/or description do not reference a single formula e.g.
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
brew config
output
HOMEBREW_VERSION: 4.4.20-37-g1117ebc
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1117ebc248035ddee17f7838ebb1871e783e53fd
Last commit: 3 hours ago
Branch: master
Core tap HEAD: 2e9d7b588698f6b3cf1ccb7e7d9b5121c0013c4f
Core tap last commit: 63 minutes ago
Core cask tap HEAD: cc234a041f404914379ee599a4b9913fab17cbb2
Core cask tap last commit: 3 hours ago
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: code --wait
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_INSTALL_FROM_API: set
HOMEBREW_SORBET_RUNTIME: set
http_proxy: http://127.0.0.1:1087
https_proxy: http://127.0.0.1:1087
Homebrew Ruby: 3.3.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.48.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: 16.2
Rosetta 2: false
What were you trying to do (and why)?
To create a formula for a python app named auto-coder, but failed.
What happened (include all command output)?
First, I tried brew create --python
, it failed:
brew create --verbose --set-name auto-coder --set-license Apache-2.0 --python https://files.pythonhosted.org/packages/c3/78/102253fa844920e9c25d928eba36956ebeb65c7dcf89474ec56bcd994b24/auto_coder-0.1.243.tar.gz
==> Downloading https://files.pythonhosted.org/packages/c3/78/102253fa844920e9c25d928eba36956ebeb65c7dcf89474ec56bcd994b24/auto_coder-0.1.243.tar.gz
Already downloaded: /Users/dz/Library/Caches/Homebrew/downloads/cd3a40b4ab748b4e617279215c87cfedf0be2c0d8d7c45f44494a842c651902e--auto_coder-0.1.243.tar.gz
==> Verifying checksum for 'cd3a40b4ab748b4e617279215c87cfedf0be2c0d8d7c45f44494a842c651902e--auto_coder-0.1.243.tar.gz'
Warning: Cannot verify integrity of 'cd3a40b4ab748b4e617279215c87cfedf0be2c0d8d7c45f44494a842c651902e--auto_coder-0.1.243.tar.gz'.
No checksum was provided.
For your reference, the checksum is:
sha256 "e25645b44b3e36e6d673f61a5e50d198cd3804079d9e955bbb0b449bc05b8da1"
Error: No available formula with the name "[email protected]". Did you mean python-yq, [email protected], [email protected], [email protected], [email protected], [email protected] or [email protected]?
Then I tried to create auto-coder
rb file manually:
class AutoCoder < Formula
include Language::Python::Virtualenv
desc "AI-powered interactive coding assistant"
homepage "https://auto-coder.chat/"
url "https://files.pythonhosted.org/packages/c3/78/102253fa844920e9c25d928eba36956ebeb65c7dcf89474ec56bcd994b24/auto_coder-0.1.243.tar.gz"
sha256 "e25645b44b3e36e6d673f61a5e50d198cd3804079d9e955bbb0b449bc05b8da1"
license "Apache-2.0"
depends_on "[email protected]"
def install
venv = virtualenv_install_with_resources
end
test do
system "false"
end
end
And tried brew update-python-resources
to update the resources, it failed again:
brew update-python-resources --verbose --debug auto-coder
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading auto-coder
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading [email protected]
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading [email protected]
==> Retrieving PyPI dependencies for "auto-coder==0.1.226"...
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading [email protected]
ERROR: Could not find a version that satisfies the requirement Spire.Doc (from auto-coder) (from versions: none)
ERROR: No matching distribution found for Spire.Doc
Error: Unable to determine dependencies for "auto-coder==0.1.226" because of a failure when running
`/opt/homebrew/opt/[email protected]/libexec/bin/python -m pip install -q --disable-pip-version-check --dry-run --ignore-installed --report=/dev/stdout auto-coder==0.1.226`.
Please update the resources manually.
Error: Kernel.exit
/opt/homebrew/Library/Homebrew/extend/kernel.rb:115:in `exit'
/opt/homebrew/Library/Homebrew/extend/kernel.rb:115:in `odie'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/opt/homebrew/Library/Homebrew/utils/pypi.rb:442:in `pip_report'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/opt/homebrew/Library/Homebrew/utils/pypi.rb:340:in `update_python_resources!'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/opt/homebrew/Library/Homebrew/dev-cmd/update-python-resources.rb:39:in `block in run'
/opt/homebrew/Library/Homebrew/dev-cmd/update-python-resources.rb:38:in `each'
/opt/homebrew/Library/Homebrew/dev-cmd/update-python-resources.rb:38:in `run'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11796/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/opt/homebrew/Library/Homebrew/brew.rb:95:in `<main>'
Later, i tried all methods on https://docs.brew.sh/Python-for-Formula-Authors, including homebrew-pypi-poet
:
poet -f auto-coder
But It didn't go well, some resources missing like this:
...
resource "dashscope" do
url ""
sha256 ""
end
resource "google-generativeai" do
url ""
sha256 ""
end
resource "ray" do
url ""
sha256 ""
end
...
Then I found this: tdsmith/homebrew-pypi-poet#74
I got puzzle, It seems like a loop!
What did you expect to happen?
I expected to create a formula for a python app with the right resources.
Step-by-step reproduction instructions (by running brew
commands)
brew create --verbose --set-name auto-coder --set-license Apache-2.0 --python https://files.pythonhosted.org/packages/c3/78/102253fa844920e9c25d928eba36956ebeb65c7dcf89474ec56bcd994b24/auto_coder-0.1.243.tar.gz
brew update-python-resources --verbose --debug auto-coder
Activity