"Could not find recipe" despite recipe being in list
antonott opened this issue · comments
Anton Ottosson commented
When attempting to install certain recipes PyBOMBS gives a Could not find recipe
error, even though the recipe is listed by pybombs recipes list
. I am running Ubuntu 20.04.2 LTS. See below for some additional details.
~$ pybombs recipes update
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
[INFO] Updating recipe location `gr-etcetera'...
Already up to date.
Current branch master is up to date.
[INFO] Updating recipe location `gr-recipes'...
Already up to date.
Current branch master is up to date.
~$ pybombs recipes list-repos
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
Directory Name Source
---------------------------------------------------------------------------------------------------------------------------------
/home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/recipes - -
/home/antonott/.pybombs/recipes/gr-etcetera gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
/home/antonott/.pybombs/recipes/gr-recipes gr-recipes git+https://github.com/gnuradio/gr-recipes.git
/usr/local/lib/python3.8/dist-packages/pybombs/recipes - -
~$ pybombs recipes list | grep gnuradio
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
gnuradio ~/.pybombs/recipes/gr-recipes/gnuradio.lwr source
gnuradio37 ~/.pybombs/recipes/gr-recipes/gnuradio37.lwr -
gnuradio38 ~/.pybombs/recipes/gr-recipes/gnuradio38.lwr -
~$ pybombs prefix init ~/pybombs_prefixes/gnuradio37 -R gnuradio37
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
[ERROR] Could not find recipe for `gnuradio37'
~$ pybombs prefix init ~/pybombs_prefixes/gnuradio38 -R gnuradio38
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
[ERROR] Could not find recipe for `gnuradio38'
Anton Ottosson commented
And here is the last command again, but with maximum verbosity. It seems it does find and load the recipe file, but it still fails with the Could not find recipe
message.
~$ pybombs -vv prefix init ~/pybombs_prefixes/gnuradio38 -a gr38 -R gnuradio38
[DEBUG] Reading config info from file: /etc/pybombs/config.yml
[DEBUG] Parsing config file failed (/etc/pybombs/config.yml).
[DEBUG] Reading config info from file: /home/antonott/.pybombs/config.yml
[DEBUG] New config items: ordereddict([('makewidth', 4), ('elevate_pre_args', ['sudo', '-H']), ('git-cache', '/home/antonott/.pybombs/gitcache'), ('packagers', 'apt,pymod,pip,pkgconfig,cmd'), ('default_prefix', '/home/antonott/pybombs_prefixes/gnuradio-default')])
[DEBUG] Template directory: /usr/local/lib/python3.8/dist-packages/pybombs/templates
[DEBUG] Inspecting config file: /home/antonott/.pybombs/config.yml
[DEBUG] Using default_prefix as prefix (/home/antonott/pybombs_prefixes/gnuradio-default)
[DEBUG] Choosing default prefix config dir: /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs
[DEBUG] Inspecting config file: /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/config.yml
[DEBUG] Prefix source dir is: /home/antonott/pybombs_prefixes/gnuradio-default/src
[DEBUG] Trying to load inventory file /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/inventory.yml...
[DEBUG] Prefix-local recipe dir is: /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/recipes
[DEBUG] Python version set by config file.
[DEBUG] Reading config info from file: /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/config.yml
[DEBUG] New config items: {}
[DEBUG] Full list of recipe locations: ['/home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/recipes', '/home/antonott/.pybombs/recipes/gr-etcetera', '/home/antonott/.pybombs/recipes/gr-recipes', '/usr/local/lib/python3.8/dist-packages/pybombs/recipes']
[DEBUG] Named recipe locations: {'gr-etcetera': 'git+https://github.com/gnuradio/gr-etcetera.git', 'gr-recipes': 'git+https://github.com/gnuradio/gr-recipes.git'}
[INFO] Prefix Python version is: 3.8.10
[INFO] PyBOMBS Version 2.3.4
[DEBUG] Adding recipe location: /home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/recipes
[DEBUG] Scanning directory '/home/antonott/pybombs_prefixes/gnuradio-default/.pybombs/recipes' for recipes...
[DEBUG] Found 0 new recipes.
[DEBUG] Loading templates.
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/cmake.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/distutils.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/sdk.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/boostflags.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/setuptools.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/prefix.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/autoconf.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/bootstrapautoconf.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/bjam.lwt
[TRACE] Adding template /usr/local/lib/python3.8/dist-packages/pybombs/templates/empty.lwt
[DEBUG] Adding recipe location: /home/antonott/.pybombs/recipes/gr-etcetera
[DEBUG] Scanning directory '/home/antonott/.pybombs/recipes/gr-etcetera' for recipes...
[DEBUG] Found 126 new recipes.
[DEBUG] Loading templates.
[DEBUG] Adding recipe location: /home/antonott/.pybombs/recipes/gr-recipes
[DEBUG] Scanning directory '/home/antonott/.pybombs/recipes/gr-recipes' for recipes...
[DEBUG] Found 206 new recipes.
[DEBUG] Loading templates.
[DEBUG] Adding recipe location: /usr/local/lib/python3.8/dist-packages/pybombs/recipes
[DEBUG] Scanning directory '/usr/local/lib/python3.8/dist-packages/pybombs/recipes' for recipes...
[DEBUG] Found 11 new recipes.
[DEBUG] Loading templates.
[DEBUG] Initializing command class for command prefix
[TRACE] Loading recipe file: /home/antonott/.pybombs/recipes/gr-recipes/gnuradio38.lwr
[TRACE] Loading template file: /usr/local/lib/python3.8/dist-packages/pybombs/templates/cmake.lwt
[TRACE] Inheriting from file /usr/local/lib/python3.8/dist-packages/pybombs/templates/cmake.lwt
[TRACE] Loading template file: /usr/local/lib/python3.8/dist-packages/pybombs/templates/empty.lwt
[TRACE] Inheriting from file /usr/local/lib/python3.8/dist-packages/pybombs/templates/empty.lwt
[TRACE] Loaded recipe - gnuradio38
[ERROR] Could not find recipe for `gnuradio38'