core-framework
core-framework copied to clipboard
build errors with current python version
make[2]: Entering directory '/home/klein_cl/Workspace/core-framework/redhawk/src/testing'
python setup.py --quiet build
File "setup.py", line 41
print "Incosistent tab usage:"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Incosistent tab usage:")?
make[2]: *** [Makefile:961: all-local] Error 1
make[2]: Target 'all-am' not remade because of errors.
this helps:
$ find . -name setup.py | xargs 2to3 -w
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: No changes to ./base/framework/python/build/lib/ossie/apps/qtbrowse/setup.py
RefactoringTool: No changes to ./base/framework/python/ossie/apps/qtbrowse/setup.py
RefactoringTool: Refactored ./base/framework/python/setup.py
--- ./base/framework/python/setup.py (original)
+++ ./base/framework/python/setup.py (refactored)
@@ -38,7 +38,7 @@
sys.stderr = stderr
if len(co.getvalue().strip()) != 0:
print("Incosistent tab usage:")
- print(co.getvalue())
+ print((co.getvalue()))
sys.exit(-1)
import ossie.version
RefactoringTool: Refactored ./testing/setup.py
--- ./testing/setup.py (original)
+++ ./testing/setup.py (refactored)
@@ -28,18 +28,18 @@
except ImportError:
pass
else:
- import StringIO
+ import io
stdout, stderr = sys.stdout, sys.stderr
- sys.stdout = co = StringIO.StringIO()
- sys.stderr = ce = StringIO.StringIO()
+ sys.stdout = co = io.StringIO()
+ sys.stderr = ce = io.StringIO()
# Tabnanny doesn't provide any mechanism other than print outs so we have
# to capture the output
tabnanny.check("_unitTestHelpers")
sys.stdout = stdout
sys.stderr = stderr
if len(co.getvalue().strip()) != 0:
- print "Incosistent tab usage:"
- print co.getvalue()
+ print("Incosistent tab usage:")
+ print(co.getvalue())
sys.exit(-1)
unitTestHelper = [
RefactoringTool: Files that were modified:
RefactoringTool: ./base/framework/python/build/lib/ossie/apps/qtbrowse/setup.py
RefactoringTool: ./base/framework/python/ossie/apps/qtbrowse/setup.py
RefactoringTool: ./base/framework/python/setup.py
RefactoringTool: ./testing/setup.py
$
see too https://github.com/RedhawkSDR/core-framework/pull/22