linuxmuster / linuxmuster-base7

Mangement scripts for linuxmuster.net V7
GNU General Public License v3.0
13 stars 8 forks source link

Problem with subprocess #124

Closed dorianim closed 3 years ago

dorianim commented 3 years ago

There is a problem with the subprocess calls:

------------------------------------------------------------------------------
#### linuxmuster-import-devices startet at 2021-06-09 11:11:24            ####
------------------------------------------------------------------------------
#### Starting sophomorix-device syntax check:                             ####
Traceback (most recent call last):
  File "/usr/sbin/linuxmuster-import-devices", line 66, in <module>
    result = subprocess.check_call('sophomorix-device --dry-run')
  File "/usr/lib/python3.6/subprocess.py", line 306, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 287, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sophomorix-device --dry-run': 'sophomorix-device --dry-run'

I will fix this while working on #123

HappyBasher commented 3 years ago

Fixed with https://github.com/linuxmuster/linuxmuster-base7/commit/d7a520ff0a232a1fa39e86ad74761419935a1df4.