Crashes on launch with "Testdrive instance has no attribute 'm'"

Bug #585792 reported by Nicolas Briche
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
TestDrive
Fix Released
Undecided
Andres Rodriguez

Bug Description

With testdrive 2.1-0ubuntu1~ppa4.

I hadn't run Testdrive for a while, before the Lucid final release. When I did try today, it crashed after "Retrieving Ubuntu Development Release codename from cache":

nbriche@info2:~$ testdrive
INFO: version passed: False
INFO: config passed: None
INFO: Trying config in /etc/testdriverc
INFO: Using configuration in /etc/testdriverc
INFO: Trying config in /home/nbriche/.testdriverc
INFO: Trying config in /home/nbriche/.config/testdrive/testdriverc
INFO: Using VirtualBox for virtual machine hosting...
INFO: Retrieving Ubuntu Development Release codename from cache...
Traceback (most recent call last):
  File "/usr/bin/testdrive", line 313, in <module>
    main()
  File "/usr/bin/testdrive", line 250, in main
    ISO = td.list_isos()
  File "/usr/lib/python2.6/dist-packages/testdrive/testdrive.py", line 85, in list_isos
    for a in self.m:
AttributeError: Testdrive instance has no attribute 'm'

I emptied .cache/testdrive, same thing.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Nicolas,

This is a known bug I'll fix in the next release. If you want it working now please just open the config file ("/etc/testdriverc") and uncomment the line #m = i386 by removing the #.

Thank you for your bug report.

Changed in testdrive:
status: New → In Progress
assignee: nobody → Andres Rodriguez (andreserl)
Changed in testdrive:
status: In Progress → Fix Committed
Revision history for this message
Harald (hdmuell) wrote :

additionally I get messages like:

Select an image to testdrive [1]: 1
INFO: Syncing the specified ISO...
      rsync://cdimage.ubuntu.com/cdimage/daily-live/current/maverick-desktop-i386.iso
receiving file list ...
rsync: link_stat "/daily-live/current/maverick-desktop-i386.iso" (in cdimage) failed: No such file or directory (2)
0 files to consider

I tried the parameter u = rsync://cdimage.ubuntu.com in the config file ("/etc/testdriverc") but still I can not find maverick images

the best I can get is something like:

Select an image to testdrive [1]: 3
INFO: Syncing the specified ISO...
      rsync://cdimage.ubuntu.com/daily/current/maverick-alternate-i386.iso
@ERROR: Unknown module 'daily'
rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver=3.0.7]

ERROR: Command failed
    `rsync -azP rsync://cdimage.ubuntu.com/daily/current/maverick-alternate-i386.iso /home/hh/.cache/testdrive/iso/maverick-alternate-i386.iso`

Revision history for this message
Harald (hdmuell) wrote :

the only way to get it download the file is:
use the option 6 and than enter a link (http: works rsync: does not)
http://cdimage.ubuntu.com/daily/current/maverick-alternate-i386.iso

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Harald,

This is because the cdimage archive of ubuntu does not yet have all the ISO's. Don't worry this wil be addressed in a different way the next release that will come out in the next few days.

Just be patient :)

thank you.

Revision history for this message
Harald (hdmuell) wrote :

now I could download the file but I get new error messages

verifying download...checksum matches OK
used 0 local, fetched 728484181
Traceback (most recent call last):
  File "/usr/bin/testdrive", line 313, in <module>
    main()
  File "/usr/bin/testdrive", line 270, in main
    run_or_die(cmd)
  File "/usr/bin/testdrive", line 99, in run_or_die
    if run(cmd) != 0:
  File "/usr/bin/testdrive", line 96, in run
    return(os.system(cmd))
TypeError: system() argument 1 must be string, not None

Revision history for this message
Andres Rodriguez (andreserl) wrote :

How where you able to download the file? How did you run testdrive (with what commands), what virtualization method are you using. Please provide that information.

Thank you.

Revision history for this message
HugoHirsch (ubuntubugs-aiki-it) wrote :
Download full text (5.0 KiB)

When I wanted to collect bug information with ubuntu-bug or apport-cli I was told that testdrive is not a genuine ubuntu package - why is that? How can I report bugs with the system's tools then?

Comment from #1 worked for me. Syncing of maverick-desktop via rsync was fine too.
Unfortunately testdrive fails to start the downloaded release - does this relate to the above mentioned fix in /etc/testdriverc?

user@machine:~$ testdrive
INFO: version passed: False
INFO: config passed: None
INFO: Trying config in /etc/testdriverc
INFO: Using configuration in /etc/testdriverc
INFO: Trying config in /home/user/.testdriverc
INFO: Trying config in /home/user/.config/testdrive/testdriverc
INFO: Using VirtualBox for virtual machine hosting...
INFO: Retrieving Ubuntu Development Release codename from cache...

Welcome to Testdrive!

  1. Ubuntu Desktop (maverick-i386)
  2. Ubuntu Server (maverick-i386)
  3. Ubuntu Alternate (maverick-i386)
  4. Ubuntu DVD (maverick-i386)
  5. Ubuntu Netbook (maverick-i386)
  6. Other (prompt for ISO URL)

Select an image to testdrive [1]: 1
INFO: Syncing the specified ISO...
      rsync://cdimage.ubuntu.com/cdimage/daily-live/current/maverick-desktop-i386.iso
receiving file list ...
1 file to consider
maverick-desktop-i386.iso
   705103872 100% 1.58MB/s 0:07:04 (xfer#1, to-check=0/1)

sent 145 bytes received 705340717 bytes 1657675.35 bytes/sec
total size is 705103872 speedup is 1.00
INFO: Validating Virtualization Method....
ERROR: Unsupported version (3.2) of VirtualBox; please install v3.0 or v3.1.
INFO: Setting up Virtual Machine...
INFO: Creating disk image...
Oracle VM VirtualBox Command Line Management Interface Version 3.2.0_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...1...

Read more...

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hugo,

It says that it is not a genuine package because you are installing it from PPA and not from the Ubuntu Archives. On the other hand, a new version of testdrive will be released soon fixing the above bug.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

After giving a second look this is because Testdrive does not yet support VirtualBox 2.0. This will be fixed soon!!

Changed in testdrive:
status: Fix Committed → Fix Released
Revision history for this message
HugoHirsch (ubuntubugs-aiki-it) wrote :

Bugfix worked for me - testdrive 2.2-0ubuntu1~ppa4 - starts maverick with me. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.