ansys / ansys/python-installer-qt-gui

Bug located in create virtual env `create_venv_windows`

Open
#350 8 comments 0 reactions 1 assignee Claimed by @RobPasMue View on GitHub
bug
Dominant language
Python
Stars
43
Forks
5
Avg merge
33m
Merged PRs (30d)
12

Description

### 🔍 Before submitting the issue

- [X] I have searched among the existing issues
- [X] I am using a Python virtual environment

### 🐞 Description of the bug

create virtual environment does not work on machine where there is no global python is installed, and even if it is installed most probably it wont work with the `Ansys Python` which is in the installation directory.

I have dug little bit into the code and seems like following command does not work

```shell
start /w /min cmd /K "set PATH=C:\Program Files\ANSYS Inc\v242\commonfiles\CPython\3_10\winx64\Release\python && python -m venv C:\Users\mkanchan\.ansys_python_venvs\test_venv && exit
```

this command when run in the console (cmd.exe), does not work and shows that `python` is not a command or executable

**PS : the successful creation should check if the venv is actually created by checking the executables and `activate` files**

**PS2: in this template remove the `I am using a Python virtual environment`, this is not a standard for this repo**

### 📝 Steps to reproduce

- make sure you do not have global python installed on your machine
- fire up Ansys Python Manager
- select one of the ansys installation python
- create venv
- it says it sucessfully created but in reality the folder is empty

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

242

### 🐍 Which Python version are you using?

3.10

### 📦 Installed packages

```shell
-
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.