Azure / Azure/MachineLearningNotebooks
Failed to install opencv in a step of a pipeline
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 4.4k
- Forks
- 2.6k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece com o environment yml fornecido e train.py e, em seguida, reproduza a etapa do pipeline do Azure Machine Learning que importa cv2. Verifique os logs do ambiente em torno do erro de libGL.so.1 ausente; considera-se concluído quando o ambiente do pipeline consegue importar cv2 e prosseguir além dessa etapa de treinamento.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- azure, opencv, python
- Domínio
- cloud, machine-learning
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100