ModuleNotFoundError: No module named 'netifaces'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Install netplan on Manjaro 20 via snap. Install suceeds; however, post netplan installation the /etc/netplan directory does not exist. Also running netplan generate commands causes the following error:
Traceback (most recent call last):
File "/snap/
netplan.main()
File "/var/lib/
self.
File "/var/lib/
import netplan.
File "/var/lib/
from netplan.
File "/var/lib/
import netifaces
ModuleNotFoundE
I got the same thing on Fedora. I managed to get past it by installing `python3-netifaces` there, but then run into another issue:
Traceback (most recent call last): netplan/ 224/usr/ sbin/netplan" , line 23, in <module> snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/core. py", line 50, in main run_command( ) snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/utils. py", line 130, in run_command snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/commands/ try_command. py", line 66, in run run_command( ) snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/utils. py", line 130, in run_command snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/commands/ try_command. py", line 69, in command_try revertable( ): snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ cli/commands/ try_command. py", line 152, in is_revertable config_ manager. parse(extra_ config= extra_config) snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ configmanager. py", line 111, in parse _merge_ yaml_config( yaml_file) snapd/snap/ netplan/ 224/usr/ share/netplan/ netplan/ configmanager. py", line 196, in _merge_yaml_config yaml.CSafeLoade r)
File "/snap/
netplan.main()
File "/var/lib/
self.
File "/var/lib/
self.func()
File "/var/lib/
self.
File "/var/lib/
self.func()
File "/var/lib/
if not self.is_
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
yaml_data = yaml.load(f, Loader=
AttributeError: module 'yaml' has no attribute 'CSafeLoader'
This despite:
$ python3 CSafeLoader' >
Python 3.9.1 (default, Jan 20 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.CSafeLoader
<class 'yaml.cyaml.