Giter Club home page Giter Club logo

Comments (3)

tchlux avatar tchlux commented on June 28, 2024 1

This error generally means that the automatically generated Fortran BIND(C) wrapper did not successfully compile. Inside the generated python module (directory) there should be files tmm/tmm_python_wrapper.py and tmm/tmm_c_wrapper.f90. The function c_calc_k should be defined in tmm_c_wrapper.f90, and you can see how it works there.

Unfortunately I'm not sure why this is failing. When I download the tmm.txt file and rename it as tmm.f90 locally, then run the python code you provided, it works on my macOS and Ubuntu test environments. I get the following output:

[ 5388602.54624668 -8300723.05328158  5388602.54624668 -8300723.05328158
  5388602.54624668 -8300723.05328158]

To debug, I would start by using:

code = fmodpy.fimport("tmm.f90", verbose=True)

Look at the output of that, see if there are any statements that look like errors.

Next, I would cd into the tmm directory that was generated by fmodpy and open the tmm_python_wrapper.py file. What happens when you execute that file? Does it compile a .so file every time you run it? That could mean that it is failing to compile a functioning .so file for some reason (related to the compiler / compilation settings).

from fmodpy.

koshMer avatar koshMer commented on June 28, 2024

Thanks for the detailed info, I will be looking into it!

from fmodpy.

koshMer avatar koshMer commented on June 28, 2024

Hi, the error for this particular file does not longer exist when i compile it. I am not sure why I got it in the first place.
All i did in this 3 days was to restart my PC and reinstall your module, I am glad this works now :)

from fmodpy.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.