0

I am receiving Unresolved Import Error from PyDev in Eclipse and despite following SO posts, this one in particular:

PyQt4 names showing as undefined in eclipse, but it runs fine

I still can't solve this problem.

Like the above post I am trying to use the PyQt4 library. I have installed it, and it exists here on my computer:

C:\Python34\lib\site-packages\PyQt4

I have added it to the PYTHONPATH as the image below will show:

enter image description here

I have also tried adding it as an external library in the project properties as the below image will show (just in case):

enter image description here

According to the post referenced above because the library is C++ I need to add the PyQt4 library to the forced Builtins tab, this I have also done as shown here:

enter image description here

Yet I still get Unresolved errors as shown here:

enter image description here

And this is the stack trace:

enter image description here

Community
  • 1
  • 1
Single Entity
  • 2,925
  • 3
  • 37
  • 66

1 Answers1

0

It looks like it's not a "not found" error, rather is't an "invalid application" error. Googling your error pointed me to this post:

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

Are you sure you have the correct (e.g. 32 vs. 64) architecture library installed?

Community
  • 1
  • 1
mkirk
  • 3,965
  • 1
  • 26
  • 37