[PyQt] jpeg plugin not loading

Phil Thompson phil at riverbankcomputing.com
Sun Oct 26 14:44:53 GMT 2008


On Thu, 23 Oct 2008 13:23:54 -0400, Doug Bell <dougb at bellz.org> wrote:
> Phil Thompson wrote:
>> On Thu, 23 Oct 2008 07:17:18 -0400, Doug Bell <dougb at bellz.org> wrote:
>> > Phil Thompson wrote:
>> >> On Thu, 16 Oct 2008 08:02:11 -0400, Doug Bell <dougb at 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


More information about the PyQt mailing list