472,351 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

installing PyQt

Hi, I'm trying to install PyQt for windows together with
non-commercial Qt version 2.3.0. When I try to run a sample Qt
program I get this error:

File "c:/DOCUME~1/mossey/LOCALS~1/Temp/python-1872fAk", line 1, in ?
from main_qt import *
File "main_qt.py", line 2, in ?
from qt import *
File "C:\PROGRA~1\Python22\lib\site-packages\qt.py", line 17, in ?
import libsip
ImportError: DLL load failed: The specified module could not be found.

I'm assuming it can't find libsip.dll. This file is located in the
directory C:\Program Files\Python22\Lib\site-packages\ and I added
that directory to both the PYTHONPATH and the PATH. This is windows
2000 so I used the system dialog to do it, and then rebooted the
computer (I don't know if rebooting is necessary). I keep getting the
same error. I tried copying libsip.dll to the C:\winnt directory and
it still didn't find it. Can someone familiar with Python on Windows
2000 give me a clue here?

Regards,
Mike
Jul 18 '05 #1
1 4806
David Bolen <db**@fitlinxx.com> wrote in message news:<ur***********@fitlinxx.com>...
mi***********@yahoo.com (Michael Mossey) writes:
Hi, I'm trying to install PyQt for windows together with
non-commercial Qt version 2.3.0. When I try to run a sample Qt
program I get this error:

File "c:/DOCUME~1/mossey/LOCALS~1/Temp/python-1872fAk", line 1, in ?
from main_qt import *
File "main_qt.py", line 2, in ?
from qt import *
File "C:\PROGRA~1\Python22\lib\site-packages\qt.py", line 17, in ?
import libsip
ImportError: DLL load failed: The specified module could not be found.

I'm assuming it can't find libsip.dll. This file is located in the
directory C:\Program Files\Python22\Lib\site-packages\ and I added
that directory to both the PYTHONPATH and the PATH. This is windows
2000 so I used the system dialog to do it, and then rebooted the
computer (I don't know if rebooting is necessary). I keep getting the
same error. I tried copying libsip.dll to the C:\winnt directory and
it still didn't find it. Can someone familiar with Python on Windows
2000 give me a clue here?


It's hard to believe that it won't find libsip.dll if it's in the
site-packages directory since that's part of your default Python
search path (even without a PYTHONPATH setting). And since libsip is
a direct "import" (and not a system DLL dependency), the search path
that governs things is Pythons (e.g., sys.path, including PYTHONPATH)
and not the Windows system search path (aka PATH).

But it wouldn't hurt for you to verify sys.path after starting a copy
of Python just to ensure that it has all the directories you expect.

So if we assume libsip itself is found, the problem could be in
loading it due to another dependency. Do you have the underlying Qt
DLL (I forget the exact name for the non-commercial version) also
somewhere in the system PATH? libsip.dll depends on the Qt DLL, and
if it fails to find it, libsip in turn will fail to load and can
produce precisely the traceback as above.

Although if it is a failing dependent DLL, in such a case typically
you'll also get a system dialog complaining about not finding the
underlying dependent DLL, but maybe you've just answered that dialog
without reading it closely? (or maybe somehow those dialogs are being
suppressed in your setup)

Another alternative would be some other dependency - it might be worth
checking if all the dependencies for libsip.dll can be resolved on
your system. A tool like depends (comes with various MS
toolkits/development environments), or cygcheck (if you have cygwin)
or others you can download can check this.

-- David

Hi, thanks very much. Your information was helpful in tracking down
the problem, which turned out to be that PyQt was built against Python
2.3 and I was running Python 2.2.2. I'm running Python from Emacs, so
I had to do a few more things to get Emacs to recognize a new version
of python -- turns out I had to re-byte-compile the python-mode.el
file. It all seems to work now. Although you didn't suggest this
solution directly, your information allowed me to eliminate things and
quickly move toward the right answer. Isn't it neat how that works?

-Mike
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JamesW | last post by:
Dear All, I need to install wxPython to run some programs that interest me. I have had numerous problems, probably due to knowing little about...
8
by: simo | last post by:
OK, so I'm at the stage where I want to make a choice between wxPython and PyQt. Currently I'm using wxPython mainly due to the fact that it has...
1
by: Benjamin Sher | last post by:
Dear friends: I would appreciate your help in installing SIP with QT support so that I can then install PyQT. My reason is that I would like...
10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed...
3
by: Kenneth McDonald | last post by:
I'm wondering if anyone has experience/tips to offer on installing Eric on OS X and XP. Installation on both seems to require a number of steps,...
2
by: wd.jonsson | last post by:
Hello! I must be doing something wrong here because I'm getting all these missing .dll messages after installing PyQT. This is what I've done (no...
2
by: Pradnyesh Sawant | last post by:
Hello, I have a newly installed ubuntu 6.06 system. I am trying to install pyqt4 on it, but without success. The contents of the...
1
by: Marcus Strube | last post by:
Hi I was trying to install PyQt, but things don't work as promised. I'm working on OS X 10.5, didn't install another version of Python - so...
0
by: Steve Holden | last post by:
Saurabh Agrawal wrote: .... and thanks for offering such great support to 2.6, Phil. PyQt is one of those package that just goes on Just Working...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.