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 1 4867
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
|
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
|
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.
|
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
| |
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
|
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...
|
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)
|
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/
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |