<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">Hi Sebastiaan,</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">What an idiot!  :D</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">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...</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">I just removed the default "python3" link from my path and everything is ok!</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">Really sorry for the inconvenience!!</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">Best regards,</div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04">Thierry<br></div><div class="gmail_default" style="font-family:monospace,monospace;color:#783f04"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>-- </div><div>  <a href="https://www.ulthar.net" target="_blank">https://www.ulthar.net</a> -- <a href="http://pyams.readthedocs.io" target="_blank">http://pyams.readthedocs.io</a></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 8 sept. 2023 à 18:45, Sebastiaan Couwenberg <<a href="mailto:sebastic@xs4all.nl">sebastic@xs4all.nl</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: tags -1 moreinfo unreproducible<br>
Control: severity -1 important<br>
<br>
On Fri, 1 Sep 2023 10:40:47 +0200 Thierry Florac wrote:<br>
> I just installed the package "python3-lensfun" on Debian testing.<br>
> When trying to import the module, an error occurs:<br>
> <br>
> *> python3*<br>
> Python 3.9.15 (main, Nov 21 2022, 16:07:38)<br>
<br>
Your python is old, 3.11 is the default in trixie & sid.<br>
<br>
> [GCC 12.2.0] on linux<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import lensfun<br>
> Traceback (most recent call last):<br>
>   File "<stdin>", line 1, in <module><br>
> ModuleNotFoundError: No module named 'lensfun'<br>
> >>><br>
<br>
Works just fine in a trixie chroot:<br>
<br>
# python3<br>
Python 3.11.5 (main, Aug 29 2023, 15:31:31) [GCC 13.2.0] on linux<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
 >>> import lensfun<br>
 >>> print(lensfun)<br>
<module 'lensfun' from '/usr/lib/python3/dist-packages/lensfun/__init__.py'><br>
<br>
> The same error occurs when trying to launch the "lensfun-update-data"<br>
> command line tool.<br>
<br>
That also just works:<br>
<br>
# lensfun-update-data<br>
Reading <a href="http://lensfun.sourceforge.net/db/versions.json" rel="noreferrer" target="_blank">http://lensfun.sourceforge.net/db/versions.json</a> …<br>
Reading <a href="http://wilson.bronger.org/lensfun-db/versions.json" rel="noreferrer" target="_blank">http://wilson.bronger.org/lensfun-db/versions.json</a> …<br>
Successfully updated the database in /var/lib/lensfun-updates/version_1.<br>
<br>
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info<br>
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/PKG-INFO<br>
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/dependency_links.txt<br>
> /usr/lib/python3/dist-packages/lensfun-0.3.4-py3.11.egg-info/top_level.txt<br>
<br>
lensfun was built for python3.11 and you're using 3.9.15 which was never <br>
in Debian, 3.9.13 was the most recent python3.9.<br>
<br>
Kind Regards,<br>
<br>
Bas<br>
<br>
-- <br>
  GPG Key ID: 4096R/6750F10AE88D4AF1<br>
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1<br>
</blockquote></div>