Can't add Python SDKs

Answered

Using IntelliJ Ultimate 2018.1 with updated Python plugin.
Didn't import any Python related stuff from previous version.

There's no possibility to add a Python SDK:


Clicking on the icon for 'Project Structure', then choosing 'Platform Settings -> SDKs', the clicking the 'plus sign', then clicking the popping-up 'Add...' box (there's no 'Add local...' or anything else)... nothing happens.

IDE log is here: https://pastebin.com/bCnWFgg2 

Any ideas?

20 comments

Please enable SSH Remote Run and Remote Hosts Access plugins, restart IntelliJ IDEA and check the problem again. Does the issue remain?

1

Hi,

 

I am having the same problem on CentOS  7.2.1511. I have both the SSH Remote Run and Remote Hosts Access plugins installed. Trying to add a Python SDK does nothing -- no errors, no window pops up.

 

0

Was able to resolve this by upgrading to latest version of intellij and the python plugin. Turns out the python plugin had a kill-switch hardcoded in:

 

WARN: Python not loaded: until build 173.SNAPSHOT < IU-181.4203.550

 

0

After updating to 2018.1, I also noticed that "Python SDK" was missing from Platform SDKs "Add new SDK". I resolved by going back to About/Check for updates and found that a bunch of plugins needed updating. After updating and restarting, issue was resolved for me.

0

Hi Anna,

thank you, enabling the plugins solved the issue.

0

Thanks Anna, enabling these plugins worked for me too. But this is not very friendly behavior - would be helpful to enhance the product to handle this more gracefully.

0

I came across a similar issue, for anyone else with a similar issue here are the details. On ubuntu 18.04 the default python is python3, there I found this in the log (see below). It was related to the Restart functionality. After installing python2.7 via apt I got a python binary in the PATH, fixing both the restart function and allowed me to add the python3 SDK that I already had installed.

INFO -   #com.intellij.util.Restarter - not supported: cannot find 'python' in PATH 
0

It's almost July and I keep installing build updates, when is this going to be fixed? This is a serious issue on a paid product and it is becoming a major issue now that i have to start new projects and I can't setup python SDKs.

We have a license server and over a thousand users. I'd expect this to be fixed a long time ago.

Do you want me to open a Separate issue about this?

EDIT: Installing The dependencies above solve the issue but there is still a lot of users who have this issue and we are spending a lot of time on this. I believe that if those plugins are required by the Python plugin, then they should be enabled when installing the Python plugin. Please make a hard dependency on them. Thanks.

 

1

It would be very nice to have an option to override the interpreter name check when configuring an SDK. There are other applications which use a custom interpreter name like Maya. I would like to override the name validation and tell PyCharm to use any binary name that acts like CPython (not just a binary starting with "Python")

Additionally, some applications embed Python and provide a Python-mode as a command line flag, for example "MyApplication --python script.py" acts like CPython for the purpose of running script.py. This would also be useful if feasible to support.

0

Hi Isaiah, mayapy should be supported.

some applications embed Python 

You can attach to such process with PyCharms debugger via Run | Attach to Process, 2018.2 EAP introduced a new option in Settings | Build, Execution, Deployment | Python Debugger which allows specifying a different substring for a process filter (python is a default one).

0

> Hi Isaiah, mayapy should be supported.

Yes, thanks, what I mean is that I have some arbitrary binary named FooPython or FooPy or anything else (which is actually CPython + some extras underneath), and I want PyCharm to accept that as the interpreter without requiring to have an entire customization class in PyCharm like MayaPy does.

(see https://github.com/Slicer/Slicer/pull/993 for a real example where this happened -- at least in that case we control the binary name, so we can change it)

 

2018.2 EAP introduced a new option

 

Thanks, useful!

0

Thank you for an example. I've created a ticket in our bug tracker: PY-30953.

0

Anna Morozova, could you please let me know how to do "Please enable SSH Remote Run and Remote Hosts Access plugins" ?

 

0

I have installed Python SDK on my Mac machine and can't add in IntelliJ Community edition while on Linux I can do that.

 

0

I'm having the same problem with 2018.2 but the mentioned plugins are enabled.  Any other tips?

0

Arthur - JetBrains folks work really hard to provide a product that is free for the vast majority of users. That's not a helpful comment, nor do you have any evidence to back it up.

0

Thanks Arthur! I believe the team is just busy, but it is frustrating. For what it’s worth, I haven’t seen much traction on my requests either. But I feel like there’s a small team supporting a large user base. Having been on the other side of the equation, I can sympathize. (Although my employer has actually paid for some Ultimate licenses :).

0

Hi Arthur,

Sorry for a late response.

Please have a look at this page in order to enable plugins https://www.jetbrains.com/help/pycharm/managing-plugins.html

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0

"I have installed Python SDK on my Mac machine and can't add in IntelliJ Community edition while on Linux I can do that." - Please provide more details (screenshot, log folder zipped https://uploads.services.jetbrains.com/ (Help | Show Log in...)). After uploading zip file please provide its name.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0

Please sign in to leave a comment.