1 Answer
0
Hello,
Thank you for using Amazon SageMaker.
Usually this kind of error is occurred due version mismatch or missing dependencies. As you have mentioned that it worked locally on your system without any issue, we would like to dive deep into this issue for which we will required your script and requirement.txt file and sharing those files with us will help us identify what is the root cause of this issue and help you overcome this issue. Sharing any files on this medium is not encourage, so I recommend you to open a case with SageMaker Premium Support team so that you can share above mentioned details securely.
Open a support case with AWS using the link:
Relevant content
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 5 months ago
Is your job failing to find any dependencies? Or successfully installing some but failing on some specific libraries? Since if it's not working with any at all, could suggest something like a networking problem (for example not able to reach PyPI/package repository at all).
Hi Alex, my job is able to install a few and fails for few others, but those packages (requirements.txt) can be easily installed on my local system without any issue.
This is the output from the logs:
2022-04-13 18:21:13,404 sagemaker-training-toolkit INFO Installing dependencies from requirements.txt: /opt/conda/bin/python3.6 -m pip install -r requirements.txt Collecting beautifulsoup4==4.11.1 Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB) Collecting dominate==2.6.0 Downloading dominate-2.6.0-py2.py3-none-any.whl (29 kB) Collecting opencv_python==4.5.5.62 Downloading opencv_python-4.5.5.62-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 MB) ERROR: Could not find a version that satisfies the requirement scikit_image==0.18.3 ERROR: No matching distribution found for scikit_image==0.18.3 2022-04-13 18:21:16,658 sagemaker-training-toolkit ERROR InstallRequirementsError: Command "/opt/conda/bin/python3.6 -m pip install -r requirements.txt" ERROR: Could not find a version that satisfies the requirement scikit_image==0.18.3 ERROR: No matching distribution found for scikit_image==0.18.3