New Fall Semester, new upgrade problems as usual!
I downloaded and did a fresh install of Anaconda 2023.07 to a clean Windows 11 system. Everything worked basically fine except for the extra debug messages while using conda (solved by upgrading conda-build from 3.26.0 to 3.26.1).
Knowing I was asking for trouble I decided to try upgrading Spyder from 5.4.3 to the latest 5.4.4 version. Since 5.4.3 is not available in the default repo, I pointed it to conda-forge:
conda update spyder -c conda-forge
That returned an enormous list of packages to update, replace, remove, etc, etc. Way bigger than I though it should be. Given that this wasnāt a critical install, I told it to go ahead.
After it completed, several errors were returned:
Executing transaction: done
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\cli\main.py", line 76, in main_sourced
from ..base.context import context
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\base\context.py", line 33, in <module>
from ..common._os.linux import linux_get_libc_version
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\common\_os\__init__.py", line 8, in <module>
from .windows import get_free_space_on_windows as get_free_space
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\common\_os\windows.py", line 11, in <module>
from ctypes import (
File "C:\Users\me\AppData\Local\anaconda3\Lib\ctypes\__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\me\AppData\Local\anaconda3\Scripts\conda-script.py", line 12, in <module>
sys.exit(main())
^^^^^^
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\cli\main.py", line 109, in main
return conda_exception_handler(main, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\exception_handler.py", line 389, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\exception_handler.py", line 20, in __call__
return self.handle_exception(exc_val, exc_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\exception_handler.py", line 52, in handle_exception
from .exceptions import (
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\exceptions.py", line 31, in <module>
from .models.channel import Channel
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\models\channel.py", line 25, in <module>
from ..base.context import Context, context
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\base\context.py", line 33, in <module>
from ..common._os.linux import linux_get_libc_version
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\common\_os\__init__.py", line 8, in <module>
from .windows import get_free_space_on_windows as get_free_space
File "C:\Users\me\AppData\Local\anaconda3\Lib\site-packages\conda\common\_os\windows.py", line 11, in <module>
from ctypes import (
File "C:\Users\me\AppData\Local\anaconda3\Lib\ctypes\__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
After that conda and most other things l would fail with the importing _ctypes error.
After some research I found some pointers that this could be caused by some missing libraries. I noticed that my /library/bin directory did NOT contain ffi.dll (it DID have ffi-8.dll). I copied that file from another computer, and everything immediately worked.
Iām pretty sure I followed all best practices here, so something in that upgrade seems to remove the ffi.dll without replacing it. Is this a bug?