You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Howdy, I'm a bit out of my depth here; a colleague has reported having distutils-related issues with a conda-forge Python 3.8 conda installation, that does not occur with Python 3.9 or 3.10, nor with python 3.8/3.9/3.10 installed from defaults.
The problem is that attempts to access distutils.util result in AttributeError: module 'distutils' has no attribute 'util'. This can be reliably reproduced by my colleague on macOS Monterey, but I am unable to reproduce it on macOS Catalina. Steps to reproduce are as follows:
Start with a fresh environment and Miniconda installation:
So it looks like the _distutils_hack (which I know absolutely nothing about) is not being found in Python 3.8 environmments on Monterey for some reason.
Any thoughts? Thanks!
./fresh_miniconda/bin/conda info
active environment : None
user config file : ${HOME}/.condarc
populated config files : ${HOME}/.condarc
conda version : 4.10.3
conda-build version : not installed
python version : 3.9.5.final.0
virtual packages : __osx=10.16=0
__unix=0=0
__archspec=1=x86_64
base environment : ${HOME}/fresh_miniconda (writable)
conda av data dir : ${HOME}/fresh_miniconda/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/intel/osx-64
https://conda.anaconda.org/intel/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : ${HOME}/fresh_miniconda/pkgs
${HOME}/.conda/pkgs
envs directories : ${HOME}/fresh_miniconda/envs
${HOME}/.conda/envs
platform : osx-64
user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.5 Darwin/21.2.0 OSX/10.16
UID:GID : 501:20
netrc file : None
offline mode : False
The text was updated successfully, but these errors were encountered:
To add a little more information to this. Pinning the setuptools version to that which comes with python 3.8 in the default channel (setuptools-58.0.4) results in successful import of distutils.util.
Issue:
Howdy, I'm a bit out of my depth here; a colleague has reported having
distutils
-related issues with a conda-forge Python 3.8 conda installation, that does not occur with Python 3.9 or 3.10, nor with python 3.8/3.9/3.10 installed fromdefaults
.The problem is that attempts to access
distutils.util
result inAttributeError: module 'distutils' has no attribute 'util'
. This can be reliably reproduced by my colleague on macOS Monterey, but I am unable to reproduce it on macOS Catalina. Steps to reproduce are as follows:Start with a fresh environment and Miniconda installation:
Create a Python 3.8 environment:
Then try to use
distutils.util
:Repeating the above process with a Python 3.9 environment:
Accessing
distutils.util
now works:So it looks like the
_distutils_hack
(which I know absolutely nothing about) is not being found in Python 3.8 environmments on Monterey for some reason.Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered: