You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid regular expression logging error occurs when file paths contain special characters #18829
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buggood first issueregressionBug didn't exist in a previous releaseverifiedVerification succeeded
Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
before the jupyter notebook was working fine and the python interpreter are listed in the interpreters but now i can't find them and each time i run a jupyter notebook an error window shows up which contains Python is not installed i install it again but still not working the only kernel on notebook is python 3 and it does not work at all
I tried running the jupyter notebook but nothing come up except the windows * usually, when using only the python file it works fine but when i run the jupyter notebook it does not work
Visual Studio Code (1.65.2, undefined, desktop)
Jupyter Extension Version: 2022.2.1030672458.
Python Extension Version: 2022.2.1924087327.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 22:49:22: ZMQ install verified.
Info 22:49:24: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Warn 22:49:24: Unable to create a controller for jupyter-notebook without an active interpreter.
Info 22:49:27: Find preferred kernel for c:\Users\alshe\Downloads\scanCONTROL-Windows-SDK-4-1\scanCONTROL Windows SDK 4.1\C++ SDK (+python bindings)\python_bindings\examples\ScreenO3d.ipynb with metadata {"language_info":{"name":"python"},"orig_nbformat":4} & preferred interpreter
Info 22:49:27: Notebook Closed c:\Users\alshe\Downloads\scanCONTROL-Windows-SDK-4-1\scanCONTROL Windows SDK 4.1\C++ SDK (+python bindings)\python_bindings\examples\ScreenO3d.ipynb
python:
Experiment 'pythonaacf' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'pythonSurveyNotification' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Experiment 'pythonInterpreterInfoPinned' is active
[ERROR 2022-2-30 22:49:24.403]: [SyntaxError: Invalid regular expression: /c:(\\|/)Users(\\|/)alshe(\\|/)Downloads(\\|/)scanCONTROL-Windows-SDK-4-1(\\|/)scanCONTROL Windows SDK 4.1(\\|/)C++ SDK (+python bindings)(\\|/)python_bindings(\\|/)examples/: Nothing to repeat
at new RegExp (<anonymous>)
at h (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759)
at d.getDisplayCommands (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538)
at d.logProcess (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276)
at s.emit (events.js:315:20)
at shellExec (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373)
at Object.t.shellExecute (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737)
at async Object.t.getInterpreterInfo (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805)
at async c.p [as workerFunc] (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037)
at async start (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)]
[ERROR 2022-2-30 22:49:24.407]: [SyntaxError: Invalid regular expression: /c:(\\|/)Users(\\|/)alshe(\\|/)Downloads(\\|/)scanCONTROL-Windows-SDK-4-1(\\|/)scanCONTROL Windows SDK 4.1(\\|/)C++ SDK (+python bindings)(\\|/)python_bindings(\\|/)examples/: Nothing to repeat
at new RegExp (<anonymous>)
at h (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759)
at d.getDisplayCommands (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538)
at d.logProcess (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276)
at s.emit (events.js:315:20)
at shellExec (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373)
at Object.t.shellExecute (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737)
at async Object.t.getInterpreterInfo (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805)
at async c.p [as workerFunc] (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037)
at async start (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)]
[ERROR 2022-2-30 22:49:27.213]: [SyntaxError: Invalid regular expression: /c:(\\|/)Users(\\|/)alshe(\\|/)Downloads(\\|/)scanCONTROL-Windows-SDK-4-1(\\|/)scanCONTROL Windows SDK 4.1(\\|/)C++ SDK (+python bindings)(\\|/)python_bindings(\\|/)examples/: Nothing to repeat
at new RegExp (<anonymous>)
at h (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759)
at d.getDisplayCommands (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538)
at d.logProcess (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276)
at s.emit (events.js:315:20)
at shellExec (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373)
at Object.t.shellExecute (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.t.getInterpreterInfo (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805)
at async c.p [as workerFunc] (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037)
at async start (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)]
[ERROR 2022-2-30 22:49:27.214]: [SyntaxError: Invalid regular expression: /c:(\\|/)Users(\\|/)alshe(\\|/)Downloads(\\|/)scanCONTROL-Windows-SDK-4-1(\\|/)scanCONTROL Windows SDK 4.1(\\|/)C++ SDK (+python bindings)(\\|/)python_bindings(\\|/)examples/: Nothing to repeat
at new RegExp (<anonymous>)
at h (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759)
at d.getDisplayCommands (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538)
at d.logProcess (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276)
at s.emit (events.js:315:20)
at shellExec (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373)
at Object.t.shellExecute (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.t.getInterpreterInfo (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805)
at async c.p [as workerFunc] (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037)
at async start (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)]
[ERROR 2022-2-30 22:49:27.215]: [SyntaxError: Invalid regular expression: /c:(\\|/)Users(\\|/)alshe(\\|/)Downloads(\\|/)scanCONTROL-Windows-SDK-4-1(\\|/)scanCONTROL Windows SDK 4.1(\\|/)C++ SDK (+python bindings)(\\|/)python_bindings(\\|/)examples/: Nothing to repeat
at new RegExp (<anonymous>)
at h (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314759)
at d.getDisplayCommands (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314538)
at d.logProcess (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:314276)
at s.emit (events.js:315:20)
at shellExec (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:33373)
at Object.t.shellExecute (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:24:74737)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.t.getInterpreterInfo (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:31805)
at async c.p [as workerFunc] (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:52:5037)
at async start (c:\Users\alshe\.vscode\extensions\ms-python.python-2022.2.1924087327\out\client\extension.js:104:29626)]
Starting Pylance language server.
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
I had the same issue with the extension versions from 2022. And I simply fell back to the 2021.12 version of this extension and it seems to work just fine.
Unfortunately, this new version doesn't seem to work for me.
I think it's caused by the special characters in the project path. To be specific, we all seem to have ++ in the project path which is probably the cause of this issue.
Unfortunately, this new version doesn't seem to work for me.
I think it's caused by the special characters in the project path. To be specific, we all seem to have ++ in the project path which is probably the cause of this issue.
Here is my log:
I managed to fix this issue for my settings. Please check #18878 for my patch.
changed the title [-]python is not installed[/-][+]Invalid regular expression logging error occurs when file paths contain special characters[/+]on Apr 8, 2022
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buggood first issueregressionBug didn't exist in a previous releaseverifiedVerification succeeded
Activity
rchiodo commentedon Mar 30, 2022
Thanks for the issue.
Can you go to this pane:
And pick the 'Jupyter' tab and the 'Python' tab and upload the contents of both of them?
We use the python extension to detect python on your machine, so hopefully its output will show why it thinks there's no python installed.
MXA404 commentedon Mar 30, 2022
I tried running the jupyter notebook but nothing come up except the windows * usually, when using only the python file it works fine but when i run the jupyter notebook it does not work
rchiodo commentedon Mar 30, 2022
Thanks.
Those output logs should tell us why. From your screen shot I suspect the python extension is failing to find python too.
MXA404 commentedon Mar 30, 2022
so how can I fix it?
rchiodo commentedon Mar 30, 2022
You need to send us the logs. Then we might be able to tell you how to fix it.
Logs are here:
And here:

Just copy the contents of those two panes into a comment in this issue. It should say something about what is going wrong.
MXA404 commentedon Mar 30, 2022
jupyter:
python:
rchiodo commentedon Mar 31, 2022
Thanks. This looks like a problem with a regular expression in the python extension. I'm transferring your issue there.
jose-jordan commentedon Apr 3, 2022
am also need help sir
7 remaining items
sunyinqi0508 commentedon Apr 6, 2022
I had the same issue with the extension versions from 2022. And I simply fell back to the 2021.12 version of this extension and it seems to work just fine.
karrtikr commentedon Apr 6, 2022
Hi all, could you please try installing https://github.com/microsoft/vscode-python/suites/5947251954/artifacts/203903588 and see if it helps? You can use
Extension: Install from VSIXcommand to install it.sunyinqi0508 commentedon Apr 7, 2022
Unfortunately, this new version doesn't seem to work for me.
I think it's caused by the special characters in the project path. To be specific, we all seem to have
++in the project path which is probably the cause of this issue.Here is my log:

sunyinqi0508 commentedon Apr 7, 2022
I managed to fix this issue for my settings. Please check #18878 for my patch.
[-]python is not installed[/-][+]Invalid regular expression logging error occurs when file paths contain special characters[/+]