python - Which of the three installed PyQt DLL directories do I want? -


i've tried installing python , qt several times keep running same problem: examples included in pyqt4 installation fail run. in latest attempt used instructions found here, , installed python 3.1.3 , pyqt 4.8.3 python 3.1, 32-bit versions.

i'm running winxp sp3 on dell m65 (t7200, 2gb ram).

my installation directories are: c:\python31 , c:\qt\2010.05 (both of these defaults respective install programs.)

after attempting run score.py c:\python31\lib\site-packages\pyqt4\examples\demos\qtdemo directory received following error:

 traceback (most recent call last):   file "c:\python31\lib\site-packages\pyqt4\examples\demos\qtdemo\score.py", line 43, in      colors import colors   file "c:\python31\lib\site-packages\pyqt4\examples\demos\qtdemo\colors.py", line 45, in      pyqt4 import qtgui importerror: dll load failed: specified procedure not found. 

there several answers provided similar error message in this stackoverflow question, none of them seems answer problem.

i have verified directories in env.path correct , searched local drives qt*.dll in other system directories--there none in directories other installation directory trees listed above.

however, of qt*.dll files found on local drive have 3 copies, each different size , creation date. 3 directories (and modified dates) show are: c:\python31\lib\site-packages\pyqt4\bin (11/11/2010), c:\qt\2010.05\bin (8/24/2010), , c:\qt\2010.05\qt\bin (9/13/2010). example, sizes of qtgui4.dll 7757kb, 8080kb, , 9584kb, respectively.

it seems wrong dll being loaded, in order should put directories in path? in following order:

%systemroot%\system32; c:\qt\2010.05\qt\bin; c:\qt\2010.05\bin; c:\qt\2010.05\mingw\bin; c:\python31; c:\python31\lib\site-packages\pyqt4\bin;

you don't need install qt yourself. can see, pyqt brings it's own versions - why not try putting first in path?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -