Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question on OCI CLI configuration #10

Open
dhoogfr opened this issue Jun 19, 2023 · 7 comments
Open

question on OCI CLI configuration #10

dhoogfr opened this issue Jun 19, 2023 · 7 comments

Comments

@dhoogfr
Copy link

dhoogfr commented Jun 19, 2023

I already have the OCI CLI installed on my workstation via pip.
After I installed VS Code toolkit, I keeps asking me if I want to install the OCI CLI as part of the toolkit

Is there a way to disable this and still have the CLI integration functioning within VS Code?
The installation was done in the default directories and are the same as the integration has as default.
So would actually expect the integration to notice that these are already installed

@NiviPari
Copy link

@dhoogfr what is the OS being used ?

@dhoogfr
Copy link
Author

dhoogfr commented Jun 20, 2023

@NiviPari The OS is Linux (Linux Mint / Ubuntu)

@jyotisaini
Copy link

Thanks for reporting the issue @dhoogfr. We do check if the user has the OCI CLI installed already. We will try to reproduce it and post the update here.

@dvondros
Copy link

same issue with Windows 11 and VS Code 1.79.
Thank you for any update.

@sreeharshakakani
Copy link
Contributor

@dhoogfr @dhoogfr Can you please try it with v1.0.2

@BASoapbox
Copy link

Having the same issue on Mac OS Ventura and OCI Toolkit v1.0.3. Can please suggest a way to fix this?

@LavanyaSiliveri
Copy link

LavanyaSiliveri commented Apr 23, 2024

on my mac os sonama, with OCI toolkit v1.0.4, I am facing below issue, when I allow it to install oci-cli as part of oci tool kit

Successfully installed PyYAML-6.0.1 arrow-1.3.0 certifi-2024.2.2 cffi-1.16.0 circuitbreaker-1.4.0 click-8.0.4 cryptography-42.0.5 jmespath-0.10.0 oci-2.125.3 oci_cli-3.39.1 prompt-toolkit-3.0.29 pyOpenSSL-24.1.0 pycparser-2.22 python-dateutil-2.9.0.post0 pytz-2024.1 six-1.16.0 terminaltables-3.1.10 types-python-dateutil-2.9.0.20240316 wcwidth-0.2.13
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'distutils'
Traceback (most recent call last):
File "/var/folders/w3/7gzsk14d07xc4p1td1pyb1200000gn/T/oci_cli_install_tmp_XXXX.LHrr2CWjEf", line 722, in
main()
File "/var/folders/w3/7gzsk14d07xc4p1td1pyb1200000gn/T/oci_cli_install_tmp_XXXX.LHrr2CWjEf", line 705, in main
venv_site_packages_directory = subprocess.check_output([venv_python_executable, '-c', 'from distutils.sysconfig import get_python_lib; print(get_python_lib())']).strip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/lavanyasiliveri/lib/oracle-cli/bin/python', '-c', 'from distutils.sysconfig import get_python_lib; print(get_python_lib())']' returned non-zero exit status 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants