Closed ferdnyc closed 3 years ago
Windows Server 2008
To be more precise, the installed OS is Windows Server 2008 R2 Datacenter, Service Pack 1.
Apologies. The rather cryptic and misleading traceback aside, the problem appears to have been caused by an out-of-date msys-ffi
DLL.
After haranguing my project collaborators on the importance of at least trying to stay within a few years of the latest release of our dependencies, and having been subsequently punished for my efforts by being saddled with the upgrade tasks, I'm now finding myself in the predictable position of having to eat my words.
My attempts at upgrading the Python packages in our MSYS2-based MinGW environments hit something of a snag when I discovered that all attempts to run
pip
in my newly-upgradedmingw-w64-x86_64-python-3.8.9-1
ormingw-w64-i686-python-3.8.9-1
python3
interpreters fails with a traceback that winds throughappdirs
and intowinreg
, where it logs aFileNotFoundError
accessing the registry.This is true any way I can find to run
pip
:/mingw64/usr/bin/pip
launcher provided by theMSYS2
-installedmingw-w64-x86_64-python-pip
packagepython3 -m pip ...
appdirs
bundled withpip
itself, when using theget-pip.py
script downloaded from PyPi.And it even occurs when
pip
isn't involved, as long asappdirs
is involved.The same doesn't occur in the
MSYS
shell, likely because the MSYS shell identifies the host as Unix-like, and wouldn't be poking around for info in the native Windows registry.I created a brand new, blank-slate user account (with Administrator privileges) and tried this from that account — the results were the same.
Here's an example of the traceback, in isolation and without any
pip
complications:IIUC,
CSIDL_COMMON_APPDATA
is a Vista+ thing, correct? Would Windows Server 2008 qualify as "Vista+"? (My impression was, no, it wouldn't. But I'm not very confident in that.)