oci-cli
oci-cli copied to clipboard
Error during installation
ubuntu20. 04 An error is reported during installation. How to solve it?
===> Currently supported optional packages are: ['db (will install cx_Oracle)']
What optional CLI packages would you like to be installed (comma separated names; press enter if you don't need any optional packages)?:
-- The optional packages installed will be ''.
-- Executing: ['', 'apt-get', 'update']
-- System was unable to use venv, is going to download and create virtualenv.
-- Downloading virtualenv package from https://github.com/pypa/get-virtualenv/blob/20.6.0/public/virtualenv.pyz?raw=true.
-- Downloaded virtualenv package to /tmp/tmpx4leus3o/virtualenv-20.6.0.pyz.
-- Checksum of /tmp/tmpx4leus3o/virtualenv-20.6.0.pyz OK.
-- Executing: ['/usr/bin/python3', 'virtualenv-20.6.0.pyz', '/root/lib/oracle-cli']
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "virtualenv-20.6.0.pyz/main.py", line 168, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/oci_cli_install_tmp_HKcx", line 722, in
you can try apt remove python3 && apt autoremove and bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
same issue ,it still doesn't work and report the same error. Thanks!
I had the same issue. Any workaround or solution for this one? Thank you!
Debian 11.2 was getting an error on default install. The suggestion from above worked for me:
apt remove python3 && apt autoremove -y
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
I saw this in the Ubuntu 22.04 container. It seems to happen when you don't have the python3-pip package (and its gazillion dependencies) installed.
Rather than removing python3 and all of its dependencies (which could break other things you have installed), just install the python3-pip package and run the oci-cli installer again:
apt -y install python3-pip
Closing the issue as we have made required changes in code for this issue.