i have this same problem, i got the error below. Please, how can i resolve this.
An error ocurred while starting the kernel The error is: Traceback (most recent call last): File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client kernel_manager.start_kernel(stderr=stderr_handle) File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel self.write_connection_file() File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\site‑packages\jupyter_client\connect.py", line 547, in write_connection_file kernel_name=self.kernel_name File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\site‑packages\jupyter_client\connect.py", line 212, in write_connection_file with secure_write(fname) as f: File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\contextlib.py", line 112, in __enter__ return next(self.gen) File "C:\Users\BONIFACE CHI\Anaconda3\envs\PythonCPU\lib\site‑packages\jupyter_client\connect.py", line 102, in secure_write with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f: PermissionError: [Errno 13] Permission denied: 'C:\\Users\\BONIFACE CHI\\AppData\\Roaming\\jupyter\\runtime\\kernel�d163.json' On Tue, Oct 15, 2019 at 1:21 AM Devidas Kushnure <[email protected]> wrote: > I had a similar problem that spyder was not working with the virtual > environment. I just used installed spyder in that environment and problem > gets resolved. This is the simplest way but you will need to install every > time wherever you create a new environment. > But you can do it with the base version by changing the interpreter > setting and path of the spyder. Hope this may help you. > > On Mon, Oct 14, 2019 at 12:14 PM Markus Heller <[email protected]> wrote: > >> Hi, >> >> this is with Spyder 3.3.6 and conda 4.7.10. >> >> I installed conda and created a new environment, into which I installed >> the Spyder kernels (0.5.1, same as in base environment), as described here: >> https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder >> . >> >> Spyder is able to connect to the kernel using the Default Python >> interpreter, but if I want to use the interpreter of the new environment, I >> get the following traceback in the ipython console: >> >> Traceback (most recent call last): >> File "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\runpy.py", >> line 193, in _run_module_as_main >> "__main__", mod_spec) >> File "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\runpy.py", >> line 85, in _run_code >> exec(code, run_globals) >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\spyder_kernels\console\__main__.py", >> line 11, in >> start.main() >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\spyder_kernels\console\start.py", >> line 306, in main >> kernel.initialize() >> File "", line 2, in initialize >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\traitlets\config\application.py", >> line 87, in catch_config_error >> return method(app, *args, **kwargs) >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\ipykernel\kernelapp.py", >> line 530, in initialize >> self.write_connection_file() >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\ipykernel\kernelapp.py", >> line 227, in write_connection_file >> iopub_port=self.iopub_port, control_port=self.control_port) >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\jupyter_client\connect.py", >> line 212, in write_connection_file >> with secure_write(fname) as f: >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\contextlib.py", line >> 112, in __enter__ >> return next(self.gen) >> File >> "C:\Users\mheller\Anaconda3\envs\course_dataquest\lib\site‑packages\jupyter_client\connect.py", >> line 102, in secure_write >> with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f: >> PermissionError: [Errno 13] Permission denied: >> 'C:\\Users\\mheller\\AppData\\Roaming\\jupyter\\runtime\\kernelf207ae251d.json' >> >> This is most likely an issue with my computer config, since the approach >> described works fine on a colleague's machine, but I have no idea where to >> look. File permissions should be identical on both machines (set by out IT >> department). I'd be grateful for any hints ... >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/spyderlib/5ecc95a9-7e38-43fe-8ccb-2d69b3d9ffdc%40googlegroups.com >> <https://groups.google.com/d/msgid/spyderlib/5ecc95a9-7e38-43fe-8ccb-2d69b3d9ffdc%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/spyderlib/CAK8jhpYyApOode7z3V5W9mXfjMOSku3Lq76q6Q5BAQRDBGEnOQ%40mail.gmail.com > <https://groups.google.com/d/msgid/spyderlib/CAK8jhpYyApOode7z3V5W9mXfjMOSku3Lq76q6Q5BAQRDBGEnOQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/CALFOgXoHTnGSzgWhK06V0139-vu3A2NxRiBX3z7UuQjTR8fbcg%40mail.gmail.com.
