This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erik.bray
Recipients Kevin, astanton1978, erik.bray, eryksun, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2019-04-15.14:06:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555337197.75.0.243603140567.issue32451@roundup.psfhosted.org>
In-reply-to
Content
Coincidentally I just encountered this myself when trying to activate a venv created by Python for Windows while in a Cygwin shell.  Indeed, bash for Cygwin is just like bash anywhere else, and considers it a syntax error to encounter unexpected CR's.

Alas, venv creates <path>/<to/<env>/Scripts/activate with CRLFs.  After running dos2unix on it, this script can be sourced from Cygwin and otherwise works fine.

The issue that arises with interactive mode is a known issue not specific to Python or venv.  It can also be worked around by running python with winpty.
History
Date User Action Args
2019-04-15 14:06:37erik.braysetrecipients: + erik.bray, paul.moore, tim.golden, r.david.murray, zach.ware, eryksun, steve.dower, Kevin, astanton1978
2019-04-15 14:06:37erik.braysetmessageid: <1555337197.75.0.243603140567.issue32451@roundup.psfhosted.org>
2019-04-15 14:06:37erik.braylinkissue32451 messages
2019-04-15 14:06:37erik.braycreate