Package Details: oci-cli 3.50.3-1

Git Clone URL: https://aur.archlinux.org/oci-cli.git (read-only, click to copy)
Package Base: oci-cli
Description: Command line interface for Oracle Cloud Infrastructure
Upstream URL: https://github.com/oracle/oci-cli
Licenses: Apache-2.0 OR UPL-1.0
Submitter: meanjollies
Maintainer: meanjollies
Last Packager: meanjollies
Votes: 7
Popularity: 0.001635
First Submitted: 2018-07-01 18:08 (UTC)
Last Updated: 2024-12-11 19:02 (UTC)

Latest Comments

1 2 Next › Last »

grawity commented on 2024-11-26 11:17 (UTC)

Finally figured out why it would not run on my laptop:

$ oci
[...]
pkg_resources.DistributionNotFound: The 'types-python-dateutil>=2.8.10' distribution was not found and is required by arrow

It turns out that this was caused by Python loading /usr/bin/services.py from the impacket package, instead of the intended /usr/lib/python3.12/site-packages/services/__init__.py from oci-cli.

meanjollies commented on 2024-08-07 22:35 (UTC)

@MarsSeed Done - thanks! I suspect this will go away soon with the expectation that Oracle will replace it with the new oracledb module in a later release.

MarsSeed commented on 2024-08-07 19:08 (UTC)

@meanjollies, I'd like to ask you to please change the optdepend python-cx_oracle to python-cx-oracle.

As the former package is long abandoned and fails to build in a clean chroot environment, whereas the latter is still maintained and builds fine.

hajime commented on 2024-05-13 07:33 (UTC) (edited on 2024-05-13 07:33 (UTC) by hajime)

thank you for supporting.

finaly I could follow what you are writing.

aur fetch python-circuitbreaker
cd python-circuitbreaker
makepkg -C
sudo pacman -U python-circuitbreaker-2.0.0-1-x86_64.pkg.tar.zst

same to python-terminaltables.

then it's working now. thank you.

meanjollies commented on 2024-05-09 22:02 (UTC) (edited on 2024-05-09 22:02 (UTC) by meanjollies)

I'm not sure what your aur command is doing or where it comes from (possibly a helper?), but you need to make sure that the source it's building from is not cached. Clean up any cached build files first. You should be performing a clean build.

hajime commented on 2024-05-09 10:27 (UTC)

I've tryed to done that "Rebuild and install any python 3.11 packages" but when i install package again, that package gose to /urs/lib/python3.11.

Did i miss understand about "Rebuild and install".

could you give me some example command?

this is what I tryed

pacman -R python-circuitbreaker
aur sync python-circuitbreaker --rebuild

meanjollies commented on 2024-05-09 09:42 (UTC)

The other solution is my previous post. Rebuild and install any Python 3.11 packages.

hajime commented on 2024-05-09 09:39 (UTC)

I had same issue.

  • python-circuitbreaker
  • python-terminaltables

both of them installed to /usr/lib/python3.11. but my python version is 3.12.

so ended up with this commands works.

pip install terminaltables
pip install circuitbreaker

I know it's not good. but I could not find other solution.

meanjollies commented on 2024-04-28 17:26 (UTC)

oci-cli appears to work fine with python 3.12. You likely need to rebuild all your python3-based packages from the AUR, including python-oci and oci-cli. Run pacman -Qoq /usr/lib/python3.11. Rebuild and reinstall each package output from that list.

jthvai commented on 2024-04-28 03:57 (UTC) (edited on 2024-04-28 04:01 (UTC) by jthvai)

Edit: oci-cli does not support python 3.12, which is what the python package is now.

A solution may be to explicitly depend on python311, but I'm not sure whether it would play nice with all the rebuilt libraries.


After the python upgrade to 3.12 and many python libraries (239 on my system) being rebuit today, oci now fails with the stack trace below. Might this be an upstream issue?

/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/oci", line 33, in <module>
    sys.exit(load_entry_point('oci-cli==3.40.0', 'console_scripts', 'oci')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/oci", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for oci-cli