cannot resolve builtin module or type
code like this:
from collections import deque
import sys
or
args = list(args)
"sys", "deque" and "list" are mark as "unresolved module" or "unresolved reference", althorugh the program can run in pycharm correctly.
How to fix this problem?
system: Mac OS X 10.9.4
pycharm version: 3.4
from collections import deque
import sys
or
args = list(args)
"sys", "deque" and "list" are mark as "unresolved module" or "unresolved reference", althorugh the program can run in pycharm correctly.
How to fix this problem?
system: Mac OS X 10.9.4
pycharm version: 3.4
Please sign in to leave a comment.
try: selected_choice = p.choice_set.get(pk=request.POST['choice']) except (KeyError, Choice.DoesNotExist): # Redisplay the poll voting form. return render(request, 'polls/detail.html', { 'poll': p, 'error_message': "You didn't select a choice.", })system: Mac OS X 10.9.3
pycharm: 3.4.1 Build 135.1057
In my instance I'm using a virtualenv created by PyCharm, which has its own Python 2.7.8. All of this seems to be working fine, just PyCharm showing KeyError (and I assume anything not explicitly imported) as unresolved.
I tried reproducing the issue but the new virtualenvs I created as a project in PyCharm now seem to have the built ins indexed.