Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Numpy- How to fix autocompletion in PyCharm 3.1.3

I was working on my project in PyCharm 3 that suddenly the power went off. After that when I tried to start PyCharm I encountered with a huge number of warnings about the last configuration! So I accept to reset all configuration.

Now when I import numpy and try to use autocompletion it doesn't show anything! It works but there is no autocompletion popup. I have no problem with OpenCV import which its autocompletion works fine(as before).

I read this and this and tried both of them but that doesn't work. I uninstalled NumPy and reinstalled it again but the problem didn't solved!

I'm using windows 7

UPDATE

I also update my PyCharm to 3.1.x(I removed the previouse version with its settings). The problem exists yet.

like image 920
Hadi Avatar asked Apr 26 '14 07:04

Hadi


Video Answer


1 Answers

It sounds like your caches have been corrupted. You can regenerate them from the file menu with "Invalidate Caches / Restart ..."

If that doesn't work the you can recreate the IDE's settings directory. See here for the location. If you've updated PyCharm, there may be multiple config versions. My linux PyCharm 3.1.3 directory is .PyCharm30, it may be the same for Windows.

  • Stop PyCharm
  • Move .PyCharmXX\system out of the way
  • Start PyCharm

If that doesn't work, try with the config sub-directory:

  • Stop PyCharm
  • Move .PyCharmXX\config out of the way
  • Start PyCharm

If all else fails, move the entire config directory out the way:

  • Stop PyCharm
  • Move .PyCharmXX out of the way
  • Start PyCharm

Note that the above will involve you having to re-enter licence keys etc.

like image 186
linuts Avatar answered Sep 21 '22 11:09

linuts