discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] [PyBOMBS] TypeError: cannot use a string pattern on a


From: Álvaro Cebrián Juan
Subject: [Discuss-gnuradio] [PyBOMBS] TypeError: cannot use a string pattern on a bytes-like object
Date: Tue, 13 Feb 2018 00:46:37 +0100

Hello everyone,

I was following these instructions to install some dependencies using PyBOMBS, but when I add a list of default recipes with the command:

$
pybombs recipes add-defaults


I get the following error:

address@hidden:~$ pybombs recipes add-defaults
PyBOMBS - INFO - PyBOMBS Version 2.3.3a0
Traceback (most recent call last):
  File "/usr/local/bin/pybombs", line 11, in <module>
    load_entry_point('PyBOMBS==2.3.3a0', 'console_scripts', 'pybombs')()
  File "/usr/local/lib/python3.5/dist-packages/pybombs/main.py", line 32, in main
    return dispatch() or 0
  File "/usr/local/lib/python3.5/dist-packages/pybombs/commands/base.py", line 194, in dispatch
    return get_cmd_dict(cmd_list)[args.command](cmd=args.command, args=args).run()
  File "/usr/local/lib/python3.5/dist-packages/pybombs/commands/base.py", line 120, in run
    return self.subcommands[self.args.sub_command]['run'](self)()
  File "/usr/local/lib/python3.5/dist-packages/pybombs/commands/recipes.py", line 180, in run_add_defaults
    if not self.add_recipe_dir(alias, uri):
  File "/usr/local/lib/python3.5/dist-packages/pybombs/commands/recipes.py", line 347, in add_recipe_dir
    Fetcher().fetch_url(uri, recipe_cache_top_level, alias, {}) # No args
  File "/usr/local/lib/python3.5/dist-packages/pybombs/fetcher.py", line 73, in fetch_url
    result = fetcher.fetch_url(url, dest, dirname, args)
  File "/usr/local/lib/python3.5/dist-packages/pybombs/fetchers/git.py", line 81, in fetch_url
    git_version = get_git_version()
  File "/usr/local/lib/python3.5/dist-packages/pybombs/fetchers/git.py", line 56, in get_git_version
    subprocess.check_output(['git', '--version'])
  File "/usr/lib/python3.5/re.py", line 173, in search
    return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object


I would be grateful if somebody can shed some light on the cause of this error and on its possible solutions.

Best regards,

Álvaro

reply via email to

[Prev in Thread] Current Thread [Next in Thread]