Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Question Date: Wed, 09 Mar 2016 23:01:47 -0500 Organization: IISS Elusive Unicorn Lines: 27 Message-ID: References: <56df65a1$0$1596$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ML2zf9vUYaws9ZQW7/vtdA0Lm5oWXPKHYNXVTIOg/Psg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'needed,': 0.05; 'subject:Question': 0.05; 'bash': 0.07; 'git': 0.09; 'message- id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'unexpected': 0.09; 'unsigned': 0.09; 'syntax': 0.13; 'wed,': 0.15; '2016': 0.16; '>on': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'scripts.': 0.16; 'skip:> 20': 0.16; 'titled': 0.16; 'wrote:': 0.16; 'script.': 0.18; 'skip:` 20': 0.18; 'url:home': 0.18; 'shell': 0.18; 'runs': 0.18; 'windows': 0.20; 'script': 0.25; 'installed': 0.26; 'header:X-Complaints- To:1': 0.26; 'error': 0.27; 'skip:( 20': 0.28; 'looks': 0.29; 'environment': 0.29; 'window': 0.30; 'run': 0.33; 'true.': 0.33; 'configured': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'mar': 0.65; '(utc),': 0.84; '>if': 0.84; 'presumably': 0.84; '-0000': 0.91; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-116-234.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104472 On Wed, 9 Mar 2016 12:28:30 -0000 (UTC), Jon Ribbens declaimed the following: >On 2016-03-09, Ian Kelly wrote: >> It looks like the shell environment that comes with Git for Windows is >> actually Windows Powershell [1], so presumably the activate.ps1 script >> that's already provided by venv is what's needed, not a bash script. > >This is not true. I installed Git for Windows and what it gave me was >"Git Bash" which as you say runs in a window titled "MINGW64". > >If I try to run the activate.ps1 script it says: > >$ env/Scripts/activate.ps1 >env/Scripts/activate.ps1: line 1: syntax error near unexpected token `[switch]$NonDestructive' >env/Scripts/activate.ps1: line 1: `function global:deactivate ([switch]$NonDestructive) {' Which is no surprise, as .ps1 is a PowerShell script -- and even PowerShell may not run it unless the system is configured to allow for local unsigned scripts. http://stackoverflow.com/questions/30577271/activating-pyvenv-from-gitbash-for-windows -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/