Repository navigation
Description
https://github.com/aws/sagemaker-python-sdk/blob/master/setup.py#L50
import sagemaker as sage will crash.
It causes the error:
import sagemaker as sage
File "/usr/local/lib/python3.6/site-packages/sagemaker/init.py", line 18, in
from sagemaker import estimator, parameter, tuner # noqa: F401
File "/usr/local/lib/python3.6/site-packages/sagemaker/estimator.py", line 29, in
from sagemaker.analytics import TrainingJobAnalytics
File "/usr/local/lib/python3.6/site-packages/sagemaker/analytics.py", line 23, in
from sagemaker.session import Session
File "/usr/local/lib/python3.6/site-packages/sagemaker/session.py", line 34, in
from sagemaker.user_agent import prepend_user_agent
File "/usr/local/lib/python3.6/site-packages/sagemaker/user_agent.py", line 23, in
SDK_VERSION = pkg_resources.require("sagemaker")[0].version
File "/usr/lib/python3.6/dist-packages/pkg_resources/init.py", line 972, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/dist-packages/pkg_resources/init.py", line 863, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.25.7 (/usr/local/lib/python3.6/site-packages), Requirement.parse('urllib3<1.25,>=1.21.1'), {'requests'})
Please fill out the form below.
System Information
- Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans):
- Framework Version:
- Python Version: 3.6
- CPU or GPU: CPU
- Python SDK Version:
- Are you using a custom image:
Describe the problem
Describe the problem or feature request clearly here.
Minimal repro / logs
Please provide any logs and a bare minimum reproducible test case, as this will be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
- Exact command to reproduce:
Activity
nadiaya commentedon Jan 3, 2020
We have the constrain because of the issues with docker-compose that restricts requests version which restricts urllib3 version.
What version of python sdk do you use? Are you using local mode?
We have recently split python sdk dependencies into more use case oriented subsets and urllib3 is only required explicitly for local mode.
Though it seems like now it can be changed to: 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1'
And requests versions to: 'requests >= 2.20.0, < 3',
imyoungyang commentedon Jan 5, 2020
Two cases:
In the Cloud9, I install python 3.6 and run python script in the bash shell. The python script will trigger SageMaker remote build.
In AWS CodeBuild to run python script. In the python Script, it will use SageMaker python SDK to trigger SageMaker fit job. The Codebuild python version is 3.8 now.
laurenyu commentedon Jan 8, 2020
are you using Local Mode?
laurenyu commentedon Apr 22, 2020
closing due to lack of activity.
feat: ModelBuilder integration to streamline/enable model deployment …
feat: ModelBuilder for simplified model testing and deployment (#1266)
fix: Model builder Final Fixes(#1369)
feat: ModelBuilder for simplified model testing and deployment (#1266)
fix: Model builder Final Fixes(#1369)
feat: ModelBuilder for simplified model testing and deployment (aws#1266
fix: Model builder Final Fixes(aws#1369)