[Bug 1845546] [NEW] netplan apply can'd find netifaces module

Bill MacAllister 1845546 at bugs.launchpad.net
Thu Sep 26 18:19:06 UTC 2019


Public bug reported:

On a bionic system when I execute the command netplan apply I get the
following traceback:

Traceback (most recent call last):
  File "/usr/sbin/netplan", line 23, in <module>
    netplan.main()
  File "/usr/share/netplan/netplan/cli/core.py", line 42, in main
    self.parse_args()
  File "/usr/share/netplan/netplan/cli/core.py", line 35, in parse_args
    import netplan.cli.commands
  File "/usr/share/netplan/netplan/cli/commands/__init__.py", line 18, in <module>
    from netplan.cli.commands.apply import NetplanApply
  File "/usr/share/netplan/netplan/cli/commands/apply.py", line 29, in <module>
    import netifaces
ModuleNotFoundError: No module named 'netifaces'

Python3 netifaces is installed:

# apt policy python3-netifaces
python3-netifaces:
  Installed: 0.10.4-0.1build4
  Candidate: 0.10.4-0.1build4
  Version table:
 *** 0.10.4-0.1build4 500
        500 http://ubuntu-mirror.corp.dropbox.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

The system has the following update-alternatives setting for python.

# update-alternatives --query python
Name: python
Link: /usr/bin/python
Status: manual
Best: /usr/bin/python3.7
Value: /usr/bin/python3.7

Alternative: /usr/bin/python2.7
Priority: 1

Alternative: /usr/bin/python3.7
Priority: 2

The only file in /etc/netplan is config.yaml:

network:
  version: 2
  renderer: networkd
  ethernets:
    all:
      match:
        macaddress: 00:50:56:91:17:21
      dhcp4: no
      addresses:
        - 172.17.5.139/25
      gateway4: 172.17.5.129

Even though netplan apply generates an error message the network
configuration appears to be updated.

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1845546

Title:
  netplan apply can'd find netifaces module

Status in netplan.io package in Ubuntu:
  New

Bug description:
  On a bionic system when I execute the command netplan apply I get the
  following traceback:

  Traceback (most recent call last):
    File "/usr/sbin/netplan", line 23, in <module>
      netplan.main()
    File "/usr/share/netplan/netplan/cli/core.py", line 42, in main
      self.parse_args()
    File "/usr/share/netplan/netplan/cli/core.py", line 35, in parse_args
      import netplan.cli.commands
    File "/usr/share/netplan/netplan/cli/commands/__init__.py", line 18, in <module>
      from netplan.cli.commands.apply import NetplanApply
    File "/usr/share/netplan/netplan/cli/commands/apply.py", line 29, in <module>
      import netifaces
  ModuleNotFoundError: No module named 'netifaces'

  Python3 netifaces is installed:

  # apt policy python3-netifaces
  python3-netifaces:
    Installed: 0.10.4-0.1build4
    Candidate: 0.10.4-0.1build4
    Version table:
   *** 0.10.4-0.1build4 500
          500 http://ubuntu-mirror.corp.dropbox.com/ubuntu bionic/main amd64 Packages
          100 /var/lib/dpkg/status

  The system has the following update-alternatives setting for python.

  # update-alternatives --query python
  Name: python
  Link: /usr/bin/python
  Status: manual
  Best: /usr/bin/python3.7
  Value: /usr/bin/python3.7

  Alternative: /usr/bin/python2.7
  Priority: 1

  Alternative: /usr/bin/python3.7
  Priority: 2

  The only file in /etc/netplan is config.yaml:

  network:
    version: 2
    renderer: networkd
    ethernets:
      all:
        match:
          macaddress: 00:50:56:91:17:21
        dhcp4: no
        addresses:
          - 172.17.5.139/25
        gateway4: 172.17.5.129

  Even though netplan apply generates an error message the network
  configuration appears to be updated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1845546/+subscriptions



More information about the foundations-bugs mailing list