Package Details: oci-cli 3.40.2-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.159542
First Submitted: 2018-07-01 18:08 (UTC)
Last Updated: 2024-05-07 18:54 (UTC)

Latest Comments

1 2 Next › Last »

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

meanjollies commented on 2024-03-19 13:52 (UTC)

Are you using an AUR helper that could be mangling the PKGBUILD? If not, you must have modified the PKGBUILD unintentionally. I cannot reproduce this, and can confirm that there are no colons, slashes, or hyphens in pkgver.

laasonen commented on 2024-03-19 12:34 (UTC)

I'm getting this error:

==> Making package: oci-cli 3.37.13-1 (2024-03-19T14:32:11 EET)
==> Retrieving sources...
  -> Downloading oci-cli-3.37.13.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 5110k    0 5110k    0     0  3896k      0 --:--:--  0:00:01 --:--:-- 6772k
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    oci-cli-3.37.13.tar.gz ... Passed
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.

meanjollies commented on 2023-02-16 17:40 (UTC)

@Omar007 This should be good now. Oracle re-released 3.23.0 that included changes.

Omar007 commented on 2023-02-16 17:11 (UTC) (edited on 2023-02-16 17:13 (UTC) by Omar007)

I'm getting a checksum mismatch with PKGBUILD at commit 87d381bc16ab (latest as of writing). The sha256sum for oci-cli-3.23.0.tar.gz on my end is 4786d4b0df43a22ff5224664477d2a3c4e8e04bc3815f48ff976cc8eb943794b. Can anyone confirm this mismatch?

meanjollies commented on 2021-12-30 20:06 (UTC)

The python-click 8.x issue should be resolved for now, thanks to this proposed workaround.

meanjollies commented on 2021-10-17 18:22 (UTC)

Pinning python-click to < 8 will not solve this, as [community] does not contain any 7.x releases. This is solely on Oracle to properly support python-click 8.x, which has been out for a year now. A PKGBUILD for a 7.x release can be found here. The concern with using this is that there are many other packages that depend on python-click that may be expecting at least one feature introduced in the 8.x release. It's a messy situation, and I'm not entirely sure how to resolve this, so I would be open to ideas.

jpetazzo commented on 2021-10-17 13:21 (UTC)

The dependency on Click should be pinned; the upstream setup.py file pins it to 7.1.2, but the latest version is 8.X, which is incompatible with the OCI CLI code.

This causes errors like the following:

ERROR: Profile '<DEFAULT>' not found in config file /home/.../.oci/config

See https://github.com/oracle/oci-cli/issues/440 for details.

Thank you!

Cirelli94 commented on 2021-01-02 17:42 (UTC)

Thanks. I rebooted, reinstalled and the dependency problem it's solved.