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 <helle...@gmail.com> 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\\kernel󈛃f207ae251d.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 spyderlib+unsubscr...@googlegroups.com.
> 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 spyderlib+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/spyderlib/CAK8jhpYyApOode7z3V5W9mXfjMOSku3Lq76q6Q5BAQRDBGEnOQ%40mail.gmail.com.

Reply via email to