Skip to content

[Issue] sm-local-configure breaks on MacOS #31

@yashvesikar

Description

@yashvesikar

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:

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions