Error configuring SDK when adding existing / new conda environment as python interpreter

Hi all,

I just reinstalled pycharm and miniconda3, created a conda environment with the following commands

#create an environment and add biopython
conda create --name conda_env1 biopython
#activate the environment
conda activate conda_env1

and tested the environment using the anaconda prompt.

When I try to use the environment as python interpreter for a pycharm project, I go to Add Python Interpreter - Conda environment - Existing environment, the environment created is listed, but when I select it I get the following error

Error configuring SDK: 1 : child= 'Miniconda3 -> 2'; child.nameEqualTo(nameId)=false; child.getClass()=class com.intellij.openapi.vfs.impl.FilePointerPartNode; child.nameId=188; child.getName()='Miniconda3'; nameId=31499; name='miniconda3'; compare(child) = 0; UrlPart.nameEquals: true; name.equals(child.getName())=false.
Please make sure that C:\Users\xxxxx\miniconda3\envs\conda_env1\python.exe is a valid home path for this SDK type.

I also tried to create a new conda environemnt from pycharm, and it gave me the same error.

Many thanks for any help with this, I would really like to be able to use conda envs!

 

 

 

5 comments
Comment actions Permalink

Do you by any chance use network-mounted folders, or symlinks anywhere in the interpreter configuration process? 

Could you share your [IDE logs](https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files) ?

You can upload them to our FTP: [FTP](https://uploads.services.jetbrains.com/) and let me know the file name.

0
Comment actions Permalink

Hi Andrey,

Thanks for your reply, no the interpreter configuration is just based on standard conda environment creation and selection. I have uploaded my log files with name

pycharm-logs-20200323-183531.zip

Many thanks for your help!
0
Comment actions Permalink

I have the same issue, using the latest Miniconda. The error happens when creating a new environment using IntelliJ, importing an existing conda environment, or importing the existing conda environment.

The problem does not occur in PyCharm 2019.2.1 (Community Edition) build PC-192.6262.63

Is there a fix?

0
Comment actions Permalink

Thank you, but unfortunately I could not find the file with that name on our FTP server. 

Could you please try a clean reinstall of PyCharm while also deleting all of the related directories for 2019.3 and 2020.1 versions:

[Default directories for PyCharm 2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#default-dirs)

[Default directories for PyCharm 2019.3](https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#default-dirs)

If that doesn't help, please submit an issue to https://youtrack.jetbrains.com/issues, and attach IDE logs, and also your miniconda version.

0
Comment actions Permalink

I was getting a similar error. There was some problem in the path due to some previous set of commands I had run. I could not fix that (tried deleting and recreating the source env, and even the source code directory but it didn't work). Choosing a different env name worked for me. For example, instead of `conda_env1`, choose something else.

0

Please sign in to leave a comment.