I created a version of pygrub in /usr/local/bin which I could change to python2.5 and use for debugging purposes. It was a copy of the version in /usr/bin. To make sure I have the right version I moved pygrub out of /usr/bin and did an apt-get reinstall xen-utils-3.3. This reinstalled version 3.3.0-1ubuntu9.3. I verified that pygrub was changed to python2.5 (meaning my statement about 2.6 being the default was incorrect above).
However the same results are obtained through the following:
# python2.5 /usr/bin/pygrub rawimagefile
WARNING:root:Unknown image directive quiet
WARNING:root:Unknown image directive quiet
WARNING:root:Unknown image directive quiet
WARNING:root:Unknown image directive quiet
WARNING:root:Unknown image directive quiet
Traceback (most recent call last):
File "/usr/bin/pygrub", line 660, in <module>
chosencfg = run_grub(file, entry, fs)
File "/usr/bin/pygrub", line 513, in run_grub
curses.wrapper(run_main)
File "/usr/lib/python2.5/curses/wrapper.py", line 47, in wrapper
stdscr.keypad(0)
UnboundLocalError: local variable 'stdscr' referenced before assignment
# python2.6 /usr/bin/pygrub rawimagefile
Traceback (most recent call last):
File "/usr/bin/pygrub", line 26, in <module>
import fsimage
ImportError: No module named fsimage
I am certainly open to the idea that this is some problem on my system so if someone running Xen on Ubuntu 9.04 could try these commands that would be helpful. To confirm the version of pygrub here is the md5sum:
I created a version of pygrub in /usr/local/bin which I could change to python2.5 and use for debugging purposes. It was a copy of the version in /usr/bin. To make sure I have the right version I moved pygrub out of /usr/bin and did an apt-get reinstall xen-utils-3.3. This reinstalled version 3.3.0-1ubuntu9.3. I verified that pygrub was changed to python2.5 (meaning my statement about 2.6 being the default was incorrect above).
However the same results are obtained through the following:
# python2.5 /usr/bin/pygrub rawimagefile root:Unknown image directive quiet root:Unknown image directive quiet root:Unknown image directive quiet root:Unknown image directive quiet root:Unknown image directive quiet wrapper( run_main) python2. 5/curses/ wrapper. py", line 47, in wrapper keypad( 0)
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
Traceback (most recent call last):
File "/usr/bin/pygrub", line 660, in <module>
chosencfg = run_grub(file, entry, fs)
File "/usr/bin/pygrub", line 513, in run_grub
curses.
File "/usr/lib/
stdscr.
UnboundLocalError: local variable 'stdscr' referenced before assignment
# python2.6 /usr/bin/pygrub rawimagefile
Traceback (most recent call last):
File "/usr/bin/pygrub", line 26, in <module>
import fsimage
ImportError: No module named fsimage
I am certainly open to the idea that this is some problem on my system so if someone running Xen on Ubuntu 9.04 could try these commands that would be helpful. To confirm the version of pygrub here is the md5sum:
md5sum /usr/bin/pygrub 39aa989ef0ffd32 ec /usr/bin/pygrub
c5af85e5f126aea
Also this is an amd64 system.