mcberk / wrapitk

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

Error running Python tests #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
My Error message when I run the test TestDirectory.py:
import _itkAnisotropicFourthOrderLevelSetImageFilterPython
ImportError: No module named 
_itkAnisotropicFourthOrderLevelSetImageFilterPython

What version of the product are you using? On what operating system?
WrapITK 0.3 (patch by OTB-Wrapping project) 

Please provide any additional information below.
In my wrapitk-binary/lib directory, there is no 
_itkAnisotropicFourthOrderLevelSetImageFilterPython.so but there is a 
itkAnisotropicFourthOrderLevelSetImageFilterPython.pyc. I think that C++ 
shared libraries and .pyc are not generated in the same way. 

Which file need to be modify to produce .pyc with an '_' at the beginning?

Thank you in advance.

Manuel  

Original issue reported on code.google.com by manuel.g...@gmail.com on 1 Feb 2010 at 12:52

GoogleCodeExporter commented 9 years ago
What is the version of swig? Some version may lead to this kind of message.
1.2.40 is OK

Original comment by gaetan.l...@gmail.com on 22 Feb 2010 at 11:45

GoogleCodeExporter commented 9 years ago
Hello Gaetan,

I am using swig packages available with ubuntu 9.
10 (swig 1.3.36)

1.2.40 is OK or 1.3.40?

Best regards,

Manu

Original comment by manuel.g...@gmail.com on 2 Mar 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Sorry, I mean 1.3.40, not 1.2.40.

swig 1.3.36 should be ok, but has not been tested for some time. If you can try 
with 
the last swig, that's just great :-)

Gaëtan

Original comment by gaetan.l...@gmail.com on 4 Mar 2010 at 4:13