aws / aws/amazon-sagemaker-examples
RL vehicle routing example failed to run
- Dominant language
- Jupyter Notebook
- Stars
- 11k
- Forks
- 7k
- Avg merge
- 8h 29m
- Merged PRs (30d)
- 8
Description
Problem notebook:
```
reinforcement_learning/rl_resource_allocation_ray_customEnv/rl_vehicle_routing_problem_ray_custom.ipynb
```
Problem cell:
```python
train_entry_point = "train_vehicle_routing_problem.py"
train_job_max_duration_in_seconds = 60 * 15
estimator = RLEstimator(entry_point= train_entry_point,
source_dir="src",
dependencies=["common/sagemaker_rl"],
toolkit=RLToolkit.RAY,
toolkit_version='0.6.5',
framework=RLFramework.TENSORFLOW,
role=role,
train_instance_type=instance_type,
train_instance_count=1,
output_path=s3_output_path,
base_job_name=job_name_prefix,
metric_definitions=metric_definitions,
train_max_run=train_job_max_duration_in_seconds,
hyperparameters={}
)
estimator.fit(wait=local_mode)
job_name = estimator.latest_training_job.job_name
print("Training job: %s" % job_name)
```
Traceback:
```
algo-1-0jtq3_1 |
algo-1-0jtq3_1 | Invoking script with the following command:
algo-1-0jtq3_1 |
algo-1-0jtq3_1 | /usr/bin/python train_vehicle_routing_problem.py
algo-1-0jtq3_1 |
algo-1-0jtq3_1 |
algo-1-0jtq3_1 | Traceback (most recent call last):
algo-1-0jtq3_1 | File "train_vehicle_routing_problem.py", line 4, in
algo-1-0jtq3_1 | from sagemaker_rl.ray_launcher import SageMakerRayLauncher
algo-1-0jtq3_1 | File "/opt/ml/code/sagemaker_rl/ray_launcher.py", line 13, in
algo-1-0jtq3_1 | from .tf_serving_utils import export_tf_serving, natural_keys, change_permissions_recursive
algo-1-0jtq3_1 | File "/opt/ml/code/sagemaker_rl/tf_serving_utils.py", line 4, in
algo-1-0jtq3_1 | from ray.rllib.utils.framework import try_import_tf
algo-1-0jtq3_1 | ModuleNotFoundError: No module named 'ray.rllib.utils.framework'
algo-1-0jtq3_1 | 2020-11-02 22:17:58,907 sagemaker-containers ERROR ExecuteUserScriptError:
algo-1-0jtq3_1 | Command "/usr/bin/python train_vehicle_routing_problem.py"
```
Note:
related to #1686
Contributor guide
Assessment
This issue has not been assessed yet.