Failed to install opencv in a step of a pipeline
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, opencv, python
- Domain
- cloud, machine-learning
Research direction
Start with the provided environment yml and train.py, then reproduce the Azure Machine Learning pipeline step that imports cv2. Check the environment logs around the missing libGL.so.1 error; done means the pipeline environment can import cv2 and proceed past that training step.
Written by the indexing model from the issue text.
Description
I am trying to make a trining step for a pipeline where I need open cv, I have manage to install it in the environment but for some reason it doesn't find it.
My error:
Execution failed. User process '/azureml-envs/azureml***/bin/python' exited with status code 1. Please check log file 'user_logs/std_log.txt' for error details. Error: Traceback (most recent call last):
File "train.py", line 8, in
import cv2
File "/azureml-envs/azureml***/lib/python3.8/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/azureml-envs/azureml***/lib/python3.8/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/azureml-envs/azureml***/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I have also tried with regular import opencv-python
my yml:
name: train_env
channels:
- conda-forge
dependencies: - python=3.8.1
- ipykernel
- PyYAML
- requests
- tqdm
- pip
- pip:
- opencv-python-headless
- azureml-defaults
- torch
- torchvision
- ultralytics
- matplotlib
- pandas
- pyarrow
- Pillow
- onnx
- pathlib
- numpy
- requests
- scipy
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/MachineLearningNotebooks
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/MachineLearningNotebooks#1975 · 1 comment ·
-
duplicates Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
Azure/MachineLearningNotebooks#1987 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Azure/MachineLearningNotebooks#1985 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/MachineLearningNotebooks#1981 · 1 reaction ·
All issues in Azure/MachineLearningNotebooks
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#141 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
documentation improve or update documentation priority/low triage
Difficulty 2/5 Half a day Newbie friendliness 86/100
warpdotdev/docs#782 · 1 comment ·
-
customer-reported question
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Azure/awesome-azd#1017 ·