Ubuntu Version
Ubuntu 26.04 LTS
Desktop Environment (if applicable)
GNOME
Problem Description
after upgrading from 24.04 to 26.04 my app called “meta” returns the following error:
(venv) $ meta
Traceback (most recent call last):
File “/home/useradmin/venv/bin/meta”, line 5, in
from daba.meta import main
ModuleNotFoundError: No module named ‘daba’
On my system, the daba library is still there :
(venv) $ cd /home/useradmin/venv/lib/python3.12/site-packages
(venv) $ ls
PyTrie-0.4.0.dist-info daba (…etc…)
the PATH is as it has always been after switching to venv
(venv) $ echo $PATH
/home/useradmin/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
Relevant System Information
the “daba” software is here : GitHub - maslinych/daba: Pattern-based morphemic analysis toolkit · GitHub
System Details Report
Report details
- Date generated: 2026-10-15 10:52:28
Hardware Information:
- Hardware Model: Standard Standard
- Memory: 16.0 GiB
- Processor: AMD Ryzen™ 7 255 w/ Radeon™ 780M Graphics × 16
- Graphics: AMD Radeon™ 780M Graphics
- Disk Capacity: 1.0 TB
Software Information:
- Firmware Version: N.1.06STD05
- OS Name: Ubuntu 26.04.1 LTS
- OS Build: (null)
- OS Type: 64-bit
- GNOME Version: 50
- Windowing System: Wayland
- Kernel Version: Linux 7.0.0-38-generic
What I’ve Tried
I have tried nothing, this was my very first commands on my bright new upgraded 26.04 system
The PATH is fine - the venv itself is the problem. A venv does not contain a real Python of its own: venv/bin only holds a copy or symlink of the interpreter the venv was created with, and installed packages live in a versioned lib/pythonX.Y/site-packages directory. Your venv was created on 24.04 with Python 3.12 (you can see python3.12 in the path). After the release upgrade, the venv can end up running the newer system Python, which looks for modules in lib/python3.<newer>/site-packages - a directory where daba was never installed. Inside the activated venv, python3 --version will show you which interpreter it actually runs now.
The documented fix is to rebuild the environment and reinstall the packages into it. With the venv deactivated:
python3 -m venv --clear /home/useradmin/venv
source /home/useradmin/venv/bin/activate
pip install -U https://github.com/maslinych/daba/archive/maint.zip
--clear deletes the old contents and recreates the environment against the current Python (the venv docs also offer --upgrade, but that only covers the case where Python itself was upgraded in place). The last line is the install command from daba’s own INSTALL.md in the GitHub repo you linked - it also pulls in wxPython, which daba’s GUI tools need. One caveat: do not use pip install daba - the package named “daba” on PyPI is an unrelated project.
Thank you for the very comprehensive answer and caring for my shyness with linux…
this pip install is often a challenge, notably because wxpython is a very delicate beast whenever you change the version of python
I tried the short route first, renaming lib/python3.12/site-packages to 3.14 (the newly installed version of python coming with ubuntu 26.04
It seems to work except I now have an error on wxpython… !
(venv)$ meta
Traceback (most recent call last):
File “/home/useradmin/venv/bin/meta”, line 5, in
from daba.meta import main
File “/home/useradmin/venv/lib/python3.14/site-packages/daba/meta.py”, line 18, in
import wx
File “/home/useradmin/venv/lib/python3.14/site-packages/wx/init.py”, line 17, in
from wx.core import *
File “/home/useradmin/venv/lib/python3.14/site-packages/wx/core.py”, line 12, in
from ._core import *
ModuleNotFoundError: No module named ‘wx._core’
I’ll follow you instructions, now!, and then let you know what happened…