Comments (3)
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.
Thanks for the detailed info, I will be looking into it!
from fmodpy.
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 (9)
- Convertible? HOT 1
- Encountered unrecognized line while parsing Module HOT 16
- Building conda package from source code on pypi HOT 4
- Compilation of fortran file fails: cannot open shared object file HOT 3
- ValueError: invalid literal for int() with base 10: '1)' HOT 5
- Support for OpenMP or Co-array Fortran HOT 3
- Linking to OpenBLAS for BLAS and LAPACK on Windows HOT 15
- Question about wrong type of return value(in python) for allocatable real64 arrays(fortran). HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmodpy.