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

spyder and opencv apparent conflict #13349

Closed
6 of 8 tasks
jyauri opened this issue Feb 16, 2024 · 2 comments
Closed
6 of 8 tasks

spyder and opencv apparent conflict #13349

jyauri opened this issue Feb 16, 2024 · 2 comments
Labels

Comments

@jyauri
Copy link

jyauri commented Feb 16, 2024

Checklist

  • I added a descriptive title.
  • I searched through existing issues and couldn't find a solution or duplicate issue.
  • I searched on the web (e.g. Google) and didn't find any helpful information.
  • I searched the Anaconda documentation and didn't find any helpful information.

Impacted product

  • A conda package (built by Anaconda)
  • Anaconda Distribution (formerly Anaconda Individual Edition)
  • Miniconda
  • Anaconda.org

What happened?

In Windows 10, I recently installed the latest miniconda. Next, spyder, and finally, opencv.
I used the commands:

conda install anaconda::spyder (after that, spyder works)
and
conda install conda-forge::opencv, (after that, spyder doesn't work, neither opencv)
respectively.

Expected behavior or outcome

Spyder cannot start and launch (and show me a window message of pyqt5 issue), neither import cv2 works (error: DLL load failed while importing cv2). So, they seem in apparent conflict.

Conda info

active environment : base
    active env location : C:\miniconda3
            shell level : 1
       user config file : C:\Users\Jose\.condarc
 populated config files :
          conda version : 24.1.1
    conda-build version : not installed
         python version : 3.11.5.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=x86_64
                          __conda=24.1.1=0
                          __cuda=12.4=0
                          __win=0=0
       base environment : C:\miniconda3  (writable)
      conda av data dir : C:\miniconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\miniconda3\pkgs
                          C:\Users\Jose\.conda\pkgs
                          C:\Users\Jose\AppData\Local\conda\conda\pkgs
       envs directories : C:\miniconda3\envs
                          C:\Users\Jose\.conda\envs
                          C:\Users\Jose\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.1.1 requests/2.31.0 CPython/3.11.5 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.3
          administrator : True
             netrc file : None
           offline mode : False

Conda config

(base) C:\WINDOWS\system32>conda config --show-sources


(base) C:\WINDOWS\system32>

Conda list

# packages in environment at C:\miniconda3:
#
# Name                    Version                   Build  Channel
alabaster                 0.7.12             pyhd3eb1b0_0    defaults
aom                       3.6.1                h63175ca_0    conda-forge
archspec                  0.2.1              pyhd3eb1b0_0    defaults
arrow                     1.2.3           py311haa95532_1    defaults
astroid                   2.14.2          py311haa95532_0    defaults
asttokens                 2.0.5              pyhd3eb1b0_0    defaults
atomicwrites              1.4.0                      py_0    defaults
attrs                     23.1.0          py311haa95532_0    defaults
autopep8                  1.6.0              pyhd3eb1b0_1    defaults
babel                     2.11.0          py311haa95532_0    defaults
bcrypt                    3.2.0           py311h2bbff1b_1    defaults
beautifulsoup4            4.12.2          py311haa95532_0    defaults
binaryornot               0.4.4              pyhd3eb1b0_1    defaults
black                     23.11.0         py311haa95532_0    defaults
blas                      1.0                         mkl    defaults
bleach                    4.1.0              pyhd3eb1b0_0    defaults
boltons                   23.0.0          py311haa95532_0    defaults
brotli-python             1.0.9           py311hd77b12b_7    defaults
bzip2                     1.0.8                he774522_0    defaults
ca-certificates           2023.12.12           haa95532_0    defaults
cairo                     1.16.0               haedb8bc_5    defaults
certifi                   2024.2.2        py311haa95532_0    defaults
cffi                      1.16.0          py311h2bbff1b_0    defaults
chardet                   4.0.0           py311haa95532_1003    defaults
charset-normalizer        2.0.4              pyhd3eb1b0_0    defaults
click                     8.1.7           py311haa95532_0    defaults
cloudpickle               2.2.1           py311haa95532_0    defaults
colorama                  0.4.6           py311haa95532_0    defaults
comm                      0.1.2           py311haa95532_0    defaults
conda                     24.1.1          py311haa95532_0    defaults
conda-content-trust       0.2.0           py311haa95532_0    defaults
conda-libmamba-solver     23.12.0            pyhd3eb1b0_1    defaults
conda-package-handling    2.2.0           py311haa95532_0    defaults
conda-package-streaming   0.9.0           py311haa95532_0    defaults
console_shortcut_miniconda 0.1.1                haa95532_1    defaults
cookiecutter              2.5.0           py311haa95532_0    defaults
cryptography              41.0.7          py311h89fc84f_0    defaults
dav1d                     1.2.1                h2bbff1b_0    defaults
debugpy                   1.6.7           py311hd77b12b_0    defaults
decorator                 5.1.1              pyhd3eb1b0_0    defaults
defusedxml                0.7.1              pyhd3eb1b0_0    defaults
diff-match-patch          20200713           pyhd3eb1b0_0    defaults
dill                      0.3.7           py311haa95532_0    defaults
distro                    1.8.0           py311haa95532_0    defaults
docstring-to-markdown     0.11            py311haa95532_0    defaults
docutils                  0.18.1          py311haa95532_3    defaults
executing                 0.8.3              pyhd3eb1b0_0    defaults
expat                     2.5.0                hd77b12b_0    defaults
ffmpeg                    5.1.2           gpl_h8bb4bc8_112    conda-forge
flake8                    6.0.0           py311haa95532_0    defaults
fmt                       9.1.0                h6d14046_0    defaults
font-ttf-dejavu-sans-mono 2.37                 hd3eb1b0_0    defaults
font-ttf-inconsolata      2.001                hcb22688_0    defaults
font-ttf-source-code-pro  2.030                hd3eb1b0_0    defaults
font-ttf-ubuntu           0.83                 h8b1ccd4_0    defaults
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-anaconda            1                    h8fa9717_0    defaults
fonts-conda-ecosystem     1                    hd3eb1b0_0    defaults
freeglut                  3.2.2                h63175ca_2    conda-forge
freetype                  2.12.1               ha860e81_0    defaults
glib                      2.78.4               hd77b12b_0    defaults
glib-tools                2.78.4               hd77b12b_0    defaults
graphite2                 1.3.14               hd77b12b_1    defaults
gst-plugins-base          1.22.3               h23ce68f_0    defaults
gstreamer                 1.22.3               h2bbff1b_0    defaults
harfbuzz                  6.0.0                he256f1b_0    conda-forge
icu                       70.1                 h0e60522_0    conda-forge
idna                      3.4             py311haa95532_0    defaults
imagesize                 1.4.1           py311haa95532_0    defaults
importlib-metadata        7.0.1           py311haa95532_0    defaults
importlib_metadata        7.0.1                hd3eb1b0_0    defaults
inflection                0.5.1           py311haa95532_0    defaults
intel-openmp              2023.1.0         h59b6b97_46320    defaults
intervaltree              3.1.0              pyhd3eb1b0_0    defaults
ipykernel                 6.28.0          py311haa95532_0    defaults
ipython                   8.20.0          py311haa95532_0    defaults
ipython_genutils          0.2.0              pyhd3eb1b0_1    defaults
isort                     5.9.3              pyhd3eb1b0_0    defaults
jaraco.classes            3.2.1              pyhd3eb1b0_0    defaults
jasper                    2.0.33               hc2e4405_1    conda-forge
jedi                      0.18.1          py311haa95532_1    defaults
jellyfish                 1.0.1           py311h36a85e1_0    defaults
jinja2                    3.1.3           py311haa95532_0    defaults
jpeg                      9e                   h2bbff1b_1    defaults
jsonpatch                 1.32               pyhd3eb1b0_0    defaults
jsonpointer               2.1                pyhd3eb1b0_0    defaults
jsonschema                4.19.2          py311haa95532_0    defaults
jsonschema-specifications 2023.7.1        py311haa95532_0    defaults
jupyter_client            8.6.0           py311haa95532_0    defaults
jupyter_core              5.5.0           py311haa95532_0    defaults
jupyterlab_pygments       0.2.2           py311haa95532_0    defaults
keyring                   23.13.1         py311haa95532_0    defaults
krb5                      1.20.1               h5b6d351_0    defaults
lazy-object-proxy         1.6.0           py311h2bbff1b_0    defaults
lerc                      3.0                  hd77b12b_0    defaults
libarchive                3.6.2                h27c7867_0    conda-forge
libblas                   3.9.0              20_win64_mkl    conda-forge
libcblas                  3.9.0              20_win64_mkl    conda-forge
libclang                  15.0.7          default_hde6756a_4    conda-forge
libclang13                15.0.7          default_h85b4d89_4    conda-forge
libcurl                   8.4.0                h86230a5_1    defaults
libdeflate                1.17                 h2bbff1b_1    defaults
libffi                    3.4.4                hd77b12b_0    defaults
libglib                   2.78.4               ha17d25a_0    defaults
libiconv                  1.17                 hcfcfb64_2    conda-forge
liblapack                 3.9.0              20_win64_mkl    conda-forge
liblapacke                3.9.0              20_win64_mkl    conda-forge
libmamba                  1.5.3                hcd6fe79_0    defaults
libmambapy                1.5.3           py311h77c03ed_0    defaults
libogg                    1.3.5                h2bbff1b_1    defaults
libopencv                 4.7.0           py311h0442f2a_1    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.39               h8cc25b3_0    defaults
libpq                     12.17                h906ac69_0    defaults
libprotobuf               3.21.12              h12be248_2    conda-forge
libsodium                 1.0.18               h62dcd97_0    defaults
libsolv                   0.7.24               h23ce68f_0    defaults
libspatialindex           1.9.3                h6c2663c_0    defaults
libsqlite                 3.45.1               hcfcfb64_0    conda-forge
libssh2                   1.10.0               he2ea4bf_2    defaults
libtiff                   4.5.1                hd77b12b_0    defaults
libvorbis                 1.3.7                he774522_0    defaults
libwebp-base              1.3.2                h2bbff1b_0    defaults
libxml2                   2.12.5               hc3477c8_0    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
lz4-c                     1.9.4                h2bbff1b_0    defaults
lzo                       2.10                 he774522_2    defaults
markdown-it-py            2.2.0           py311haa95532_1    defaults
markupsafe                2.1.3           py311h2bbff1b_0    defaults
matplotlib-inline         0.1.6           py311haa95532_0    defaults
mccabe                    0.7.0              pyhd3eb1b0_0    defaults
mdurl                     0.1.0           py311haa95532_0    defaults
menuinst                  2.0.1           py311hd77b12b_1    defaults
mistune                   2.0.4           py311haa95532_0    defaults
mkl                       2023.2.0         h6a75c08_50497    conda-forge
mkl-service               2.4.0           py311h2bbff1b_1    defaults
mkl_fft                   1.3.8           py311h2bbff1b_0    defaults
mkl_random                1.2.4           py311h59b6b97_0    defaults
more-itertools            10.1.0          py311haa95532_0    defaults
mypy_extensions           1.0.0           py311haa95532_0    defaults
nbclient                  0.8.0           py311haa95532_0    defaults
nbconvert                 7.10.0          py311haa95532_0    defaults
nbformat                  5.9.2           py311haa95532_0    defaults
nest-asyncio              1.5.6           py311haa95532_0    defaults
numpy                     1.26.3          py311hdab7c0b_0    defaults
numpy-base                1.26.3          py311hd01c5d8_0    defaults
numpydoc                  1.5.0           py311haa95532_0    defaults
opencv                    4.7.0           py311h1ea47a8_1    conda-forge
openh264                  2.3.1                h63175ca_2    conda-forge
openssl                   3.0.13               h2bbff1b_0    defaults
packaging                 23.1            py311haa95532_0    defaults
pandocfilters             1.5.0              pyhd3eb1b0_0    defaults
paramiko                  2.8.1              pyhd3eb1b0_0    defaults
parso                     0.8.3              pyhd3eb1b0_0    defaults
pathspec                  0.10.3          py311haa95532_0    defaults
pcre2                     10.42                h0ff8eda_0    defaults
pexpect                   4.8.0              pyhd3eb1b0_3    defaults
pickleshare               0.7.5           pyhd3eb1b0_1003    defaults
pip                       23.3.1          py311haa95532_0    defaults
pixman                    0.40.0               h2bbff1b_1    defaults
platformdirs              3.10.0          py311haa95532_0    defaults
pluggy                    1.0.0           py311haa95532_1    defaults
ply                       3.11            py311haa95532_0    defaults
powershell_shortcut_miniconda 0.0.1                haa95532_1    defaults
prompt-toolkit            3.0.43          py311haa95532_0    defaults
prompt_toolkit            3.0.43               hd3eb1b0_0    defaults
psutil                    5.9.0           py311h2bbff1b_0    defaults
ptyprocess                0.7.0              pyhd3eb1b0_2    defaults
pure_eval                 0.2.2              pyhd3eb1b0_0    defaults
py-opencv                 4.7.0           py311h3810d55_1    conda-forge
pybind11-abi              4                    hd3eb1b0_1    defaults
pycodestyle               2.10.0          py311haa95532_0    defaults
pycosat                   0.6.6           py311h2bbff1b_0    defaults
pycparser                 2.21               pyhd3eb1b0_0    defaults
pydocstyle                6.3.0           py311haa95532_0    defaults
pyflakes                  3.0.1           py311haa95532_0    defaults
pygments                  2.15.1          py311haa95532_1    defaults
pylint                    2.16.2          py311haa95532_0    defaults
pylint-venv               2.3.0           py311haa95532_0    defaults
pyls-spyder               0.4.0              pyhd3eb1b0_0    defaults
pynacl                    1.5.0           py311h8cc25b3_0    defaults
pyopenssl                 23.2.0          py311haa95532_0    defaults
pyqt                      5.15.10         py311hd77b12b_0    defaults
pyqt5-sip                 12.13.0         py311h2bbff1b_0    defaults
pyqtwebengine             5.15.10         py311hd77b12b_0    defaults
pysocks                   1.7.1           py311haa95532_0    defaults
python                    3.11.5               he1021f5_0    defaults
python-dateutil           2.8.2              pyhd3eb1b0_0    defaults
python-fastjsonschema     2.16.2          py311haa95532_0    defaults
python-lsp-black          1.2.1           py311haa95532_0    defaults
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0    defaults
python-lsp-server         1.7.2           py311haa95532_0    defaults
python-slugify            5.0.2              pyhd3eb1b0_0    defaults
python_abi                3.11                    2_cp311    conda-forge
pytoolconfig              1.2.6           py311haa95532_0    defaults
pytz                      2023.3.post1    py311haa95532_0    defaults
pywin32                   305             py311h2bbff1b_0    defaults
pywin32-ctypes            0.2.0           py311haa95532_1000    defaults
pyyaml                    6.0.1           py311h2bbff1b_0    defaults
pyzmq                     25.1.2          py311hd77b12b_0    defaults
qdarkstyle                3.0.2              pyhd3eb1b0_0    defaults
qstylizer                 0.2.2           py311haa95532_0    defaults
qt-main                   5.15.8               h720456b_6    conda-forge
qt-webengine              5.15.9               h5bd16bc_7    defaults
qtawesome                 1.2.2           py311haa95532_0    defaults
qtconsole                 5.4.2           py311haa95532_0    defaults
qtpy                      2.4.1           py311haa95532_0    defaults
referencing               0.30.2          py311haa95532_0    defaults
reproc                    14.2.4               hd77b12b_1    defaults
reproc-cpp                14.2.4               hd77b12b_1    defaults
requests                  2.31.0          py311haa95532_0    defaults
rich                      13.3.5          py311haa95532_0    defaults
rope                      1.7.0           py311haa95532_0    defaults
rpds-py                   0.10.6          py311h062c2fa_0    defaults
rtree                     1.0.1           py311h2eaa2aa_0    defaults
ruamel.yaml               0.17.21         py311h2bbff1b_0    defaults
setuptools                68.2.2          py311haa95532_0    defaults
sip                       6.7.12          py311hd77b12b_0    defaults
six                       1.16.0             pyhd3eb1b0_1    defaults
snowballstemmer           2.2.0              pyhd3eb1b0_0    defaults
sortedcontainers          2.4.0              pyhd3eb1b0_0    defaults
soupsieve                 2.5             py311haa95532_0    defaults
sphinx                    5.0.2           py311haa95532_0    defaults
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0    defaults
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0    defaults
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0    defaults
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0    defaults
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0    defaults
sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0    defaults
spyder                    5.4.3           py311haa95532_1    anaconda
spyder-kernels            2.4.4           py311haa95532_0    defaults
sqlite                    3.41.2               h2bbff1b_0    defaults
stack_data                0.2.0              pyhd3eb1b0_0    defaults
svt-av1                   1.4.1                h63175ca_0    conda-forge
tbb                       2021.8.0             h59b6b97_0    defaults
text-unidecode            1.3                pyhd3eb1b0_0    defaults
textdistance              4.2.1              pyhd3eb1b0_0    defaults
three-merge               0.1.1              pyhd3eb1b0_0    defaults
tinycss2                  1.2.1           py311haa95532_0    defaults
tk                        8.6.12               h2bbff1b_0    defaults
toml                      0.10.2             pyhd3eb1b0_0    defaults
tomlkit                   0.11.1          py311haa95532_0    defaults
tornado                   6.3.3           py311h2bbff1b_0    defaults
tqdm                      4.65.0          py311h746a85d_0    defaults
traitlets                 5.7.1           py311haa95532_0    defaults
truststore                0.8.0           py311haa95532_0    defaults
tzdata                    2023c                h04d1e81_0    defaults
ucrt                      10.0.20348.0         haa95532_0    defaults
ujson                     5.4.0           py311hd77b12b_0    defaults
unidecode                 1.2.0              pyhd3eb1b0_0    defaults
urllib3                   1.26.18         py311haa95532_0    defaults
vc                        14.2                 h21ff451_1    defaults
vc14_runtime              14.38.33130         h82b7239_18    conda-forge
vs2015_runtime            14.38.33130         hcb4865c_18    conda-forge
watchdog                  2.1.6           py311haa95532_0    defaults
wcwidth                   0.2.5              pyhd3eb1b0_0    defaults
webencodings              0.5.1           py311haa95532_1    defaults
whatthepatch              1.0.2           py311haa95532_0    defaults
wheel                     0.41.2          py311haa95532_0    defaults
win_inet_pton             1.1.0           py311haa95532_0    defaults
wrapt                     1.14.1          py311h2bbff1b_0    defaults
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xz                        5.4.5                h8cc25b3_0    defaults
yaml                      0.2.5                he774522_0    defaults
yaml-cpp                  0.8.0                hd77b12b_0    defaults
yapf                      0.31.0             pyhd3eb1b0_0    defaults
zeromq                    4.3.5                hd77b12b_0    defaults
zipp                      3.17.0          py311haa95532_0    defaults
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstandard                 0.19.0          py311h2bbff1b_0    defaults
zstd                      1.5.5                hd43e919_0    defaults

Additional information

figura_error

@ryanskeith
Copy link

ryanskeith commented Feb 27, 2024

You are mixing two different channels and there be dragons. The conda-forge channel (maintained by the conda-forge community) makes no claims that it will work with packages from the anaconda channel (maintained by Anaconda) and vice versa. Have you tried installing opencv from the anaconda channel?

@pseudoyim
Copy link
Contributor

Closing due to lack of response from issue reporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants