Skip to content

Build Failure on Modern Linux with Conda #4

Description

@mamiri2025

Hello,

I am trying to use the aviso-lagrangian library and have been unable to install it on a modern Ubuntu server (using both venv and conda). After extensive troubleshooting, we've found several issues that prevent it from being installed.

Summary of Issues Encountered:

  1. Building from Source Fails: The build scripts are incompatible with modern tools.

    • The CMakeLists.txt files (both in the root directory and in third_party/pybind11) require an old version of CMake and must be manually patched.
    • The setup.py script has faulty logic for detecting libraries (Boost, UDUNITS2, NetCDF) inside a Conda environment and must also be manually patched.
    • Even after patching all of the above, a clean build using a Python 3.9 Conda environment produces a library that fails on import with: ImportError: dynamic module does not define module export function (PyInit_core).
  2. Pre-compiled Conda Package Fails: The package on the fbriol Conda channel requires Python 3.7. However, when trying to create an environment with it, it has an unsolvable dependency conflict with new packages (like conda-anaconda-tos and menuinst) that are included in modern Conda distributions.

It seems the library is not installable on a modern Linux system using any standard method. Could you please provide guidance or an updated Conda package?

Thank you for your work on this project.

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