Description
Hello!
I noticed that after upgrading uv
to 0.7.6 and reinstalling python (uv python install --reinstall
), the import of a package like python-mscl
breaks. Here's a traceback:
Python 3.13.3 (main, May 17 2025, 13:34:03) [GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from python_mscl import mscl
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
from python_mscl import mscl
File "/home/pi/AirbrakesV2/.venv/lib/python3.13/site-packages/python_mscl/__init__.py", line 1, in <module>
from . import mscl
File "/home/pi/AirbrakesV2/.venv/lib/python3.13/site-packages/python_mscl/mscl.py", line 13, in <module>
from . import _mscl
ImportError: libpython3.13.so.1.0: cannot open shared object file: No such file or directory
Since I'm also the maintainer of python-mscl
, I can give some more insight on how that package works:
My package is just a wrapper around https://github.com/LORD-MicroStrain/MSCL
, aiming to simplify the installation procedure of the library, which is a little convoluted and not easy to setup on new machines - link.
So I am essentially just bundling the .so
and .py
files they provide into a package for every python version and architecture. And this just works on import, since it can find the .so and .py files in the same directory.
So I'm not sure if there's something wrong with how I'm packaging this library, and I have to correct it somehow, or if this was a problem with how my python was built. Since this happened immediately after reinstalling my python, and I saw the release note which mentioned this change, I thought I should open an issue to seek some clarification.