a blog by Marius Gedminas

Posts tagged Ubuntu

ImportError: No module named _md5

If you're using virtualenv, and after a system upgrade you get errors like ... File "...", line ... from hashlib import md5 File "/usr/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 this means that the copy of the python executable in your virtualenv/bin directory is outdated and you should update it: $ cp /usr/bin/python2.6 /path/to/venv/bin/python or, better yet, recreate the virtualenv.

Booting ISO images from a USB drive

Dear lazyweb, I would like to download an arbitrary ISO image (say, a Ubuntu 10.04 Desktop CD) into a directory of a USB flash drive, and then make that USB flash drive boot that ISO image. I do not want to re-partition or re-format the flash drive (this eliminates usb-creator, AFAIU) extract the contents of the ISO image into the root of the USB drive (this eliminates unetbootin) skip the ISO's bootloader and directly boot the kernel+initramfs from the ISO (eliminates this recipe, and thisrecipe) I just want a bootloader on the USB to read the VFAT filesystem, mount the ISO image as a loop device, then chain-load the bootloader from that ISO.

Buildbot issues on Ubuntu Hardy

Update: The story continues, but solution is not in sight yet. I upgraded a buildbot slave to Ubuntu 8.04 (Hardy) recently and now I'm getting a strange intermittent failure: sometimes cp -r /local/dir /nfs/mounted/dir fails ("process killed by signal 1", i.e. SIGHUP). I wonder if NFS is relevant or incidental to the issue? Google finds an old thread from 2005, with a workaround (usepty=False), but I'd like to understand the problem before applying random fixes.