Skip to content

Instantly share code, notes, and snippets.

@DavidLutton
Created September 8, 2018 12:29
Show Gist options
  • Select an option

  • Save DavidLutton/ec590ffe54289cfdfa3bd80aa1c4c5eb to your computer and use it in GitHub Desktop.

Select an option

Save DavidLutton/ec590ffe54289cfdfa3bd80aa1c4c5eb to your computer and use it in GitHub Desktop.
dalun@Hertz:~/Public$ python3 -m venv ~/Public/gnuradio_venv
dalun@Hertz:~/Public$ ~/Public/gnuradio_venv/bin/pip3 install pybombs
dalun@Hertz:~/Public$ alias pybombs='~/Public/gnuradio_venv/bin/pybombs'
dalun@Hertz:~/Public$ pybombs
PyBOMBS - INFO - PyBOMBS Version 2.3.2
Traceback (most recent call last):
File "/home/dalun/Public/gnuradio_venv/bin/pybombs", line 11, in <module>
load_entry_point('PyBOMBS==2.3.2', 'console_scripts', 'pybombs')()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/main.py", line 32, in main
return dispatch() or 0
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/commands/base.py", line 194, in dispatch
return get_cmd_dict(cmd_list)[args.command](cmd=args.command, args=args).run()
KeyError: None
dalun@Hertz:~/Public$ pybombs help
PyBOMBS - INFO - PyBOMBS Version 2.3.2
usage: pybombs [-h] [--version] [-p PREFIX] [--prefix-conf PREFIX_CONF]
[--config CONFIG] [--config-file CONFIG_FILE] [-r RECIPES] [-q]
[-v] [-y]
<command> ...
PyBOMBS: A meta-package manager integrated with CGRAN.
optional arguments:
-h, --help show this help message and exit
General Options:
--version Show version and exit
-p PREFIX, --prefix PREFIX
Specify a prefix directory
--prefix-conf PREFIX_CONF
Specify a prefix configuration file
--config CONFIG Set a config option via command line. May be used
multiple times. Format is `--config key=value'
--config-file CONFIG_FILE
Specify a config file via command line
-r RECIPES, --recipes RECIPES
Specify a recipe location. May be used multiple times
-q, --quiet Less output
-v, --verbose More output (can be stacked)
-y, --yes Answer all questions with 'yes'.
PyBOMBS subcommands:
<command> Description:
auto-config Run an automatic configuration routine
config Query or update configuration
deploy Deploy a prefix
digraph Write out package.dot digraph for graphviz
fetch Download a packages source code into the current
prefixes source directory.
refetch Get a fresh download of a previously downloaded
package
git git tools
install Install listed packages
update Update listed packages
inv Query or update inventory
lint Lint a prefix or recipe
prefix Prefix commands
recipes Manage recipe lists
rebuild Rebuild an installed package
remove Remove listed packages
run Run a command within a PyBOMBS context
help Help
Run `pybombs <command> --help to learn about command-specific options.
dalun@Hertz:~/Public$ pybombs auto-config
PyBOMBS - INFO - PyBOMBS Version 2.3.2
PyBOMBS.auto-config - INFO - Using config file: None
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
dalun@Hertz:~/Public$ pybombs --verbose recipes add-defaults
PyBOMBS.ConfigManager - DEBUG - Reading config info from file: /etc/pybombs/config.yml
PyBOMBS.ConfigManager - DEBUG - Parsing config file failed (/etc/pybombs/config.yml).
PyBOMBS.ConfigManager - DEBUG - Reading config info from file: /home/dalun/.pybombs/config.yml
PyBOMBS.ConfigManager - DEBUG - Parsing config file failed (/home/dalun/.pybombs/config.yml).
PyBOMBS.ConfigManager - DEBUG - Template directory: /home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/templates
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Cannot establish a prefix directory. This may cause issues down the line.
PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations: ['/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipes']
PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {}
PyBOMBS - INFO - PyBOMBS Version 2.3.2
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location: /home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipes
PyBOMBS.RecipeListManager - DEBUG - Scanning directory '/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipes' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.recipes - DEBUG - Initializing command class for command recipes
PyBOMBS.recipes - DEBUG - Preparing to add recipe location gr-recipes -> git+https://github.com/gnuradio/gr-recipes.git
PyBOMBS.recipes - DEBUG - Storing new recipe location to /home/dalun/.pybombs/config.yml
PyBOMBS.recipes - DEBUG - Fetching into directory: /home/dalun/.pybombs/recipes/gr-recipes
PyBOMBS.Fetcher - DEBUG - Getting fetcher for https://github.com/gnuradio/gr-recipes.git, type git
PyBOMBS.Fetcher - DEBUG - Using fetcher <pybombs.fetchers.git.Git object at 0x7f1e2074eb70>
PyBOMBS.Fetcher.git - DEBUG - Requiring packages on host system: ['git']
PyBOMBS.PackageManager - DEBUG - No prefix specified. Skipping source package manager.
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager pip
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager apt
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
PyBOMBS.PackageManager - DEBUG - apt is supported!
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager yumdnf
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager port
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager brew
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager zypper
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager pacman
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager portage
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager pymod
PyBOMBS.PackageManager - DEBUG - pymod is supported!
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager pkgconfig
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager cmd
PyBOMBS.PackageManager - DEBUG - cmd is supported!
PyBOMBS.PackageManager - DEBUG - Using binary packagers: ['apt', 'pymod', 'cmd']
PyBOMBS.install_manager - DEBUG - Phase 1: Creating install tree and installing binary packages:
PyBOMBS.PackageManager - DEBUG - Checking if package git is installable...
Traceback (most recent call last):
File "/home/dalun/Public/gnuradio_venv/bin/pybombs", line 11, in <module>
load_entry_point('PyBOMBS==2.3.2', 'console_scripts', 'pybombs')()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/main.py", line 32, in main
return dispatch() or 0
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/commands/base.py", line 194, in dispatch
return get_cmd_dict(cmd_list)[args.command](cmd=args.command, args=args).run()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/commands/base.py", line 120, in run
return self.subcommands[self.args.sub_command]['run'](self)()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/commands/recipes.py", line 180, in run_add_defaults
if not self.add_recipe_dir(alias, uri):
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/commands/recipes.py", line 347, in add_recipe_dir
Fetcher().fetch_url(uri, recipe_cache_top_level, alias, {}) # No args
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/fetcher.py", line 72, in fetch_url
fetcher.assert_requirements()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/requirer.py", line 80, in assert_requirements
require_hostsys_dependencies(requirements)
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/requirer.py", line 50, in require_hostsys_dependencies
install_type="binary", # Requirers may not request source packages
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/install_manager.py", line 112, in install
lambda pkg: _cached_check_if_pkg_goes_into_tree(pkg, _check_if_pkg_goes_into_tree)
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/dep_manager.py", line 53, in make_dep_tree
pkg_set = set([pkg for pkg in pkg_list if filter_callback(pkg)])
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/dep_manager.py", line 53, in <listcomp>
pkg_set = set([pkg for pkg in pkg_list if filter_callback(pkg)])
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/install_manager.py", line 112, in <lambda>
lambda pkg: _cached_check_if_pkg_goes_into_tree(pkg, _check_if_pkg_goes_into_tree)
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/install_manager.py", line 97, in _cached_check_if_pkg_goes_into_tree
ret_val = check_callback(pkg)
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/install_manager.py", line 63, in _check_if_pkg_goes_into_tree
if not self.pm.exists(pkg):
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/package_manager.py", line 128, in exists
if self.check_package_flag(name, 'forceinstalled'):
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/package_manager.py", line 89, in check_package_flag
recipe.get_recipe(pkgname).category
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipe.py", line 383, in get_recipe
r = Recipe(recipe_manager.recipe_manager.get_recipe_filename(pkgname))
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipe.py", line 219, in __init__
self._data = self._load_recipe_from_file(filename)
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/recipe.py", line 256, in _load_recipe_from_file
data = PBConfigFile(filename).get()
File "/home/dalun/Public/gnuradio_venv/lib/python3.6/site-packages/pybombs/config_file.py", line 84, in __init__
assert isinstance(self.data, dict)
AssertionError
dalun@Hertz:~/Public$ git
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
These are common Git commands used in various situations:
start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialise an existing one
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
checkout Switch branches or restore working tree files
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
tag Create, list, delete or verify a tag object signed with GPG
collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment