wafo-project / pywafo

Wave Analysis for Fatigue and Oceanography
http://www.maths.lth.se/matstat/wafo/
Other
94 stars 42 forks source link

python crash when import wafo #1

Closed GoogleCodeExporter closed 9 years ago

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

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

I expect to succesfully import the module but Python crashed.

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

I have had the same problem with pywafo 0.11 and pywafo 0.1.2. (python 2.6; 
Windows 7)

Please provide any additional information below.

- numdifftools imported succesfully
- the python interpreter is provided within the pythonxy collection

Original issue reported on code.google.com by pa.ba...@gmail.com on 26 Oct 2010 at 4:14

GoogleCodeExporter commented 9 years ago
The crash happens when python import the c_library.pyd module and the 
"try...except" statement seems to be ineffective in order to bypass the problem.

The same happens when, once avoided the "import c_library" command, python run 
the "from wafo.gaussian import Rind" command.

By avoiding also this import statement no more crashes happen.
However the interpreter still warns of a syntax error cause seems that the 
module scipy.misc.doccer doesn't exist.

I attached the 3 modules I modified in order to run wafo.

Is it possible to solve the three problems in another way?

Thx

Paolo

PS Is there any up to date list of wafo classes, modules, etc.?

Original comment by pa.ba...@gmail.com on 27 Oct 2010 at 1:48

Attachments:

GoogleCodeExporter commented 9 years ago
The only solution for fixing this is to compile the extensions written in c and 
fortran again. For more info on how to compile the extensions and properly 
install pywafo see here: 
http://groups.google.com/group/wafo/browse_thread/thread/1f31da140e066b85

There is currently no up to date list of wafo classes  and modules.
The best place to start learning about the classes and the possibilities of 
pywafo is by studying the tutorial scripts located here: 
http://code.google.com/p/pywafo/source/browse/#svn%2Ftrunk%2Fpywafo%2Fsrc%2Fwafo
%2Fdoc%2Ftutorial_scripts 

Original comment by Per.Andreas.Brodtkorb@gmail.com on 2 Feb 2011 at 8:13