You are not logged in.

#1 2025-12-18 12:18:55

ahmad0
Member
Registered: 2025-12-17
Posts: 3

[SOLVED] lensfun package data update throws ModuleNotFoundError

this is my output when I run lensfun-update-data:

Traceback (most recent call last):
  File "/usr/bin/lensfun-update-data", line 46, in <module>
    import lensfun
ModuleNotFoundError: No module named 'lensfun'

I made sure my lensfun package is up to date:

extra/lensfun 1:0.3.4-5 [installed]
    Database of photographic lenses and a library that allows advanced access to the database

python --version output:

Python 3.13.11

Last edited by ahmad0 (2025-12-18 12:52:22)

Offline

#2 2025-12-18 12:31:27

system72
Member
Registered: 2025-11-22
Posts: 347
Website

Re: [SOLVED] lensfun package data update throws ModuleNotFoundError

i tested with 0.3.4-5 and it seemed to work fine, have you tried reinstalling that package?

Last edited by system72 (2025-12-18 12:33:00)

Online

#3 2025-12-18 12:50:57

ahmad0
Member
Registered: 2025-12-17
Posts: 3

Re: [SOLVED] lensfun package data update throws ModuleNotFoundError

Ok I figured out what caused the issue, actually I have a python venv, which I put its bin directory in PATH variable before /usr/bin, I made this in puprose so when I run python it runs the venv python not the one in the /usr/bin, I changed the PATH variable to use the /usr/bin python (which has the lensfun module), and it worked.

Offline

Board footer

Powered by FluxBB