-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I have tried following the directions to setup my Local IDE integration with SageMaker Studio over SSH for PyCharm / VSCode and have run into an issue on my MacOS device.
When I run sm-local-configure I get the following output message:
> sm-local-configure
Darwin <MY COMPUTER> 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020 arm64
cat: /etc/issue: No such file or directory
cat: /etc/os-release: No such file or directory
Python 3.10.12
Password:
Sorry, try again.
Password:
sudo: apt-get: command not found
I believe the issue is this _install_unzip() function:
sagemaker-ssh-helper/sagemaker_ssh_helper/sm-helper-functions
Lines 40 to 46 in 049f97b
| function _install_unzip() { | |
| if _is_centos; then | |
| sudo yum install -y unzip | |
| else | |
| sudo apt-get install -y --no-install-recommends unzip | |
| fi | |
| } |
which is called by sm-local-configure
| _install_unzip |
I think this has partially been handled in the _install_aws_cli function with a seperate function for MacOS, If it would be helpful I can submit a PR to add a check to those methods to see if unzip and curl are already installed — which for MacOS I think they are by default.
The function works as expected (I think) if when i commented out those 2 lines and installed the package locally.
System:
- Operating System: MacOS Ventura 13.4
- Processor: Apple M2 Pro