Skip to content

get_exe_path is a bit noisy + question #359

Open
@dbrakenhoff

Description

@dbrakenhoff

I'm getting a lot of this message (shown below) in my script, every time I call nlmod.util.get_exe_path(). When I pass a version_tag, it still logs messages. Maybe DEBUG level logging is sufficient, or maybe this message isn't very interesting?

INFO:nlmod.util.get_flopy_bin_directories:The version of the executables will not be checked, because the `version_tag` is not passed to `get_flopy_bin_directories()`.

Also a question, I just want to use the modflow binaries downloaded using flopy, how do I get nlmod to find that file? The binaries are available on my path so typing mf6 in my terminal gets me the right mf6 version. From my environment (where nlmod does not have any binaries downloaded), nlmod.util.get_exe_path() is now preferring its own binary directory in different environments instead of the flopy directory that's included in my PATH environment variable. I thought maybe this had to do with editable installs in different environments, but it also found the binaries in an environment where I installed nlmod with pip install ..

Chances are fairly large that I've just messed up my environments too much, but I wanted to check here whether anyone else has observed similar behavior?

Steps to maybe reproduce:

  1. Download flopy binaries using get-modflow :flopy
  2. Add flopy bin directory to PATH
  3. Install nlmod in two Python environments
  4. Download binaries in one Python environment
  5. Activate the other Python environment.
  6. Start python and import nlmod to run nlmod.util.get_exe_path("mf6").
  7. Which mf6 is returned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions