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

Thierry Florac tflorac at gmail.com
Sat Sep 9 01:05:54 BST 2023


Hi Sebastiaan,

What an idiot!  :D
I just forgot that I had to build a custom Python 3.9 release for another
project a few months ago, which was in my path...
I just removed the default "python3" link from my path and everything is ok!
Really sorry for the inconvenience!!

Best regards,
Thierry

-- 
  https://www.ulthar.net -- http://pyams.readthedocs.io


Le ven. 8 sept. 2023 à 18:45, Sebastiaan Couwenberg <sebastic at xs4all.nl> a
écrit :

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-extras/attachments/20230909/6b468d4f/attachment.htm>


More information about the pkg-kde-extras mailing list