Skip to content

Instantly share code, notes, and snippets.

@derks
Created May 14, 2011 20:48
Show Gist options
  • Save derks/972616 to your computer and use it in GitHub Desktop.
Save derks/972616 to your computer and use it in GitHub Desktop.
holland bk (path issues)
(holland-test)derks-macbook [~] $ holland bk
2011-05-14 15:46:40,578 [INFO] Backup: default
2011-05-14 15:46:40,619 [INFO] + Found plugin mysqldump
2011-05-14 15:46:40,619 [INFO] + Locked spool /Users/wdierkes/holland-test/backups/default/.holland
2011-05-14 15:46:40,619 [INFO] + Initialized backup directory /Users/wdierkes/holland-test/backups/default/20110514_154640.cAJ5xe
2011-05-14 15:46:40,620 [INFO] + Running setup-backup hooks
2011-05-14 15:46:40,620 [INFO] + Configured plugin
2011-05-14 15:46:40,620 [INFO] + Running backup failure hooks
2011-05-14 15:46:40,620 [INFO] Unexpected exception while running command "bk"
Traceback (most recent call last):
File "/Users/wdierkes/devel/holland/holland/cli/main.py", line 116, in execute
return self.chain(opts.subcommand, opts.args)
File "/Users/wdierkes/devel/holland/holland/cli/cmd/base.py", line 123, in chain
return cmd(args)
File "/Users/wdierkes/devel/holland/holland/cli/cmd/base.py", line 220, in __call__
return self.execute(optns, parser)
File "/Users/wdierkes/devel/holland/holland/cli/cmd/builtin/cmd_backup.py", line 59, in execute
dry_run=dry_run)
File "/Users/wdierkes/devel/holland/holland/cli/cmd/builtin/cmd_backup.py", line 82, in run_backup
backupmgr.backup(config, dry_run=dry_run)
File "/Users/wdierkes/devel/holland/holland/core/backup/manager.py", line 50, in backup
job.run(dry_run)
File "/Users/wdierkes/devel/holland/holland/core/backup/job.py", line 51, in run
self.plugin.pre()
File "/Users/wdierkes/devel/holland/plugins/holland.backup.mysqldump/holland/backup/mysqldump/plugin.py", line 25, in pre
self._schema = schema_from_config(self.config['mysqldump'])
NameError: global name 'schema_from_config' is not defined
@derks
Copy link
Author

derks commented May 14, 2011

(holland-test)derks-macbook [~] $ python -V
Python 2.7.1

(holland-test)derks-macbook [~] $ which Python
/Users/wdierkes/holland-test/bin/Python

import sys
for i in sys.path:
... print i
...

/Users/wdierkes/holland-test/lib/python2.7/site-packages/distribute-0.6.16-py2.7.egg
/Users/wdierkes/holland-test/lib/python2.7/site-packages/pip-0.8.1-py2.7.egg
/Users/wdierkes/devel/holland
/Users/wdierkes/devel/holland/plugins/holland.lib.common
/Users/wdierkes/devel/holland/plugins/holland.lib.mysql
/Users/wdierkes/devel/holland/plugins/holland.lib.lvm
/Users/wdierkes/devel/holland/plugins/holland.backup.mysqldump
/Users/wdierkes/devel/holland/plugins/holland.backup.mysql_lvm
/Users/wdierkes/devel/holland/plugins/holland.backup.xtrabackup
/Users/wdierkes/holland-test/lib/python27.zip
/Users/wdierkes/holland-test/lib/python2.7
/Users/wdierkes/holland-test/lib/python2.7/plat-darwin
/Users/wdierkes/holland-test/lib/python2.7/plat-mac
/Users/wdierkes/holland-test/lib/python2.7/plat-mac/lib-scriptpackages
/Users/wdierkes/holland-test/lib/python2.7/lib-tk
/Users/wdierkes/holland-test/lib/python2.7/lib-old
/Users/wdierkes/holland-test/lib/python2.7/lib-dynload
/usr/local/Cellar/python/2.7.1/lib/python2.7
/usr/local/Cellar/python/2.7.1/lib/python2.7/plat-darwin
/usr/local/Cellar/python/2.7.1/lib/python2.7/lib-tk
/usr/local/Cellar/python/2.7.1/lib/python2.7/plat-mac
/usr/local/Cellar/python/2.7.1/lib/python2.7/plat-mac/lib-scriptpackages
/Users/wdierkes/holland-test/lib/python2.7/site-packages
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/distribute-0.6.14-py2.7.egg
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/virtualenv-1.5.1-py2.7.egg
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/tg.devtools-2.1-py2.7.egg
/Users/wdierkes/devel/neighborfarms/src/interfaces/python
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/zope.interface-3.6.1-py2.7-macosx-10.4-x86_64.egg
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/nose-1.0.0-py2.7.egg
/Users/wdierkes/devel/ius-tools/src/iustools.ircbot
/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment