TypeError: coercing to Unicode: need string or buffer, NoneType found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
sudo vmbuilder xen ubuntu \
--suite lucid --flavour virtual --arch amd64 \
--part partitions.txt \
--user ubuntu --name Ubuntu \
--components main,universe \
--addpkg openssh-server
2010-03-30 07:25:00,509 INFO : Calling hook: preflight_check
2010-03-30 07:25:00,514 INFO : Calling hook: set_defaults
2010-03-30 07:25:00,515 INFO : Calling hook: bootstrap
2010-03-30 07:26:43,726 INFO : Calling hook: configure_os
2010-03-30 07:26:53,850 INFO : update-
2010-03-30 07:26:54,070 INFO : update-
2010-03-30 07:26:54,291 INFO : update-
2010-03-30 07:26:56,001 INFO : Creating SSH2 RSA key; this may take some time ...
2010-03-30 07:26:57,643 INFO : Creating SSH2 DSA key; this may take some time ...
2010-03-30 07:26:58,175 INFO :
2010-03-30 07:26:58,177 INFO : Warning: Fake initctl called, doing nothing
2010-03-30 07:26:58,190 INFO :
2010-03-30 07:26:58,190 INFO : Warning: Fake initctl called, doing nothing
2010-03-30 07:27:00,334 INFO :
2010-03-30 07:27:00,335 INFO : Current default time zone: 'Etc/UTC'
2010-03-30 07:27:00,349 INFO : Local time is now: Tue Mar 30 06:27:00 UTC 2010.
2010-03-30 07:27:00,349 INFO : Universal Time is now: Tue Mar 30 06:27:00 UTC 2010.
2010-03-30 07:27:00,349 INFO :
2010-03-30 07:27:04,436 INFO : Calling hook: post_install
2010-03-30 07:27:04,442 INFO : Calling hook: preflight_check
2010-03-30 07:27:04,443 INFO : Calling hook: configure_
2010-03-30 07:27:04,459 INFO : Calling hook: configure_mounting
2010-03-30 07:27:04,474 INFO : Calling hook: mount_partitions
2010-03-30 07:27:04,475 INFO : Mounting target filesystems
2010-03-30 07:27:04,475 INFO : Creating filesystem: /, size: 20000, dummy: False
Traceback (most recent call last):
File "/usr/bin/
cli.main()
File "/usr/lib/
hypervisor.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(
File "/usr/lib/
fs.create()
File "/usr/lib/
if not os.path.
File "/usr/lib/
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
dpkg -l python-vm-builder
python-vm-builder 0.12.3-0ubuntu1
Altering whether 'partitions.txt' has a newline at the end gives a different traceback:
ubuntu@ ubuntu: ~/build$ cat partitions.txt
root 20000
ubuntu@ ubuntu: ~/build$
If the newline is added, then the result is:
2010-03-30 07:32:57,831 INFO : Calling hook: post_install vmbuilder" , line 24, in <module> python2. 6/dist- packages/ VMBuilder/ contrib/ cli.py" , line 115, in main set_disk_ layout( hypervisor) python2. 6/dist- packages/ VMBuilder/ contrib/ cli.py" , line 228, in set_disk_layout add_filesystem( elements[ 1], type=default_ filesystem, mntpnt=elements[0]) ubuntu: ~/build$ cat partitions.txt
Traceback (most recent call last):
File "/usr/bin/
cli.main()
File "/usr/lib/
self.
File "/usr/lib/
hypervisor.
IndexError: list index out of range
ubuntu@
root 20000