Open SimonBin opened 3 years ago
I have this same problem, downgrading to ~=0.7.0
should fix this
I cannot reproduce it:
ll
total 8.0K
-rw-r--r-- 1 antoine 38 Nov 21 20:36 setup.py
-rw-r--r-- 1 antoine 53 Nov 21 22:07 tox.ini
cat setup.py
from setuptools import setup
setup()
cat tox.ini
[tox]
requires = tox-conda
tox-run-before
tox
.tox create: /tmp/0/.tox/.tox
.tox installdeps: tox-conda, tox-run-before, tox >= 3.24.4
GLOB sdist-make: /tmp/0/setup.py
python create: /tmp/0/.tox/python
python inst: /tmp/0/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip
python installed: argcomplete==1.12.3,attrs==21.2.0,delta==0.4.2,iniconfig==1.1.1,jsonschema==3.2.0,pipx==0.16.4,py==1.11.0,pyrsistent==0.18.0,pytest==6.2.5,pytest-executable @ file:///home/antoine/PycharmProjects/pytest-executable,UNKNOWN @ file:///tmp/0/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip,userpath==1.7.0
python run-test-pre: PYTHONHASHSEED='3731313267'
_________________________________________________________________ summary __________________________________________________________________
python: commands succeeded
congratulations :)
Please provide more context.
setup.py and tox.ini as yours
conda create --name toxcondabug python=3.8
conda activate toxcondabug
conda install tox-conda -c conda-forge
tox
(error appears)
Thank you, I can reproduce it now.
Meanwhile, just install tox
(no tox-conda
) in your anaconda environment:
conda create -c conda-forge -n toxcondabug python=3.8 tox
...
conda run -n toxcondabug --no-capture-output tox
.tox create: /tmp/0/.tox/.tox
.tox installdeps: tox-conda, tox-run-before, tox >= 3.24.4
GLOB sdist-make: /tmp/0/setup.py
python create: /tmp/0/.tox/python
python inst: /tmp/0/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip
python installed: argcomplete==1.12.3,attrs==21.2.0,delta==0.4.2,iniconfig==1.1.1,jsonschema==3.2.0,pipx==0.16.4,py==1.11.0,pyrsistent==0.18.0,pytest==6.2.5,pytest-executable @ file:///home/antoine/PycharmProjects/pytest-executable,UNKNOWN @ file:///tmp/0/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip,userpath==1.7.0
python run-test-pre: PYTHONHASHSEED='3611896972'
_________________________________________________________________ summary __________________________________________________________________
python: commands succeeded
congratulations :)
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 pip
in the requires
list or removing tox-conda
from the environment fixes the issue.
> 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 requires
is not respected.
> 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
...
If tox and tox-conda are installed,
this config
crashes with
instead of self-provisioning a working tox env