-
Notifications
You must be signed in to change notification settings - Fork 39
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
Crashes with AttributeError: 'TestenvConfig' object has no attribute 'conda_exe' #108
Comments
I have this same problem, downgrading to |
I cannot reproduce it:
Please provide more context. |
setup.py and tox.ini as yours
(error appears) |
Thank you, I can reproduce it now. |
Meanwhile, just install
|
The dist-info version is determined with setuptools_scm which was missing (see tox-feedstock for instance), in the current package at https://anaconda.org/conda-forge/tox-conda/0.8.4/download/noarch/tox-conda-0.8.4-pyhd8ed1ab_0.tar.bz2, there is site-packages/tox_conda-0.0.0.dist-info for instance, whereas it shall be site-packages/tox_conda-0.8.4.dist-info. This causes troubles when mixing anaconda envs with pip installed packages and seems to be the cause of tox-dev/tox-conda#108.
I have the same issue that is triggered when I try to specify a pip version: [tox]
requires =
tox-conda
setuptools >= 40.8.0
pip < 22 Not setting > conda info
active environment : _taxonopy
active env location : C:\Anaconda3\envs\_taxonopy
shell level : 2
user config file : C:\Users\Work\.condarc
populated config files : C:\Users\Work\.condarc
C:\Anaconda3\envs\_taxonopy\.condarc
conda version : 4.12.0
conda-build version : 3.21.6
python version : 3.9.7.final.0
virtual packages : __win=0=0
__archspec=1=x86_64
base environment : C:\Anaconda3 (writable)
conda av data dir : C:\Anaconda3\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
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:\Anaconda3\pkgs
C:\Users\Work\.conda\pkgs
C:\Users\Work\AppData\Local\conda\conda\pkgs
envs directories : C:\Anaconda3\envs
C:\Users\Work\.conda\envs
C:\Users\Work\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.12.0 requests/2.26.0 CPython/3.9.7 Windows/10 Windows/10.0.19044
administrator : True
netrc file : None
offline mode : False |
I also note that the pip version set in > conda list
# packages in environment at E:\Programming\Python\git\taxonopy\.tox\py37:
#
# Name Version Build Channel
...
pip 22.0.4 pyhd8ed1ab_0 conda-forge
... |
I think that requires refers to the packages installed in the provisional environment from where tox is executed from, and not to the environments from where the commands are executed. |
If tox and tox-conda are installed,
this config
crashes with
instead of self-provisioning a working tox env
The text was updated successfully, but these errors were encountered: