Skip to content

Fail loading fmu on Ubuntu with GLIBC>2.35 #345

@LorenzoBottaccioli

Description

@LorenzoBottaccioli

On systems with glibc ≥2.36 (e.g., Ubuntu 24), paths starting with double slashes (//) are interpreted as network paths. PyFMI generate commands like:

cp -f "//resources//variables.cfg" "."

which fails with:

cp: cannot stat '//resources//variables.cfg': No such file or directory

As a result, FMU instantiation fails on newer systems, while it works correctly on older versions of glibc (<2.36).

Steps to Reproduce

Extract an FMU containing a resources folder.

Observe the cp command in the logs uses //resources//variables.cfg.

On Ubuntu 24, the copy fails and instantiation errors out.

Impact

Blocks FMU usage on modern Linux distributions without any changes to the FMU package.

Metadata

Metadata

Labels

bugIssue or PR covers a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions