Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for boudewijn21‭

Type On... Excerpt Status Date
Edit Post #286273 Initial revision over 2 years ago
Answer A: Console scripts in virtual environment do not output to terminal in git bash
A summary of the comment thread with jmathew: The simplest workaround is to use winpty, i.e. write: ```bash $ winpty black version.py ``` The reason this works is that the Python build that I am using and the Python console scripts are expecting a Windows terminal, but Git Bash is not one....
(more)
over 2 years ago
Edit Post #286006 Post edited:
Replaced pip tag with Windows
over 2 years ago
Comment Post #286006 Oh I missed the link in your earlier message. Yes I think that explains it pretty well: the python console scripts expect a windows terminal, but they are not getting that with git-bash, but with winpty they do. Good idea about the aliases. I've made them work for `black`/`mypy`/`pylint`/`flake8`...
(more)
over 2 years ago
Comment Post #286006 Hi @#54244, the command with winpty returns output! Another piece of the puzzle pointing to redirection of output. I've now been using the `python -m black version.py` variation, but the variation with winpty is closer to what I would like, plain `black version.py`.
(more)
over 2 years ago
Edit Post #286006 Initial revision over 2 years ago
Question Console scripts in virtual environment do not output to terminal in git bash
I have console scripts in my virtual environment in `\env\Scripts`, installed with packages (e.g. black, pytest, coverage). If I try to execute these in Git Bash, the output is not returned to the terminal. If I use the command line tool for e.g. black with a virtual enviroment activated in Git Ba...
(more)
over 2 years ago