You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Adam Glenn <ge...@gmail.com> on 2012/07/11 17:21:41 UTC

[dev] Trying to setup my own build environment

I haven't gotten as far as setting up and configuring buildbot yet but I'm
having problems with tox

When I run tox all versions of python are failing with the same error

AttributeError: 'module' object has no attribute 'test_vpsnet'

I tried moving the test_vpsnet.py out of the way but then it produced the
same error about test_openstack.py. I'm still diging into what is happening
but I wanted to ask the list if anyone had run into this before.

The traceback of one of the failures looks like this:


py32 sdist-reinst: /root/libcloud/.tox/dist/apache-libcloud-0.10.1.zip
py32 runtests: commands[0]
running test
Traceback (most recent call last):
  File "setup.py", line 249, in <module>
    'Programming Language :: Python :: Implementation :: PyPy'])
  File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in
run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in
run_command
    cmd_obj.run()
  File "setup.py", line 82, in run
    status = self._run_tests()
  File "setup.py", line 130, in _run_tests
    tests = TestLoader().loadTestsFromNames(testfiles)
  File "/usr/local/lib/python3.2/unittest/loader.py", line 132, in
loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/local/lib/python3.2/unittest/loader.py", line 132, in
<listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/local/lib/python3.2/unittest/loader.py", line 100, in
loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_vpsnet'