Ask Your Question
1

How can I add attrib.py module for nose in tempest?

asked 2013-10-21 03:22:46 -0500

cwygl gravatar image

updated 2013-10-25 17:06:55 -0500

smaffulli gravatar image

Now I always meet the error below and I found that I need attrib.py module, but how can I add attrib.py module for nose in openstack tempest module.

ERROR: Failure: AttributeError ('module' object has no attribute 'WithAttributes')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/local/eayun-tempest/tempest/api/compute/flavors/test_flavors.py", line 18, in <module>
    from tempest.api.compute import base
  File "/local/eayun-tempest/tempest/api/compute/base.py", line 25, in <module>
    import tempest.test
  File "/local/eayun-tempest/tempest/test.py", line 98, in <module>
    testtools.testcase.WithAttributes,
AttributeError: 'module' object has no attribute 'WithAttributes'
edit retag flag offensive close delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-01 08:24:55 -0500

DennyZhang gravatar image

How about: pip install --upgrade testtools

https://bugs.Launchpad.net/ubuntu/+source/python-testtools/+bug/1174630

It would be great, if you can elaborate the reproduce procedures for this problem.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2013-10-21 03:22:46 -0500

Seen: 171 times

Last updated: Nov 01 '13