[Pkg-kde-extras] Bug#1050998: Error while importing Python "lensfun" module

Sebastiaan Couwenberg sebastic at xs4all.nl
Fri Sep 8 17:45:25 BST 2023


Control: tags -1 moreinfo unreproducible
Control: severity -1 important

On Fri, 1 Sep 2023 10:40:47 +0200 Thierry Florac wrote:
> I just installed the package "python3-lensfun" on Debian testing.
> When trying to import the module, an error occurs:
> 
> *> python3*
> Python 3.9.15 (main, Nov 21 2022, 16:07:38)

Your python is old, 3.11 is the default in trixie & sid.

> [GCC 12.2.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import lensfun
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ModuleNotFoundError: No module named 'lensfun'
> >>>

Works just fine in a trixie chroot:

# python3
Python 3.11.5 (main, Aug 29 2023, 15:31:31) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> import lensfun
 >>> print(lensfun)
<module 'lensfun' from '/usr/lib/python3/dist-packages/lensfun/__init__.py'>

> The same error occurs when trying to launch the "lensfun-update-data"
> command line tool.

That also just works:

# lensfun-update-data
Reading http://lensfun.sourceforge.net/db/versions.json …
Reading http://wilson.bronger.org/lensfun-db/versions.json …
Successfully updated the database in /var/lib/lensfun-updates/version_1.

> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/PKG-INFO
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/dependency_links.txt
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/top_level.txt

lensfun was built for python3.11 and you're using 3.9.15 which was never 
in Debian, 3.9.13 was the most recent python3.9.

Kind Regards,

Bas

-- 
  GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the pkg-kde-extras mailing list