Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute error when passing kms_key to sklearn_processor.run method #4349

Open
nayangirigoswamiaws opened this issue Dec 29, 2023 · 0 comments
Labels
component: processing Relates to the SageMaker Processing Platform

Comments

@nayangirigoswamiaws
Copy link

File /opt/conda/lib/python3.10/site-packages/sagemaker/processing.py:996, in ProcessingJob._get_process_args(cls, processor, inputs, outputs, experiment_config)
    993 process_request_args["environment"] = processor.env
    995 if processor.network_config is not None:
--> 996     process_request_args["network_config"] = processor.network_config._to_request_dict()
    997 else:
    998     process_request_args["network_config"] = None

AttributeError: 'dict' object has no attribute '_to_request_dict'

to reproduce, use below code,

sklearn_processor.run(
    code='preprocessing.py',
    inputs=[
        ProcessingInput(
            source=input_source, 
            destination="/opt/ml/processing/input",
            s3_input_mode="File"
        )
    ],
    outputs=[
        ProcessingOutput(
            output_name="sm-immday-skprocessing", 
            source="train",
            destination = 's3://path'
        )
    ]
    ,kms_key='arn:aws:kms:eu-west-1:...',
)
@vpbhargav vpbhargav added the component: processing Relates to the SageMaker Processing Platform label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: processing Relates to the SageMaker Processing Platform
Projects
None yet
Development

No branches or pull requests

2 participants