ansys / pyansys-protos-generator

Automatically generate a python package from protofiles stored according to gRPC protofile conventions
3 stars 1 forks source link

Error running tests in virtual environment #4

Closed jleonatti closed 3 years ago

jleonatti commented 3 years ago

test_generate fails when uninstalling the python package. I believe it is failing because I am running the test from a virtual environment. Is there a way around this?

image

image

akaszynski commented 3 years ago

Ran into the same issue on a virtual env on my end as well:

Not uninstalling ansys-api-sample-v1 at /tmp/pytest-of-alex/pytest-34/test_generate0/tardir/ansys-api-sample-v1-0.5.3, outside environment /home/alex/ansys/source/pyansys-protos-generator/venv

I find it strange that pip within a venv installs it within the temp directory. I've added a simple branch that loosely checks if within a virtual env in #5.