The latest (0.9.9) Debian build does not seem to be packaged right at all. I suppose there is a connection with bug 12468, but suddenly all sorts of files are not in places where they are expected. > root@location01:~/configuration/haj.ipfire.org/location01# python3 > Python 3.9.2 (default, Feb 28 2021, 17:03:44) > [GCC 10.2.1 20210110] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> sys.path > ['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages'] The files in the package are located in /usr/lib/python3.9/site-packages.
I cannot reproduce this any more. I have built the packages from the current master branch (9f9518b) in a clean debian:trixie container the same way Jenkins does (dpkg-buildpackage --build=full). The Python module is where it is supposed to be: /usr/lib/python3/dist-packages/_location.cpython-313-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/location/__init__.py Installing libloc1, python3-location, location, lua-location and libloc-dev into another clean container works, "import location" loads the module from that path, "location version" and "location lookup" work, and Lua can load its module as well. The packaging has been rewritten since 0.9.9 (pybuild moves the module into the directory of the interpreter that it has been built for), so that this has most likely been fixed along the way. Closing this. Please reopen if this happens again with a current version.