Qt unresolved reference

Hi Community,

As this Thread http://devnet.jetbrains.net/message/5300753#5300753 indicates PyQt is officially supported by PyCharm.

I was quite astonished when looking at some old projects of mine that the simple line

from PyQt4.QtCore import Qt

caused an 'unresolved reference" annotation in the IDE. Thus, every other code snippet which uses the Qt module has the same annoation. This is pretty annoying.

I currently running the latest stable version (1.3.1). Do you have any ideas how to resolve this problem. Using python 2.6 with PyQt 4.7.

I have referenced some similar problems below. Some of them have been marked as fixed but apparently are not. Maybe some regressions?

Forum posts:

http://devnet.jetbrains.net/message/5259068#5259068

Tracker:

http://youtrack.jetbrains.net/issue/PY-2571

http://youtrack.jetbrains.net/issue/PY-275

Grettings,

anopheles

6 comments
Comment actions Permalink

Hi again,

correction: I'm using PyCharm Version 1.2.1.

Is there any way I can expose the Qt module explicitly to PyCharm?

Greetings,

anopheles

0
Comment actions Permalink

Just for the record. The problem is still showing in version 1.5.1

Greetings,

anopheles

0
Comment actions Permalink

Hello anopheles,

Just for the record. The problem is still showing in version 1.5.1

Which OS are you using? How is PyQt installed? Does the problem remain if

you press "Reload" in Settings | Python Interpreters?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

I'm running Windows 7 with Python 2.7 and PyQt-Py2.7-x86-gpl-4.8.4-1.exe. "Reload" in Settings | Python Interpreters" didn't do the trick.

A simple "from PyQt4.QtCore import Qt" shows the unresolved reference error.

Grettings,

anopheles

0
Comment actions Permalink

Hello.

I confirm the problem still persists.

I have downloaded the latest version 1.5.2 and although the code executes well, PyCharm reports "unresolved reference."

I'm using:

Windows 7 Ultimate x64

Python 3.2 x64

PyQt 4.8.4 x64

I had first installed Python, then PyQt and now PyCharm.

O. Vencovsky

0
Comment actions Permalink

Works for me on a clean install of PyCharm 1.5.2 on Windows 7 64-bit, with both Python 2.6.6 and 2.7.2 using PyQt4 4.8.4-1.

For each Python version tested, the PATH environment variable contained only the matching Lib\site-packages\PyQt4 folder.

0

Please sign in to leave a comment.