question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

22.0 does not install console script correctly into virtual environment on Windows Git Bash

See original GitHub issue

Description

Since the upgrade to v22, I cant run pytest from the command line anymore. I use git-bash and can see pytest installed in my path in my virtualenv. When running pytest nothing happens. I just get a blank response.

$ pytest
$

Running pytest using python works fine

$ python -m pytest
======================= test session starts =======================
platform win32 -- Python 3.8.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
.....

I created another virtualenv using v21.3.1 and there pytest works fine.

$ pytest
======================= test session starts =======================
platform win32 -- Python 3.8.0, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
.....

Expected behavior

After creating a new virtualenv and updating pip and installing wheel and installing my project in editable mode, I should be able to run pytest from the command line on windows and expect it to work and see my tests run.

pip version

22.0.2

Python version

3.8

OS

Windows 10

How to Reproduce

  1. Create new virtualenv.
  2. Update Pip and wheel
  3. pip install your package in editable mode hopefully one which has pytest
  4. Try running pytest

Output

You will get nothing

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
uranusjrcommented, Feb 3, 2022

Or it may be the sysconfig switch; MSYS2 has historically had bugs in their sysconfig patch.

0reactions
shireenraocommented, Feb 4, 2022

No issues at all @uranusjr. The end goal is the same. I will just go follow the other issue. Thank you for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

'virtualenv' won't activate on Windows - Stack Overflow
Run this in your shell: Set-ExecutionPolicy Unrestricted -Force. Step 6. To activate virtualenv on Windows, activate script is in the Scripts folder:
Read more >
How to active virtual environment in git bash terminal - YouTube
How to an active virtual environment in git bash in this video tutorial I'll teach you how can you active your python virtual...
Read more >
Setting Up Conda in Git Bash - Codecademy Forums
In order to make the conda command available in Git Bash, you need to add conda's shell script to your .bashrc file. This...
Read more >
Activating Virtualenv on Windows using Git Bash — Python 3.7.1
I don't like Powershell and I like to use Git Bash, so to activate virtualenv in Git Bash first navigate to your project...
Read more >
Install Python, pip, and the EB CLI on Windows
To install the AWS CLI with pip (Windows). From the Start menu, open a Command Prompt window. Verify that Python and pip are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found