# Pytest Troubleshooting

## Python Or Pytest Not Supported

#### Python version not found

> *No python versions found.*

Possible explanations for this issue include:&#x20;

* 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.

#### Python Version Problem

> *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.

#### Python Installation Problem

> *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

#### Incompatible Pytest Version

*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 Installation Problem

> *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`)

#### Pip Version Problem

> *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`.

#### Pytest Plugin Problem

> *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.

#### Coralogix Configuration Issue

> *Found the python package `coralogix-logger` is installed, if you encounter any issues, make sure to set `Redefine 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`.
