Sunday, 15 September 2013

Undefined symbol when importing f2py module, using Python 3 -


I am attempting to compile at least Fortran 9 subroutine with f2py to use with Python 3 . When I use Python 2.7, but when it is imported into a Python 3 file, I get an error message. I need to work it in Python 3.

My FORTRON sub-routine:

  By-trial testing (A, B) does not contain any integer, intent (in) :: an integer, intent (outside): : BB = One * 2 End SubRoutine  

In this way I compile:

  f2py -c test.f90 -m test  
  import test  

and then get this error:

P>

  traceback (most recent Call last): The file "& lt; stdin>", line 1, & lt; Module & gt; ImportError: /home/.../hello.so: Undefined Icons: PyCObject_Type  

I searched for this error, but found nothing that I understand. As @ cedarKey said, I was using the wrong version of f2py.

Compile problem with F2py3.4 solved.


No comments:

Post a Comment