oracle-samples / oci-vscode-toolkit

OCI Toolkit for VSCode - Functions, Data Science, Resource Manager
https://marketplace.visualstudio.com/items?itemName=Oracle.oci-vscode-toolkit
Universal Permissive License v1.0
14 stars 2 forks source link

question on OCI CLI configuration #10

Open dhoogfr opened 1 year ago

dhoogfr commented 1 year ago

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 commented 1 year ago

@dhoogfr what is the OS being used ?

dhoogfr commented 1 year ago

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

jyotisaini commented 1 year ago

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 commented 1 year ago

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

sreeharshakakani commented 1 year ago

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

BASoapbox commented 9 months ago

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

LavanyaSiliveri commented 4 months ago

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.