configmanager fails to import libnetplan

Bug #2055445 reported by Mariusz

This bug report will be marked for expiration in 4 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Executing `python3 /usr/share/netplan/netplan/configmanager.py` causes:
```
  File "/usr/share/netplan/netplan/configmanager.py", line 28, in <module>
    from netplan import libnetplan
ModuleNotFoundError: No module named 'netplan'
```

As the `libnetplan` module is in the same directory it's possible to fix the error by changing `from netplan import libnetplan` to `import libnetplan`

Revision history for this message
Lukas Märdian (slyon) wrote :

Are you executing "pthon3 /usr/share/netplan/netplan/configmanager.py" directly? Why are you doing this? Is there another reproducer where we could see this issue?

Can you please specify what version of Ubuntu and Netplan you are using and list the contents of /usr/share/netplan/

e.g.:

$ lsb_release -a
$ dpkg -l | grep netplan
$ tree /usr/share/netplan/

Changed in netplan.io (Ubuntu):
status: New → Incomplete
Revision history for this message
Lukas Märdian (slyon) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.