[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] jpeg plugin not loading
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2008-10-26 14:44:53
Message-ID: ef7f3fc3bbf5b8a12d737d4eb92d2279 () localhost
[Download RAW message or body]

On Thu, 23 Oct 2008 13:23:54 -0400, Doug Bell <dougb@bellz.org> wrote:
> Phil Thompson wrote:
>> On Thu, 23 Oct 2008 07:17:18 -0400, Doug Bell <dougb@bellz.org> wrote:
>> > Phil Thompson wrote:
>> >> On Thu, 16 Oct 2008 08:02:11 -0400, Doug Bell <dougb@bellz.org>
wrote:
>> >> > Hi,
>> >> > 
>> >> > The plugin for jpeg image support is not loading on my windows
>> >> > installation of PyQt (from the 4.4.3-1 binary installer).  Jpeg
>> >> > images
>> >> > don't show up in a QTextBrowser and jpeg isn't listed as one of the
>> >> > supported formats in QImageReader.supportedImageFormats().
>> >> > 
>> >> > This works fine on Linux and on someone else's windows
installation,
>> >> > but
>> >> > not on mine.  I'm not sure whether it matters, but I don't have an
>> >> > administrator login to the only windows PC that I have access to. 
>> Does
>> >> > the PyQt install fail to properly setup plugins if installed as a
>> >> > regular user?
>> >> > 
>> >> > Do I need to complie Qt and PyQt from source to get this to work?
>> >> 
>> >> It should work.
>> > 
>> > It should?  I just tried this on another Windows PC - a laptop with an
>> > older (4.3.0) binary installation of PyQt.  Jpeg image support worked
>> > fine.  But images quit working after I upgraded to the 4.4.3 binary
>> > installation.
>> > 
>> > The only thing that is slightly unusual about both of these PCs is
that
>> > I don't have an admin login - I'm just a regular user.
>> > 
>> > Any ideas?
>> 
>> Does the qt.conf file that should be installed in the Python directory
>> look
>> Ok?
> 
> That fixed it!  The only qt.conf file was in the site-packages/PyQt4
> directory.  When I copied it to the Python25 directory, the jpeg plugin
> started working again.
> 
> I'm not sure why the PyQt installer didn't put the file there.  I'm
> don't have an admin login, but I do have write permission in that
> directory.  Or is it because Python isn't installed in its default
> location (it's in C:/Source/Python25 instead of C:/Python25).  The PyQt
> installer does give a initial warning (incorrectly) that Python is not
> installed, but the installer seesms to run OK otherwise.

...except that it obviously isn't.

The installer is checking the registry for where Python is installed
(specifically HKLM\Software\Python\PythonCore\2.5\InstallPath) and failing
to find anything.

I'll make some changes to the installer to try and make it more resilient.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic