Problems with autocomplete in django and flask projects

Even typing "Ctrl + Space" does not suggest the editor.
What to do?

Attached some pictures.
Thank you!
Captura de tela 2012-12-29 às 13.58.26.png

Captura de tela 2012-12-29 às 13.59.16.png
6 comments
Comment actions Permalink
Can it be?

Failed modules
Python 2.7.3 (/Library/Frameworks/Python.framework/Versions/2.7/bin/python)
Nav
Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available.
0
Comment actions Permalink
And this error log in my venv:

Failed modules
Python 2.7.3 virtualenv at ~/work/venvs/blog
Nav
Generation of skeletons for the modules above will be tried again when the modules are updated or a new version of generator is available.
0
Comment actions Permalink
Mário, the completion should work here. I was unable to reproduce your issue in PyCharm 2.6.3, Mac OS X, Django 1.3. Please send a bug report with more details to our bug tracker if the issue persists.

The skeleton generation error is unrelated. It only states that it's impossible to import and introspect the Nav module using the selected interpreter. You can try to import it in the console manually to see what is actually happening:

>>> import Nav
prettyPrint();
0
Comment actions Permalink
Hello Andrey,

My environment:

Mac OS X 10.6.8 (Snow Leopard)
Python 2.7.3
Django 1.4.3 Final

Import in Nav module in the PyCharm Python console:

/Users/mario/work/venvs/test_django/bin/python -u /Applications/PyCharm.app/helpers/pydev/pydevconsole.py 53614 53615
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
sys.path.extend(['/Users/mario/PycharmProjects/test_django'])
import Nav

Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: Navigation Services not available in 64-bit mode
import django
django.VERSION

(1, 4, 3, 'final', 0)

Captura de tela 2012-12-30 às 13.33.26.png
0
Comment actions Permalink
Hello Andrey.
The problem wasn't solved.
If i use Python 2.6.1 (Native in Mac OS X), hasn't problem, but, if i use latest version of Python 2 (Python 2.7.3 in python.org), it show this problem.
0
Comment actions Permalink
Please file a bug report in our issue tracker. Providing the smallest code example for which the problem still exists would be very helpful.
0

Please sign in to leave a comment.