An error ocurred while starting the kernel

221 views
Skip to first unread message

PLAA Hemantha

unread,
Jun 18, 2020, 7:17:14 PM6/18/20
to spyder
I;m new for Python. Iam using Spyder 4 with Python 3.7.  When run the Spyder An error ocurred.
An error ocurred while starting the kernel
Traceback (most recent call last):
File "D:\Anaconda3\lib\site‑packages\IPython\core\history.py", line 87, in catch_corrupt_db
return f(self, *a, **kw)
File "D:\Anaconda3\lib\site‑packages\IPython\core\history.py", line 257, in init_db
end timestamp, num_cmds integer, remark text)""")
sqlite3.OperationalError: database is locked

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in
start.main()
File "D:\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 306, in main
kernel.initialize()
File "", line 2, in initialize
File "D:\Anaconda3\lib\site‑packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "D:\Anaconda3\lib\site‑packages\ipykernel\kernelapp.py", line 562, in initialize
self.init_kernel()
File "D:\Anaconda3\lib\site‑packages\ipykernel\kernelapp.py", line 447, in init_kernel
user_ns=self.user_ns,
File "D:\Anaconda3\lib\site‑packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "D:\Anaconda3\lib\site‑packages\spyder_kernels\console\kernel.py", line 33, in __init__
super(SpyderKernel, self).__init__(*args, **kwargs)
File "D:\Anaconda3\lib\site‑packages\ipykernel\ipkernel.py", line 68, in __init__
kernel = self,
File "D:\Anaconda3\lib\site‑packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "D:\Anaconda3\lib\site‑packages\IPython\core\interactiveshell.py", line 661, in __init__
self.init_history()
File "D:\Anaconda3\lib\site‑packages\IPython\core\interactiveshell.py", line 1802, in init_history
self.history_manager = HistoryManager(shell=self, parent=self)
File "D:\Anaconda3\lib\site‑packages\IPython\core\history.py", line 537, in __init__
**traits)
File "D:\Anaconda3\lib\site‑packages\IPython\core\history.py", line 229, in __init__
self.init_db()
File "", line 2, in init_db
File "D:\Anaconda3\lib\site‑packages\IPython\core\history.py", line 113, in catch_corrupt_db
os.rename(self.hist_file, newpath)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Hemantha\\.ipython\\profile_default\\history.sqlite' ‑> 'C:\\Users\\Hemantha\\.ipython\\profile_default\\history‑corrupt.sqlite'


Please help.




Mauricio Azálgara Bedoya

unread,
Jun 19, 2020, 12:44:36 PM6/19/20
to spyd...@googlegroups.com
- If the issue is technically related to the Kernel:
You may restart the Kernel.
If the issue persists, you may reinstall Anaconda.
You can access the troubleshooting of Anaconda as well.

- You may troubleshoot the error if the issue is related to your programming script by the following tasks: (1) Excepting the error using the library guidelines (it seems to be that it is OS library; however that error is not able to be excepted; see https://docs.python.org/2/library/exceptions.html#exception-hierarchy).

- You may review Stackoverflow website to look for some other experience similar to yours to figure out a solution. For example, you may browse the following website: https://stackoverflow.com/questions/55627894/permissionerror-winerror-32  (also can post your case).

Regards,

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/5a5fde5e-d884-4635-b93a-3a9fb6f125a3o%40googlegroups.com.


--

Atentamente,

Mauricio Azálgara Bedoya

Dirección: 120 Calle Lima | Int. A-1, Yanahuara

                   04017 Arequipa

                   PERU

Móvil: ++51 998 050 690

Teléfono: ++51 54 317 803

Cuenta Skype: mazalgarab

Reply all
Reply to author
Forward
0 new messages