Suggest using universal_newlines
as the alias text
only works for python 3.7 and above.
Default python3 for example is 3.6 in Ubuntu Bionic and therefore liquidsoap fails with parameter `text`.
This commit is contained in:
parent
6ebb1fd555
commit
4a45225369
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def run():
|
|||
|
||||
generate_liquidsoap_cfg.run()
|
||||
''' check liquidsoap version if less than 1.3 use legacy liquidsoap script '''
|
||||
liquidsoap_version = subprocess.check_output("liquidsoap --version", shell=True, text=True)
|
||||
liquidsoap_version = subprocess.check_output("liquidsoap --version", shell=True, universal_newlines=True)
|
||||
if pure.version_cmp(liquidsoap_version, "1.3") < 0:
|
||||
script_path = os.path.join(os.path.dirname(__file__), 'ls_script.liq')
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue