
from vtkpython import *

print "VTK Version", vtkVersion().GetVTKVersion()

from vtkConstants import *

from vtkRenderWidget import vtkRenderWidget,vtkTkRenderWidget

#from vtkImageWindowWidget import vtkImageWindowWidget,vtkTkImageWindowWidget
#from vtkImageViewerWidget import vtkImageViewerWidget,vtkTkImageViewerWidget

from vtkImageImportFromArray import *
from vtkImageExportToArray import *



from vtkpython import *
from vtkConstants import *
from vtkRenderWidget import vtkRenderWidget,vtkTkRenderWidget
#from vtkImageWindowWidget import vtkImageWindowWidget,vtkTkImageWindowWidget
#from vtkImageViewerWidget import vtkImageViewerWidget,vtkTkImageViewerWidget

# try to load the python import/export classes if Numeric is available
try:
    from Numeric import *
    from vtkImageImportFromArray import *
    from vtkImageExportToArray import *
except ImportError:
    pass

Remove dependancy on vtkVersion Place a try/except around modules that required Numeric
FIX: Remove dependancy on vtkVersion
     Place a try/except around modules that required Numeric

  
  from vtkpython import *
- 
- print "VTK Version", vtkVersion().GetVTKVersion()
- 
  from vtkConstants import *
- 
  from vtkRenderWidget import vtkRenderWidget,vtkTkRenderWidget
- 
  #from vtkImageWindowWidget import vtkImageWindowWidget,vtkTkImageWindowWidget
  #from vtkImageViewerWidget import vtkImageViewerWidget,vtkTkImageViewerWidget
  
+ # try to load the python import/export classes if Numeric is available
+ try:
+     from Numeric import *
- from vtkImageImportFromArray import *
+     from vtkImageImportFromArray import *
- from vtkImageExportToArray import *
+     from vtkImageExportToArray import *
+ except ImportError:
+     pass
  
- 
Remove dependancy on vtkVersion Place a try/except around modules that required Numeric
## Code Before:

from vtkpython import *

print "VTK Version", vtkVersion().GetVTKVersion()

from vtkConstants import *

from vtkRenderWidget import vtkRenderWidget,vtkTkRenderWidget

#from vtkImageWindowWidget import vtkImageWindowWidget,vtkTkImageWindowWidget
#from vtkImageViewerWidget import vtkImageViewerWidget,vtkTkImageViewerWidget

from vtkImageImportFromArray import *
from vtkImageExportToArray import *


## Instruction:
Remove dependancy on vtkVersion Place a try/except around modules that required Numeric
## Code After:

from vtkpython import *
from vtkConstants import *
from vtkRenderWidget import vtkRenderWidget,vtkTkRenderWidget
#from vtkImageWindowWidget import vtkImageWindowWidget,vtkTkImageWindowWidget
#from vtkImageViewerWidget import vtkImageViewerWidget,vtkTkImageViewerWidget

# try to load the python import/export classes if Numeric is available
try:
    from Numeric import *
    from vtkImageImportFromArray import *
    from vtkImageExportToArray import *
except ImportError:
    pass
