473,883 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Py thon22\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 4873
David Bolen <db**@fitlinxx. com> wrote in message news:<ur******* ****@fitlinxx.c om>...
mi***********@y ahoo.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\Py thon22\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
1818
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 the packages and python, and taking the computer over from soemone else. I have recently carried out a clean install of Linux RH 9.0, hoping this may eleviate the problems. I hoped that the prerequisites would already be installed, but I doubt
8
4860
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 GPL Linux and Windows versions. I prefer Qt to wxWindows, but am confused with all the Windows licensing issues. For the moment this is just for my own tinkering and utility apps, but
1
2439
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 to install a number of KDE applications that require as a prerequisite SIP and PyQT. As an ordinary user, I recognize my limitations as far as programming. My dilemma is that this stuff is quite difficult and beyond my competence, but I
10
2223
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 the installation guide except for the compiling python as Macosx already has python. I had no problem with compiling SIP and also no problem with compiling PyQt nor did I have any error message during make install.
3
3034
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, some of them seeming potentially fragile, and I'm wondering if I'm looking at a job of perhaps hours (days?), or if everyone manages in just a few minutes. Thanks, Ken
2
4614
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 step excluded): 1. Fresh installation of Python25 2. I run the PyQt-gpl-4.1.1-Py2.5-Qt4.2.2.exe file which should include SIP 3. I run the qt-win-opensource-4.2.2-mingw.exe file
2
2958
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 /etc/apt/sources.list file are: ******************************************************************************** deb http://in.archive.ubuntu.com/ubuntu/ dapper main restricted universe deb http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse deb...
1
2570
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 it's 2.5.1 -, installed the latest "qt-mac-opensource-4.3.3.dmg" and the latest sip 4.7.3. But when I then try to run python configure.py for PyQt 4.3.3 I get "Import Error: No module named sipconfig" (I also retried after a Reboot)
0
220
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 (tm). regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
0
9938
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9791
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11140
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7971
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
4218
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3232
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.