Pytest Troubleshooting
No python versions found.
Possible explanations for this issue include:
- Python is not configured in the path environment variable.
- Redefine was run outside of a virtual environment. If this is the case, make sure to run from the virtual environment shell or use your favorite virtual environment command line tool to run redefine via Python, i.e.,
poetry run python -m redefine <cmd>
. - Python is not installed on the machine.
All python versions found {versions} are not supported - The minimal supported Python version is 3.6
Redefine supports only Python version 3.6 and above. Please ensure a python version higher or equal to 3.6 is installed.
Pytest is not installed or cannot be imported, the supported versions are 5.4.0 or higher.
Possible causes for this issue include:
- Redefine was run outside of a virtual environment. If this is the case, make sure to run from the virtual environment shell or use your favorite virtual environment command line tool to run redefine via Python, i.e.,
poetry run python -m redefine <cmd>
- Pytest is not installed in the current environment. Redefine pytest integration requires pytest to run. Please make sure you are installing pytest in your ci (via pip install pytest or other methods such as requirements.txt file
The current Pytest version is {pytest_version} - the supported versions are 5.4.0 or higher.
Redefine supports pytest version 5.4.0 and above. Please ensure pytest version 5.4.0 or higher is installed.
Pip is not installed or cannot be imported
Pip is not installed. Please ensure pip is installed in your environment (by running
python3 -m pip
or python -m pip
)Incompatible Pip version. The current Pip version is {pip_version} - The supported versions are 9.0.1 or higher.
The pip version is incompatible, Redefine supports pip versions 9.0.1 or higher., Please upgrade your pip by running
pip install -U pip
.Redefine pytest plugin requires {requirement.name} ({requirement.specifier}), upgrading the current version: {version}
Redefine requires a higher versioned package, and will upgrade it to version {version} when Redefine is installed.
Found the python packagecoralogix-logger
is installed, if you encounter any issues, make sure to setRedefine config set pytest_coralogix_disabled=true
Redefine detected that the
coralogix-logger
package is installed, which can conflict with your current logger. If you are running one and do experience these issues, please make sure to run Redefine config set pytest_coralogix_disabled=true
.Last modified 5mo ago