python - How do I use Liclipse to write a ParaView script? -


i've tried following the directions here without success. here of environment variables:

path: c:\python34\;c:\python34\scripts;...;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\vtk

pythonpath: c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\vtk;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3

if i'm in liclipse , type c = cone() gets underlined in red , "undefined variable" message, whether have from paraview.simple import * @ top or not. can, however, type things paraview.simple.getactivesource() , paraview.simple.demo1() without seeing problem if i've imported paraview.simple. then, if try run code command prompt, message says:

file "c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\paraview\vtk__init__.py", line 7, in module

from vtkcommoncorepython import * 

importerror: dll load failed: specified module not found.

if write from paraview.simple import * in idle 2.7.8 window, same error. if use idle 3.4.3 window, syntax error.

the success i've had writing code appears have errors, , either loading macro within paraview or pressing "run script" button paraview's python shell.


edit: tried reinstalling python 2, thinking maybe paraview works python 2? changed environment variables little:

path: c:\python27\;c:\python27\scripts;c:\python34\;c:\python34\scripts;...;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\vtk

now, error has changed this:

file "c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\paraview\vtk__init__.py", line 7, in module

from vtkcommoncorepython import * 

importerror: dll load failed: %1 not valid win32 application.


edit: problem has been resolved, thought should share path variables.

path: c:\python27\;c:\python27\scripts;...;c:\program files (x86)\paraview 4.3.1\bin

pythonpath: c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages;c:\program files (x86)\paraview 4.3.1\lib\paraview-4.3\site-packages\vtk

yes, need work python 2 (64bit). make sure adding path folder *.pyd , *.dll (i think it's folder called bin)


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -