re.error when creating kernel
See original GitHub issueDescription
What steps will reproduce the problem?
I installed the TensorFlow package and since then I started to get the following error message. I tried to uninstall all packages, python related installations, conda and anaconda and delete all the related files and reinstall only Anaconda (latest version, windows 64bit), but still I get the same error message. Restarting kernel or resetting Spyder will not help. Updating, removing and reinstalling all packages and spyder with conda did not help. Adding Spyder to firewall exceptions of windows did not help.
An error occurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in
start.main()
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 306, in main
kernel.initialize()
File "", line 2, in initialize
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\ipykernel\kernelapp.py", line 484, in initialize
self.init_kernel()
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\ipykernel\kernelapp.py", line 389, in init_kernel
user_ns=self.user_ns,
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder_kernels\console\kernel.py", line 37, in __init__
super(SpyderKernel, self).__init__(*args, **kwargs)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\ipykernel\ipkernel.py", line 67, in __init__
kernel = self,
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\IPython\core\interactiveshell.py", line 693, in __init__
self.init_magics()
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\ipykernel\zmqshell.py", line 593, in init_magics
super(ZMQInteractiveShell, self).init_magics()
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\IPython\core\interactiveshell.py", line 2245, in init_magics
m.PylabMagics, m.ScriptMagics,
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\IPython\core\magic.py", line 405, in register
m = m(shell=self.shell)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\site‑packages\IPython\core\magics\osm.py", line 52, in __init__
self.execre = re.compile(r'(.*)\.(%s)$' % winext,re.IGNORECASE)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\re.py", line 234, in compile
return _compile(pattern, flags)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\re.py", line 286, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 930, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 426, in _parse_sub
not nested and not items))
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 816, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 426, in _parse_sub
not nested and not items))
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 507, in _parse
code = _escape(source, this, state)
File "C:\Users\amkh8857\AppData\Local\Continuum\anaconda3\lib\sre_parse.py", line 402, in _escape
raise source.error("bad escape %s" % escape, len(escape))
re.error: bad escape \P at position 52
Versions
- Spyder version: 3.3.6
- Python version: 3.7.3
- Qt version: 5.9.6
- PyQt5 version: 5.9.2
- Operating System: Windows 8.1
Dependencies
pyflakes >=0.6.0 : 2.1.1 (OK)
pycodestyle >=2.3 : 2.5.0 (OK)
pygments >=2.0 : 2.4.2 (OK)
sphinx >=0.6.6 : 2.1.2 (OK)
rope >=0.9.4 : 0.14.0 (OK)
jedi >=0.9.0 : 0.13.3 (OK)
nbconvert >=4.0 : 5.5.0 (OK)
pandas >=0.13.1 : 0.24.2 (OK)
numpy >=1.7 : 1.16.4 (OK)
sympy >=0.7.3 : 1.4 (OK)
cython >=0.21 : 0.29.12 (OK)
qtconsole >=4.2.0 : 4.5.1 (OK)
IPython >=4.0 : 7.6.1 (OK)
matplotlib >=2.0.0: 3.1.0 (OK)
pylint >=0.25 : 2.3.1 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks!
Read more >Compilation error when building a custom kernel
It seems that's the development version of the kernel from gregkh git repository. It's not a stable version, so it might have errors....
Read more >Error compiling very simple Kernel module - NXP Community
I'm trying to compile a kernel test module by means of the below line in i.mx28EVK board. make CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4 ...
Read more >Error in compiling the kernel - linux - Stack Overflow
I have met the same problem while compiling kernel 3.2, and solve it by "su -" to root and then recompile.
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 FreeTop 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
Top GitHub Comments
Thanks a lot @dalthviz!
@dalthviz, there’s a new IPython release coming soon, so please address this one with a PR there as soon as you can.