Skip to content

UTBot cannot install Python dependencies #1477

Open
@tyuldashev

Description

@tyuldashev

Description

When user I try to generate tests for Python file for the fist time then UTBot suggests to install missing dependencies, but it seems hangs at that moment.

To Reproduce

Steps to reproduce the behavior:

  1. Install Python plugin and latest UTBot plugin if needed
  2. Create new Python project
  3. Add some simple code in the project
def div(a, b):
    return a / b
  1. Invoke test generation and start with default parameters
  2. UTBot suggests to install required dependencies - agree and proceed
    image

Expected behavior
Dependencies are installed and then tests are generated.

Actual behavior

Installation started but didn't finish in several minutes, so I tried to cancel it, but it also hanged.

Visual proofs (screenshots, logs, images)
image

image

Environment
Intellij IDEA 2022.2.3
UTBot 2022.12.587

Additional context

I tried to turn off proxy and etc, that didn't help.

Even that's a network problem UTBot should be able to detect such problems (or timeout) also that task should be cancelable.

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a buglang-pythonIssue is related to python support

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions