osrf / capabilities

Implements the concept of capabilities as part of the robots-in-concert system.
Other
8 stars 26 forks source link

make run_tests fails #8

Closed bit-pirate closed 10 years ago

bit-pirate commented 10 years ago
$ make run_tests
Scanning dependencies of target clean_test_results
Built target clean_test_results
Scanning dependencies of target tests
Built target tests
Scanning dependencies of target _run_tests_capabilities_nosetests_test
-- run_tests.py: execute commands
  /usr/bin/cmake -E make_directory /opt/sandbox_workspace/sandbox_capabilities/build/test_results/capabilities
  /usr/bin/nosetests -P --process-timeout=60 --where=/opt/sandbox_workspace/sandbox_capabilities/src/capabilities/test --with-xunit --xunit-file=/opt/sandbox_workspace/sandbox_capabilities/build/test_results/capabilities/nosetests-test.xml
..............E........
======================================================================
ERROR: Test source code for PEP8 conformance
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/opt/sandbox_workspace/sandbox_capabilities/src/capabilities/test/test_code_quality.py", line 7, in test_pep8_conformance
    pep8style = pep8.StyleGuide(max_line_length=120)
AttributeError: 'module' object has no attribute 'StyleGuide'

----------------------------------------------------------------------
Ran 23 tests in 0.206s

FAILED (errors=1)
-- run_tests.py: verify result "/opt/sandbox_workspace/sandbox_capabilities/build/test_results/capabilities/nosetests-test.xml"
Built target _run_tests_capabilities_nosetests_test
Scanning dependencies of target _run_tests_capabilities_nosetests
Built target _run_tests_capabilities_nosetests
Scanning dependencies of target _run_tests_capabilities
Built target _run_tests_capabilities
Scanning dependencies of target run_tests
Built target run_tests
bit-pirate commented 10 years ago

Maybe I'm just doing this wrong ... https://github.com/osrf/capabilities/issues/7

tfoote commented 10 years ago

I think this is relying on a newer version of the pep8 library. @wjwwood

wjwwood commented 10 years ago

Yeah, it looks like your pep8 is different from mine? Can you check the version of pep8 you have?

bit-pirate commented 10 years ago

I'm running 0.6.1. Which version should I have?

wjwwood commented 10 years ago

This is what I have:

% pip freeze | grep pep8
pep8==1.4.5
bit-pirate commented 10 years ago

Ah, it comes from pip. Just updated it and now I running 1.4.6. Now, make run_tests works fine. Thx.