oracle / oracle/oci-cli

Wrong dependency when installing OCI using brew

Open
#910 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.