Windows activate script: invalid escape sequence
See original GitHub issue- Poetry version: 1.2.2
- Python version: 3.9.12
- OS version and name: Windows 11
- pyproject.toml: n/a
- [ x] I am on the latest stable Poetry version, installed using a recommended method.
- [ x] I have searched the issues of this repo and believe that this is not a duplicate.
- [ x] I have consulted the FAQ and blog for any relevant entries or release notes.
- [ x] If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
Line 25 in the activate script file: <poetry env>\Scripts\activate_this.py
Fails to escape a path: for lib in "..\Lib\site-packages".split(os.pathsep):
Generating a runtime error: invalid escape sequence \L
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Running Powershell Script via Chef - Invalid escape character ...
So, I tried just copying the script over and using the execute resource to run the script but ran into access control errors....
Read more >Invalid escape sequence \o (IDFGH-3564) #5512 - GitHub
This resolved the issue for me entirely. Worked for me as well, using Windows and VS code ESP-IDF extension. Thanks!
Read more >Invalid escape sequence - General Usage - Julia Discourse
In Windows, the autocomplete (i.e. tab) will add a backslash before any whitespaces. e.g. If I want to include a file which is...
Read more >Facing Unresolved compilation problem Invalid escape ...
Try using a valid escape sequence such as a backslash character. Alternatively, you should use forward slashes, those are filesystem independent ...
Read more >Invalid escape sequence in a regular expression - IBM
Problem. A string contains a literal character that is a reserved character in the Regex class (for example, the '(' or open parentheses...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

activate_this.pyis not a file provided by Poetry; nor does Poetry install any scripts into an environment that are not part of your dependency tree. I’m not sure what issue you are trying to communicate, but this is not the right repository/project.@dataspun do you have any link to the bug report in virtualenv?