vmbuilder cannot find locale.tmpl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When attempting to build an image with ubuntu-vm-builder, I get the following error:
Traceback (most recent call last):
File "/home/
VMBuilder.run()
File "/home/
frontend.run()
File "/home/
vm.create()
File "/home/
raise e
VMBuilder.
make: *** [build/
However, examination of the first templates directory shows that VMBuilder does, in fact, have that template.
In a debugging session, the problem becomes apparent:
(Pdb) tmpl = 'VMBuilder/
(Pdb) os.path.
False
(Pdb) os.path.
False
(Pdb) os.getcwd()
'/home/
In order for the template to be found in the VMBuilder templates dir, we need to supply an absolute path:
=== modified file 'VMBuilder/util.py'
--- VMBuilder/util.py 2008-11-27 17:25:29 +0000
+++ VMBuilder/util.py 2009-03-05 17:19:21 +0000
@@ -169,7 +169,7 @@
searchList
- tmpldirs = ['VMBuilder/
+ tmpldirs = [os.path.
Related branches
Changed in vmbuilder: | |
status: | New → Confirmed |
Changed in vmbuilder: | |
status: | Confirmed → Fix Released |
I just attached a branch for this patch as well. Branch was made from trunk, r288.