skfmm installation

36 views
Skip to first unread message

Becky Brooks

unread,
Feb 23, 2024, 5:02:27 PM2/23/24
to scikit-fmm
Hello,

I am working on setting up scikit-fmm.skfmm to use for ocean modelling, where skfmm is a crucial part of being able to use the software I need. 
I have a virtual environment set-up in a Linux shell on Windows, and have the basic requirements for the running code. When I run one of the example scripts for my other program which imports skfmm, I run into this error:  

File "/path_to_dir/skfmm/__init__.py", line 51, in <module>
    from .pfmm import distance, travel_time, extension_velocities
  File "/path_to_dir/skfmm/pfmm.py", line 4, in <module>
    from .cfmm import cFastMarcher
ModuleNotFoundError: No module named 'skfmm.cfmm'

What I am unsure of, is if .cfmm is supposed to be generated when I run the command: 'python setup.py install', or if there is something else I missed during installation?
Any help would be appreciated!

Thank you,
Becky Brooks

Jason Furtney

unread,
Feb 23, 2024, 5:24:57 PM2/23/24
to scikit-fmm
Hi and thanks for the message. 

The skfmm.cfmm module is a part that needs to be compiled by a C++ compiler. I am guessing maybe the compilation step failed. What was the output when you gave the command "python setup.py build"?

Jason
Reply all
Reply to author
Forward
0 new messages