[PyQt] Python 3.1 and problems importing QtCore
Arve Knudsen
arve.knudsen at gmail.com
Wed Jul 8 23:55:18 BST 2009
Do you have Qt libraries installed? To troubleshoot such problems
DependencyWalker can be a great help btw.
On 7/9/09, gpuk <gpuk at dasserver.com> wrote:
> Hi list
>
> First time poster and python/pyqt noob so please be gentle...
>
> Platform: WinXP
>
> I have Python 3.1 installed at "C:\Program Files\Python31"
>
> I have downloaded and installed PyQt-Py3.0-gpl-4.5.1-1.exe (I
> encountered a warning during the install saying it couldn't locate
> Python 3.0 but I opted to continue).
>
> I have also downloaded and installed the MSVC2008 C++ runtime DLLs
>
> Unfortunately, I cannot get any of the qtdemo's (located in "C:\Program
> Files\Python31\Lib\site-packages\PyQt4\examples\demos\qtdemo") to run.
>
> Trying to execute any of the *.py scripts located in the demos folder
> results in an error like the following:
>
> ##############################
> C:\Program
> Files\Python31\Lib\site-packages\PyQt4\examples\demos\qtdemo>colors.p
> y
> Traceback (most recent call last):
> File "C:\Program
> Files\Python31\Lib\site-packages\PyQt4\examples\demos\qtdemo\
> colors.py", line 3, in <module>
> from PyQt4 import QtGui
> ImportError: DLL load failed: The specified module could not be found.
> ###############################
>
> I have checked my system PATH and both "C:\Program
> Files\Python31\Lib\site-packages\PyQt4" and "C:\Program Files\Python31"
> are included. Typing "python" in a command window brings up the python
> interpreter as one would expect.
>
> I have checked the FAQs and searched the mailing list but apart from
> advice to do with setting the PATH variable I can't find any
> hints/solutions. Also, I'm not entirely sure if PyQt supports Python 3.1
> yet (it's not very clear as to whether it supports Python 3 and later or
> only Python 3.0).
>
> Apologies if I'm being stupid!
>
> Thanks,
> gpuk
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Sent from my mobile device
More information about the PyQt
mailing list