mcberk / wrapitk

Automatically exported from code.google.com/p/wrapitk
0 stars 0 forks source link

WrapITK 0.3.0-win32 having issues with python 2.5 #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.import vtk
2. read1=itk.Image[itk.UC,3]
3.

What is the expected output? What do you see instead?

the Error: python26.dll is not found!!

and then when i perform the above command again i get

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    read1=itk.Image[itk.UC,3]
  File "C:\Program Files\WrapITK
0.3.0\lib\InsightToolkit\WrapITK\Python\itkLazy.py", line 18, in
__getattribute__
    itkBase.LoadModule(module, namespace)
  File "C:\Program Files\WrapITK
0.3.0\lib\InsightToolkit\WrapITK\Python\itkBase.py", line 24, in LoadModule
    swig.__dict__.update(this_module.swig.__dict__)
AttributeError: 'module' object has no attribute 'swig'

What version of the product are you using? On what operating system?

i have downloaded the binaries (where the WRAPITK is compiled for python 2.5):

1.WrapITK-0.3.0-win32.exe
2.ITK-3.14.0-win32.exe 

im using Windows Vista Ultimate (32 bit), and python version:2.5.4

Please provide any additional information below.

Original issue reported on code.google.com by saad.mas...@gmail.com on 2 Jul 2009 at 4:13

GoogleCodeExporter commented 9 years ago
I believe both the binaries( WrapITK-0.3.0-win32.exe and ITK-3.14.0-win32.exe) 
had
their binding language Python 2.5, then why python26.dll is required ??

Original comment by saad.mas...@gmail.com on 6 Jul 2009 at 11:21

GoogleCodeExporter commented 9 years ago
I had the same problem. Using python version 2.6.4 solved it.
Maybe you could try that?

Extra info:
- running windows 7, 64-bit
- using WrapITK-0.3.0-win32.exe and ITK-3.14.0-win32.exe
I tried the windows binary installers in combination with the following python
versions: 2.5.4/32bit, 2.5.4/64bit, 2.6.4/32bit and 2.6.4/64bit.
ONLY in the python 2.6.4 32bit did ITK through wrapITK work.

So even though it says on the wiki that the supported language is python 2.5, 
for me
it did not work in 2.5 but did work in 2.6.

In python 2.5.4 I also got that same confusing error: missing python26.dll. It 
is
given when you try the following on the commandline: from InsightToolkit import 
*
Strange indeed IF the installers were really intended to support only version 
2.5.

Original comment by inochidz...@gmail.com on 2 Jan 2010 at 6:34