PYTHON incompatibility with latest 12.1.4 ultimate ?? Lost all python facets/modules

Hi,
   What is going on with the latest 12.1.4 ?   I use python on the job:  what gives here?   A new release of IJ should NOT be released if a major language is incompatible..

So now what, am I supposed to downgrade/revert back to earlier version of IJ?  How to do that??  What about my (prior ! ) existing python facets / modules ??

13 comments
Comment actions Permalink

Here is the screenshot

Screen Shot 2013-12-17 at 7.07.16 PM.png

0
Comment actions Permalink

Yes that fixes the issue.  Apparently the  "update" from 12.1.4 to 12.1.6 failed. But installing 12.1.6 from scratch does work.

0
Comment actions Permalink

Python is working now but all of the libraries are missing:  e.g.  numpy, matplotlib, lxml.   Does this mean I have to reinstall them ?   What about for 12.1.7 - do I have to repeat this entire process AGAIN??

0
Comment actions Permalink

Please try File | Invalidate Caches | Invalidate and Restart.

Make sure Python SDK is configured correctly for this module/project. Let the IDE index the selected Python interpreter modules and completion will work just fine.

0
Comment actions Permalink

Hi,
  I did the Invalidate and Restart - but no difference.

Now in 12.1.6 the python is back up, I am trying to get modules back in order.  You can see that all of my custom installed modules are "gone".

Screen Shot 2013-12-18 at 3.25.19 PM.png



I tried to reinstall module lxml and got the following error. Note the same problem occurs for pycurl.


Screen Shot 2013-12-18 at 3.21.11 PM.png

0
Comment actions Permalink

It's a known bug: http://youtrack.jetbrains.com/issue/PY-10124 .

The fix is currently available only for IntelliJ IDEA 13.0.1 + Python plugin 3.1 Beta 2.

I'll ask the responsible developer if it's possible to backport the fix into the Python plug-in for IntelliJ IDEA 12.1.6.

0
Comment actions Permalink

Thanks Serge,

One thing here; this functionality was working before.

I will be upgrading to IJ13 at some point but it is too early now - early adopters..

So given this is actually a regression in functionality hopefully this can be fixed in version 12.

0
Comment actions Permalink

Unfortunately, the fix is not trivial, it requires changes in both IDEA 12.1.6 and in Python plug-in. At the moment we are not sure if there will be 12.1.7 at all. Even if there will be a new build in 12 branch, it can take weeks for us to release (especially considering the upcoming holidays).

Developers say that it's not a regression, this bug existed forever since Python package management was introduced.

It's related to the permissions as currnetly it fails because your system requires packages to be installed by root while IDEA cannot properly ask for root permissions.

As a workaround you can install the missing packages from the Terminal as root or you can create a new virtualenv and configure Python SDK in IDEA from this virtualenv that will not require root to install/update packages.

0
Comment actions Permalink

The "regression" you are describing may be actually the different Python SDK configuration. Please double check that you are using the same path to python binary when adding the SDK as before. Probably you've used some other path or virtualenv which didn't require root to install/update packages, but now you have configured a new Python SDK using the system Python installation which requires root to manage the packages.

0
Comment actions Permalink

I suppose that is possible. I did not change anything - would the reinstallation have lost  a custom python installation of mine?

0
Comment actions Permalink

Installation is not lost, probably just the configuration. Find out the location of Python that already has these modules installed and configure it as your project Python SDK. Or install the missing modules from the Terminal for the current SDK.

0
Comment actions Permalink

OK here's the end result:  it appears the whole shebang had more to do with Mavericks 10.9 -> 10.9.1  then with Intellij.  I recompiled / built  lxml and pycurl. Funny thing is the first one is being found the second is not

Screen Shot 2013-12-18 at 4.59.14 PM.png

0

Please sign in to leave a comment.