daq icon indicating copy to clipboard operation
daq copied to clipboard

sudo cmd/run -s throws ModuleNotFound exception

Open anurag6 opened this issue 5 years ago • 0 comments

Running sudo cmd/run -s after building throws an exception since it cant find the PyYAML module. Issue has been seen in both rodete and vanilla Debian.

$ lsb_release -a
No LSB modules are available.  
Distributor ID:	Debian  
Description:	Debian GNU/Linux rodete  
Release:	rodete  
Codename:	rodete  
$ sudo cmd/run -s
.
.
.
Traceback (most recent call last):
  File "daq/daq.py", line 14, in <module>
    import runner
  File "xx/daq/daq/runner.py", line 13, in <module>
    import network
  File "xx/daq/daq/network.py", line 6, in <module>
    from topology import FaucetTopology
  File "xx/daq/daq/topology.py", line 7, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
Cleanup docker kill daq-faux
daq-faux
Done with run, exit 1

Also seen in

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:        9.5
Codename:       stretch

anurag6 avatar Mar 26 '19 18:03 anurag6