[Paraview] import PyQt4.QtGui DLL load failed
Dave Partyka
dave.partyka at kitware.com
Tue Oct 12 22:06:46 EDT 2010
That said, I have a feeling your error is most likely Visual Studio runtime
related as I can import that module with no errors on my home Windows 7
machine with no development tools installed.
Upgrading to SP3, installing the runtime redistributable at the system level
(
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en),
or possibly copying the runtime dlls (msvcm90.dll, msvcp90.dll and
msvcr90.dll) located in ParaView/bin, into
ParaView/bin/Lib/site-packages/PyQt4 may get this working for you.
On Tue, Oct 12, 2010 at 9:40 PM, Dave Partyka <dave.partyka at kitware.com>wrote:
> Humm, It was not my intention to package PyQt4 in the Windows installer.
>
> Quite frankly, I will mostly likely rerun the package step and make sure
> that those site-packages are not included. Regardless, nothing in ParaView
> uses PyQt. I had it built on my system when I was building the VisTrails
> plugin for the 3.6.2 release.
>
>
> On Tue, Oct 12, 2010 at 8:34 PM, <m.c.wilkins at massey.ac.nz> wrote:
>
>>
>> Hi,
>>
>> I'm sorry if this is answered elsewhere, I have googled around, but
>> not found anything that actually fixes the problem.
>>
>> I have Windows XP SP2, completely fresh install, I just installed it
>> in my virtualbox. The only things on the box are virtualbox tools,
>> paraview 3.8.1 which I just downloaded, and process monitor. When I
>> bring up the Python Shell and type
>>
>> import PyQt4.QtGui
>>
>> I get
>>
>> Traceback (most recent call last):
>> File "<console>", line 1, in <module>
>> ImportError: DLL load failed: This application has failed to start
>> because the application configuration is incorrect. Reinstalling the
>> application may fix this problem.
>>
>> There is no other python or VTK on the box to confuse things.
>>
>> In an attempt to fix the problem I added some things to my PATH and
>> PYTHONPATH.
>> You can see what I added by these commands I type in the Python Shell:
>>
>> >>> import os
>> >>> print os.environ['PATH']
>> C:\Program Files\ParaView 3.8.1\bin;C:\Program Files\ParaView
>> 3.8.1\lib\paraview-3.8;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
>> >>> print os.environ['PYTHONPATH']
>> C:\Program Files\ParaView 3.8.1\bin;C:\Program Files\ParaView
>> 3.8.1\lib\paraview-3.8
>> >>>
>>
>> In an attempt to debug the problem I installed process monitor and this is
>> its
>> output with a filter that only allows output for the paraview.exe
>> programme
>> (there are some failures, but a lot of successes on opening
>> PyQt4\QtGui.pyd)
>>
>> 1:32:57.2026294 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4 SUCCESS Desired Access:
>> Read Data/List Directory, Synchronize, Disposition: Open, Options:
>> Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read,
>> Write, AllocationSize: n/a, OpenResult: Opened
>> 1:32:57.2030339 PM paraview.exe 1696 QueryDirectory C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui NO SUCH FILE
>> Filter: QtGui
>> 1:32:57.2034454 PM paraview.exe 1696 CloseFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4 SUCCESS
>> 1:32:57.2041438 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO
>> Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write,
>> AllocationSize: n/a, OpenResult: Opened
>> 1:32:57.2046956 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4 SUCCESS Desired Access:
>> Read Data/List Directory, Synchronize, Disposition: Open, Options:
>> Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read,
>> Write, AllocationSize: n/a, OpenResult: Opened
>> 1:32:57.2050833 PM paraview.exe 1696 QueryDirectory C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> Filter: QtGui.pyd, 1: QtGui.pyd
>> 1:32:57.2055144 PM paraview.exe 1696 CloseFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4 SUCCESS
>> 1:32:57.2061960 PM paraview.exe 1696 QueryOpen C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> CreationTime: 4/15/2010 5:10:56 AM, LastAccessTime: 10/13/2010 1:19:52 PM,
>> LastWriteTime: 4/15/2010 5:10:56 AM, ChangeTime: 10/13/2010 12:29:53 PM,
>> AllocationSize: 5,570,560, EndOfFile: 5,566,976, FileAttributes: A
>> 1:32:57.2068316 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options:
>> Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode:
>> Read, Delete, AllocationSize: n/a, OpenResult: Opened
>> 1:32:57.2073440 PM paraview.exe 1696 CreateFileMapping C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE
>> 1:32:57.2073627 PM paraview.exe 1696 QueryStandardInformationFile
>> C:\Program Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd
>> SUCCESS AllocationSize: 5,570,560, EndOfFile: 5,566,976, NumberOfLinks: 1,
>> DeletePending: False, Directory: False
>> 1:32:57.2073789 PM paraview.exe 1696 CreateFileMapping C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> SyncType: SyncTypeOther
>> 1:32:57.2078932 PM paraview.exe 1696 CloseFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> 1:32:57.2098728 PM paraview.exe 1696 QueryOpen C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> CreationTime: 4/15/2010 5:10:56 AM, LastAccessTime: 10/13/2010 1:32:57 PM,
>> LastWriteTime: 4/15/2010 5:10:56 AM, ChangeTime: 10/13/2010 12:29:53 PM,
>> AllocationSize: 5,570,560, EndOfFile: 5,566,976, FileAttributes: A
>> 1:32:57.2104930 PM paraview.exe 1696 QueryOpen C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> CreationTime: 4/15/2010 5:10:56 AM, LastAccessTime: 10/13/2010 1:32:57 PM,
>> LastWriteTime: 4/15/2010 5:10:56 AM, ChangeTime: 10/13/2010 12:29:53 PM,
>> AllocationSize: 5,570,560, EndOfFile: 5,566,976, FileAttributes: A
>> 1:32:57.2111361 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options:
>> Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode:
>> Read, Delete, AllocationSize: n/a, OpenResult: Opened
>> 1:32:57.2116599 PM paraview.exe 1696 CreateFileMapping C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE
>> 1:32:57.2117196 PM paraview.exe 1696 CreateFileMapping C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> SyncType: SyncTypeOther
>> 1:32:57.2122544 PM paraview.exe 1696 CloseFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> 1:32:57.2128662 PM paraview.exe 1696 Load Image C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS Image
>> Base: 0x9450000, Image Size: 0x553000
>> 1:32:57.2609985 PM paraview.exe 1696 RegOpenKey HKCU SUCCESS
>> Desired Access: Maximum Allowed
>> 1:32:57.2610941 PM paraview.exe 1696 RegOpenKey
>> HKCU\Software\Policies\Microsoft\Control Panel\Desktop NAME NOT FOUND
>> Desired Access: Read
>> 1:32:57.2611561 PM paraview.exe 1696 RegOpenKey HKCU\Control
>> Panel\Desktop SUCCESS Desired Access: Read
>> 1:32:57.2612385 PM paraview.exe 1696 RegQueryValue HKCU\Control
>> Panel\Desktop\MultiUILanguageId NAME NOT FOUND Length: 256
>> 1:32:57.2612849 PM paraview.exe 1696 RegCloseKey HKCU\Control
>> Panel\Desktop SUCCESS
>> 1:32:57.2613444 PM paraview.exe 1696 RegCloseKey HKCU SUCCESS
>> 1:32:57.2619730 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd.2.Manifest NAME
>> NOT FOUND Desired Access: Generic Read/Execute, Disposition: Open, Options:
>> Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode:
>> Read, AllocationSize: n/a
>> 1:32:57.2625147 PM paraview.exe 1696 CreateFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd.2.Config NAME
>> NOT FOUND Desired Access: Generic Read/Execute, Disposition: Open, Options:
>> Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode:
>> Read, AllocationSize: n/a
>> 1:32:57.2927489 PM paraview.exe 1696 CloseFile C:\Program
>> Files\ParaView 3.8.1\bin\Lib\site-packages\PyQt4\QtGui.pyd SUCCESS
>> 1:32:57.2978893 PM paraview.exe 1696 QueryOpen C:\Program
>> Files\ParaView 3.8.1\bin\Lib\code.py SUCCESS CreationTime: 9/9/2008 4:58:32
>> AM, LastAccessTime: 10/13/2010 1:19:47 PM, LastWriteTime: 9/9/2008 4:58:32
>> AM, ChangeTime: 10/13/2010 12:29:49 PM, AllocationSize: 12,288, EndOfFile:
>> 10,528, FileAttributes: A
>>
>> I can't believe this can be difficult to fix, surely other people have ran
>> into
>> this?
>>
>> Anyway, any help much appreciated!
>>
>> Matt Wilkins
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101012/d4ce4ad4/attachment.htm>
More information about the ParaView
mailing list