Comments (4)
Hi! To clarify: this command should run from your local terminal (Mac).
It appears you have no Python installed or it's missing from you path.
Install then verify Python3 is available on your Mac by running: python --version
from sagemaker-ssh-helper.
@gilinachum Thanks for your clarification! turns out my conda environment was not correctly activated. When debugging this shows up on Debug Server Console
Get test data loader
Processes 60000/60000 (100%) of train data
Processes 10000/10000 (100%) of test data
[2022-11-17 12:51:29.794 algo-1:41 INFO utils.py:27] RULE_JOB_STOP_SIGNAL_FILENAME: None
[2022-11-17 12:51:30.049 algo-1:41 INFO profiler_config_parser.py:102] User has disabled profiler.
[2022-11-17 12:51:30.050 algo-1:41 INFO json_config.py:91] Creating hook from json_config at /opt/ml/input/config/debughookconfig.json.
[2022-11-17 12:51:30.052 algo-1:41 INFO hook.py:199] tensorboard_dir has not been set for the hook. SMDebug will not be exporting tensorboard summaries.
Unhandled exception in thread started by <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x7f1f3732b048>
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/site-packages/_pydev_bundle/pydev_monkey.py", line 785, in __call__
global_debugger.notify_thread_created(thread_id, t)
File "/opt/conda/lib/python3.6/site-packages/pydevd.py", line 765, in notify_thread_created
self.writer.add_command(self.cmd_factory.make_thread_created_message(thread))
File "/opt/conda/lib/python3.6/site-packages/_pydevd_bundle/pydevd_comm.py", line 587, in make_thread_created_message
cmdText = "<xml>" + self._thread_to_xml(thread) + "</xml>"
File "/opt/conda/lib/python3.6/site-packages/_pydevd_bundle/pydevd_comm.py", line 573, in _thread_to_xml
name = pydevd_xml.make_valid_xml_value(thread.getName())
File "/opt/conda/lib/python3.6/site-packages/_pydevd_bundle/pydevd_xml.py", line 30, in make_valid_xml_value
return s.replace("&", "&").replace('<', '<').replace('>', '>').replace('"', '"')
AttributeError: 'function' object has no attribute 'replace'
Any idea why this happened? this error did not show up when following the Connecting to SageMaker training jobs with SSM step
from sagemaker-ssh-helper.
Hi, @desinurch.
As for the last comment about a function has no attribute βreplaceβ, this is most likely the PyCharm issue - https://youtrack.jetbrains.com/issue/PY-40552 .
You can try a one-liner patch for it, just as in this test β
.Hope it helps! If not, please share the version of your pydevd-pycharm .
And thank you for the interest in the SageMaker SSH Helper!
Ivan
from sagemaker-ssh-helper.
@ivan-khvostishkov Perfect it works now! just a tip for anyone else trying this maybe you want to add project mappings on your Debug Server so the breakpoints will work as expected
from sagemaker-ssh-helper.
Related Issues (20)
- [Issue]failed to find agent identity HOT 6
- [Issue] `sm-local-configure` breaks on MacOS HOT 4
- Issue] STS client is not using regional endpoints HOT 2
- [Feature] Make switching instances in SageMaker Studio and PyCharm more smooth HOT 1
- [Feature] Support HF accelerate and DeepSpeed for inference HOT 1
- Thoughts on using a configuration management framework? HOT 6
- sm-local-configure only works with bash like installations - no Powershell/CMD support / Windows support at all HOT 4
- Error occurred when starting amazon-ssm-agent: failed to get identity: failed to find agent identity HOT 1
- Are scripts supposed to work on SageMaker notebook instances? HOT 12
- How to install VSCode, other apps in WebVNC view? HOT 2
- JupyterServer URL suffix when tunnelling into KernelGateway app HOT 2
- Notebook `SageMaker_SSH_Notebook.ipynb` fails due to docker-compose HOT 5
- Enable advanced-instances tier to use Session Manager with your on-premises instances HOT 2
- Connecting to SageMaker BYOC Inference Endpoint? HOT 2
- SSH port forwarding to KernelGateway app container HOT 2
- [Question] Shell environment different from web terminal HOT 2
- [bug] - `SageMaker_SSH_IDE.ipynb` does not work HOT 1
- [Feature] Support shared spaces in SageMaker Studio Classic
- [Feature] Support the updated SageMaker Studio experience HOT 1
- [Question] How to connect to sagemaker notebooks HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sagemaker-ssh-helper.