Missing items in LD_LIBRARY_PATH break numpy stage-packages

Bug #1862516 reported by Artur Glavic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

When trying to build a python project that used numpy by adding python3-numpy to stage-packages the import fails because libblas.so.3 and liblapack.so.3 cannot be found. The libraries are included in the snap package bud their path isn't searched during execution.

I could work around it by adding these lines to my snapcraft.yaml file:
    environment:
      LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/blas:$SNAP/usr/lib/x86_64-linux-gnu/lapack

My setup is:
- VirtualBox running Ubuntu Eoan (x86_64)
- Latest snapcraft from snap
- Using lxd based build

I assume the issue is that these libraries use a sub-directory and thus this could be a general issue in the packaging process of libraries.

The issue doesn't come up when using numpy from python-packages, but this is no option when using complex dependencies like wxpython that need binary packages and depend on numpy.

Artur Glavic (aglavic)
summary: - Missing items in LD_LIBRARY_PATH break numpy site-packages
+ Missing items in LD_LIBRARY_PATH break numpy stage-packages
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.