Wrong dependency when installing OCI using brew
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
Hello,
I installed OCI command using brew as recommended for OSX ( Intel ) but it is generating this error message
$ oci
/usr/local/Cellar/oci-cli/3.51.7/libexec/lib/python3.13/site-packages/oci_cli/cli_util.py:1126: SyntaxWarning: invalid escape sequence '\['
list_type = {'module': complex_type_definition['module'], 'class': re.match('list\[(.*)\]', complex_type_definition['class']).group(1)} # noqa: W605
I found similar error was reported and issue was closed with comment that only Python up to 3.11 is supported.
But if you will run brew info command, you can see that OCI-CLI depends on the Python 3.13
$ brew info oci-cli
==> oci-cli: stable 3.51.7 (bottled), HEAD
Oracle Cloud Infrastructure CLI
https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm
Installed
/usr/local/Cellar/oci-cli/3.51.7 (36,368 files, 414.4MB) *
Poured from bottle using the formulae.brew.sh API on 2025-02-18 at 09:47:41
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/oci-cli.rb
License: UPL-1.0 OR Apache-2.0
==> Dependencies
Required: certifi ✔, cryptography ✘, libyaml ✔, python@3.13 ✘
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 3,798 (30 days), 8,787 (90 days), 36,853 (365 days)
install-on-request: 3,796 (30 days), 8,780 (90 days), 36,789 (365 days)
build-error: 3 (30 days)
I manage to switch my global ( system ) Python version to 3.11 but it will be nice to have a proper dependency for brew
regards,
Marcin
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the Homebrew formula linked in the report and the Python-version support noted in the issue; compare its declared dependency with OCI CLI's supported versions. Verify the dependency with brew info oci-cli and a fresh installation; done means the formula no longer selects an unsupported Python version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100