Skip to content

Missing /usr/share/metview/lib/x86_64-linux-gnu/libMvMacro.so on Ubuntu #72

@rkarim-nnk

Description

@rkarim-nnk

What happened?

Does Metview hard-code the location of this library somewhere?

My "import metview" fails with this error because the libMvMacro.so isn't in this location. The only fix I've found is to manually create that path and softlink the files from libmetview-dev here. Overriding LD_LIBRARY_PATH doesn't take, as presumably something in the library is discarding that.

What are the steps to reproduce the bug?

apt install metview libmetview-dev
pip install metview
python -c "import metview"

Version

5.21.2

Platform (OS and architecture)

Ubuntu 24.04

Relevant log output

OSError: cannot load library '/usr/share/metview/lib/x86_64-linux-gnu/libMvMacro.so': /usr/share/metview/lib/x86_64-linux-gnu/libMvMacro.so: cannot open shared object file: No such file or directory.  Additionally, ctypes.util.find_library() did not manage to locate a library called '/usr/share/metview/lib/x86_64-linux-gnu/libMvMacro.so'

Accompanying data

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions