It seems to be a different instance of the same problem.
What seems to be happening is that python3-netplan is not updated yet
when network manager calls "netplan generate".
Replacing the library on Noble with the equivalent file from Jammy leads
to the same error:
# netplan generate
Traceback (most recent call last):
File "/usr/sbin/netplan", line 20, in <module>
from netplan_cli import Netplan
File "/usr/share/netplan/netplan_cli/__init__.py", line 18, in <module>
from .cli.core import Netplan
File "/usr/share/netplan/netplan_cli/cli/core.py", line 24, in <module>
from . import utils
File "/usr/share/netplan/netplan_cli/cli/utils.py", line 27, in <module>
from ..configmanager import ConfigurationError
File "/usr/share/netplan/netplan_cli/configmanager.py", line 21, in <module>
import netplan
File "/usr/lib/python3/dist-packages/netplan/__init__.py", line 21, in
<module>
from ._netplan_cffi import lib
ModuleNotFoundError: No module named 'netplan._netplan_cffi'
So I guess we need to add versioned dependencies to netplan.io. Only libnetplan
is versioned:
Depends: libc6 (>= 2.34),
libglib2.0-0t64 (>= 2.70.0),
libnetplan1 (= 1.0.1-1ubuntu2~24.04.1),
libsystemd0 (>= 243),
iproute2,
netplan-generator,
python3,
python3-dbus,
python3-netplan,
python3-netifaces,
python3-yaml,
systemd (>= 248~)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2083836
Title:
/usr/share/netplan/netplan.script:ModuleNotFoundError:/usr/share/netplan/netplan.script@20:/usr/share/netplan/netplan_cli/__init__.py@18:/usr/share/netplan/netplan_cli/cli/core.py@24:/usr/share/netplan/netplan_cli/cli/utils.py@27:/usr/share/netplan/netplan_cli/configmanager.py@21:/usr/lib/python3/dist-
packages/netplan/__init__.py@21
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2083836/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs