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

Noisy warning on environment activation when ffmpeg or libopencv are installed in an environment on Linux #29

Closed
traversaro opened this issue Feb 26, 2024 · 7 comments · Fixed by #30
Labels

Comments

@traversaro
Copy link

Comment:

Since conda-forge/openvino-feedstock#73 has been merged, all the new environments in which I install opencv or ffmpeg get a big and scary warning:

WARNING: No ICDs were found. Either,
- Install a conda package providing a OpenCL implementation (pocl, oclgrind, intel-compute-runtime, beignet) or
- Make your system-wide implementation visible by installing ocl-icd-system conda package.

This warning actually comes from the ocl-icd package, that comes from the libopencv --> libopenvino-intel-gpu-plugin --> ocl-icd dependency chain. The warning is printed on every environment activation, and kind of confuses users, especially the one that do not care or even do not know anything about OpenCL. I do not have any specific opinion on OpenCL so removing ocl-icd-system may be perfectly fine for me, but do you think we could avoid this extremely noisy warning?

fyi @conda-forge/ffmpeg @conda-forge/opencv @conda-forge/openvino @conda-forge/ocl-icd

@matthiasdiener
Copy link
Contributor

I'd be supportive of removing the warning (in https://github.com/conda-forge/ocl-icd-feedstock/blob/main/recipe/activate.sh).

@matthiasdiener matthiasdiener linked a pull request Feb 26, 2024 that will close this issue
5 tasks
@iamanigeeit
Copy link

Worse still: the double square brackets [[ ]] syntax is specific to bash and running on sh will make activation fail.

@traversaro
Copy link
Author

fyi @xela-95

@vvzen
Copy link

vvzen commented Mar 12, 2024

I'd second removing the warning, or at least logging to stderr, as common practice in UNIX.

echo "WARNING: No ICDs were found. Either,";

The fact that the logging happens on stdout will break all CLIs that activate an environment and run things programmatically, for example a python3 -m pip list --json .

e.g.:

bash -lc 'conda activate /path/to/my/env && python3 -m pip list --format json' | jq

gets forced to become:

bash -lc 'conda activate /path/to/my/env 1>/dev/null && python3 -m pip list --format json' | jq

@xela-95
Copy link

xela-95 commented Mar 13, 2024

fyi @flferretti

@hmaarrfk
Copy link

hmaarrfk commented Mar 20, 2024

🎆 sorry for the accidental click

@traversaro
Copy link
Author

Thanks a lot @matthiasdiener !

@matthiasdiener matthiasdiener changed the title Noisy warning on environmnet activation when ffmpeg or libopencv are installed in an environment on Linux Noisy warning on environment activation when ffmpeg or libopencv are installed in an environment on Linux Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants