Hi, pytools tests fail with python-3. Is this expected? Are pytools ready for py3?
Please find attached a build.log Regards, Justin
[32;01m * [39;49;00mPackage: dev-python/pytools-2013.5.6 [32;01m * [39;49;00mRepository: gentoo [32;01m * [39;49;00mMaintainer: [email protected] [32;01m * [39;49;00mUSE: amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 test userland_GNU [32;01m * [39;49;00mFEATURES: ccache compressdebug fakeroot preserve-libs sandbox splitdebug test userpriv usersandbox debug: eclass exists: /local/home/justin/tree/eclass/distutils-r1.eclass debug: inherit: distutils-r1 -> /local/home/justin/tree/eclass/distutils-r1.eclass debug: *** Multiple Inheritence (Level: 2) debug: eclass exists: /local/home/justin/tree/eclass/eutils.eclass debug: inherit: eutils -> /local/home/justin/tree/eclass/eutils.eclass debug: *** Multiple Inheritence (Level: 3) debug: eclass exists: /local/home/justin/tree/eclass/multilib.eclass debug: inherit: multilib -> /local/home/justin/tree/eclass/multilib.eclass debug: *** Multiple Inheritence (Level: 4) debug: eclass exists: /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: inherit: toolchain-funcs -> /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: *** Multiple Inheritence (Level: 5) debug: eclass exists: /local/home/justin/tree/eclass/multilib.eclass debug: inherit: multilib -> /local/home/justin/tree/eclass/multilib.eclass debug: eclass exists: /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: inherit: toolchain-funcs -> /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: eclass exists: /local/home/justin/tree/eclass/user.eclass debug: inherit: user -> /local/home/justin/tree/eclass/user.eclass debug: *** Multiple Inheritence (Level: 2) debug: eclass exists: /local/home/justin/tree/eclass/multiprocessing.eclass debug: inherit: multiprocessing -> /local/home/justin/tree/eclass/multiprocessing.eclass debug: eclass exists: /local/home/justin/tree/eclass/python-r1.eclass debug: inherit: python-r1 -> /local/home/justin/tree/eclass/python-r1.eclass debug: *** Multiple Inheritence (Level: 3) debug: eclass exists: /local/home/justin/tree/eclass/multibuild.eclass debug: inherit: multibuild -> /local/home/justin/tree/eclass/multibuild.eclass debug: *** Multiple Inheritence (Level: 4) debug: eclass exists: /local/home/justin/tree/eclass/multiprocessing.eclass debug: inherit: multiprocessing -> /local/home/justin/tree/eclass/multiprocessing.eclass debug: eclass exists: /local/home/justin/tree/eclass/python-utils-r1.eclass debug: inherit: python-utils-r1 -> /local/home/justin/tree/eclass/python-utils-r1.eclass debug: *** Multiple Inheritence (Level: 4) debug: eclass exists: /local/home/justin/tree/eclass/eutils.eclass debug: inherit: eutils -> /local/home/justin/tree/eclass/eutils.eclass debug: eclass exists: /local/home/justin/tree/eclass/multilib.eclass debug: inherit: multilib -> /local/home/justin/tree/eclass/multilib.eclass debug: eclass exists: /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: inherit: toolchain-funcs -> /local/home/justin/tree/eclass/toolchain-funcs.eclass debug: _python_impl_supported: entering function, parameters: python2_6 debug: python_export: entering function, parameters: python2_6 PYTHON_PKG_DEP debug: python_export: implementation: python2.6 debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-2.6.8-r3:2.6 debug: _python_impl_supported: entering function, parameters: python2_7 debug: python_export: entering function, parameters: python2_7 PYTHON_PKG_DEP debug: python_export: implementation: python2.7 debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-2.7.5-r2:2.7 debug: _python_impl_supported: entering function, parameters: python3_2 debug: python_export: entering function, parameters: python3_2 PYTHON_PKG_DEP debug: python_export: implementation: python3.2 debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-3.2.5-r2:3.2 debug: _python_impl_supported: entering function, parameters: python3_3 debug: python_export: entering function, parameters: python3_3 PYTHON_PKG_DEP debug: python_export: implementation: python3.3 debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-3.3.2-r2:3.3 debug: EXPORT_FUNCTIONS: src_prepare -> distutils-r1_src_prepare debug: EXPORT_FUNCTIONS: src_configure -> distutils-r1_src_configure debug: EXPORT_FUNCTIONS: src_compile -> distutils-r1_src_compile debug: EXPORT_FUNCTIONS: src_test -> distutils-r1_src_test debug: EXPORT_FUNCTIONS: src_install -> distutils-r1_src_install [32;01m * [39;49;00mPackage: dev-python/pytools-2013.5.6 [32;01m * [39;49;00mRepository: gentoo [32;01m * [39;49;00mMaintainer: [email protected] [32;01m * [39;49;00mUSE: amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 test userland_GNU [32;01m * [39;49;00mFEATURES: ccache compressdebug fakeroot preserve-libs sandbox splitdebug test userpriv usersandbox >>> Unpacking source... >>> Unpacking pytools-2013.5.6.tar.gz to >>> /var/tmp/portage/dev-python/pytools-2013.5.6/work >>> Source unpacked in /var/tmp/portage/dev-python/pytools-2013.5.6/work >>> Preparing source in >>> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6 ... debug: distutils-r1_src_prepare: entering function, parameters: debug: distutils-r1_python_prepare_all: entering function, parameters: >>> Source prepared. >>> Configuring source in >>> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6 ... >>> Source configured. >>> Compiling source in >>> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6 ... debug: distutils-r1_src_compile: entering function, parameters: debug: _distutils-r1_run_foreach_impl: entering function, parameters: distutils-r1_python_compile debug: python_foreach_impl: entering function, parameters: distutils-r1_run_phase distutils-r1_python_compile debug: _python_validate_useflags: entering function, parameters: debug: _python_impl_supported: entering function, parameters: python2_6 debug: _python_impl_supported: entering function, parameters: python2_7 debug: _python_check_USE_PYTHON: entering function, parameters: debug: _python_check_USE_PYTHON: trying USE_PYTHON solution ... debug: _python_check_USE_PYTHON: -> USE_PYTHON=2.7 3.3 debug: _python_impl_supported: entering function, parameters: python2_6 debug: _python_impl_supported: entering function, parameters: python2_7 debug: _python_impl_supported: entering function, parameters: python3_2 debug: _python_impl_supported: entering function, parameters: python3_3 debug: multibuild_foreach_variant: entering function, parameters: _python_multibuild_wrapper distutils-r1_run_phase distutils-r1_python_compile debug: multibuild_foreach_variant: initial build_dir = /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6 [32;01m*[0m python3_3: running distutils-r1_run_phase distutils-r1_python_compile debug: _python_multibuild_wrapper: entering function, parameters: distutils-r1_run_phase distutils-r1_python_compile debug: python_export: entering function, parameters: python3_3 EPYTHON PYTHON debug: python_export: implementation: python3.3 debug: python_export: EPYTHON = python3.3 debug: python_export: PYTHON = /usr/bin/python3.3 debug: python_wrapper_setup: entering function, parameters: debug: python_export: entering function, parameters: python3.3 EPYTHON PYTHON debug: python_export: implementation: python3.3 debug: python_export: EPYTHON = python3.3 debug: python_export: PYTHON = /usr/bin/python3.3 debug: distutils-r1_run_phase: entering function, parameters: distutils-r1_python_compile debug: distutils-r1_python_compile: entering function, parameters: debug: esetup.py: entering function, parameters: build /usr/bin/python3.3 setup.py build running build running build_py creating /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib creating /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/__init__.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/obj_array.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/test.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/arithmetic_container.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/mpiwrap.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/decorator.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/datatable.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/prefork.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/debug.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/stopwatch.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/spatial_btree.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/diskdict.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/batchjob.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/log.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/py_codegen.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/convergence.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/mpi.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools copying pytools/lex.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python3_3/lib/pytools Skipping implicit fixer: buffer Skipping implicit fixer: idioms Skipping implicit fixer: set_literal Skipping implicit fixer: ws_comma warning: build_py_2to3: byte-compiling is disabled, skipping. [32;01m*[0m python2_7: running distutils-r1_run_phase distutils-r1_python_compile debug: _python_multibuild_wrapper: entering function, parameters: distutils-r1_run_phase distutils-r1_python_compile debug: python_export: entering function, parameters: python2_7 EPYTHON PYTHON debug: python_export: implementation: python2.7 debug: python_export: EPYTHON = python2.7 debug: python_export: PYTHON = /usr/bin/python2.7 debug: python_wrapper_setup: entering function, parameters: debug: python_export: entering function, parameters: python2.7 EPYTHON PYTHON debug: python_export: implementation: python2.7 debug: python_export: EPYTHON = python2.7 debug: python_export: PYTHON = /usr/bin/python2.7 debug: distutils-r1_run_phase: entering function, parameters: distutils-r1_python_compile debug: distutils-r1_python_compile: entering function, parameters: debug: esetup.py: entering function, parameters: build /usr/bin/python2.7 setup.py build running build running build_py creating /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib creating /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/__init__.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/obj_array.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/test.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/arithmetic_container.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/mpiwrap.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/decorator.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/datatable.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/prefork.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/debug.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/stopwatch.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/spatial_btree.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/diskdict.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/batchjob.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/log.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/py_codegen.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/convergence.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/mpi.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools copying pytools/lex.py -> /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6-python2_7/lib/pytools warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. debug: distutils-r1_src_test: entering function, parameters: debug: _distutils-r1_run_foreach_impl: entering function, parameters: python_test debug: python_foreach_impl: entering function, parameters: distutils-r1_run_phase python_test debug: _python_validate_useflags: entering function, parameters: debug: _python_impl_supported: entering function, parameters: python2_6 debug: _python_impl_supported: entering function, parameters: python2_7 debug: _python_check_USE_PYTHON: entering function, parameters: debug: multibuild_foreach_variant: entering function, parameters: _python_multibuild_wrapper distutils-r1_run_phase python_test debug: multibuild_foreach_variant: initial build_dir = /var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6 [32;01m*[0m python3_3: running distutils-r1_run_phase python_test debug: _python_multibuild_wrapper: entering function, parameters: distutils-r1_run_phase python_test debug: python_export: entering function, parameters: python3_3 EPYTHON PYTHON debug: python_export: implementation: python3.3 debug: python_export: EPYTHON = python3.3 debug: python_export: PYTHON = /usr/bin/python3.3 debug: python_wrapper_setup: entering function, parameters: debug: distutils-r1_run_phase: entering function, parameters: python_test ==================================================================== test session starts ===================================================================== platform linux -- Python 3.3.3 -- pytest-2.4.2 -- /usr/bin/python3.3 collecting ... collected 12 items test/test_data_table.py:24: test_len PASSED test/test_data_table.py:28: test_iter PASSED test/test_data_table.py:38: test_insert_and_get PASSED test/test_data_table.py:43: test_filtered PASSED test/test_data_table.py:48: test_sort FAILED test/test_data_table.py:53: test_aggregate FAILED test/test_data_table.py:63: test_aggregate_2 FAILED test/test_data_table.py:70: test_join FAILED test/test_math_stuff.py:6: test_variance PASSED test/test_pytools.py:7: test_memoize_method_nested PASSED test/test_pytools.py:29: test_memoize_method_clear PASSED test/test_pytools.py:50: test_p_convergence_verifier PASSED ========================================================================== FAILURES ========================================================================== _________________________________________________________________________ test_sort __________________________________________________________________________ def test_sort(): et = get_employee_table() > et.sort(["lastname"]) test/test_data_table.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pytools.datatable.DataTable object at 0x2b62cd4e1910>, columns = ['lastname'], reverse = False def sort(self, columns, reverse=False): col_indices = [self.column_indices[col] for col in columns] def mycmp(row_a, row_b): for col_index in col_indices: this_result = cmp(row_a[col_index], row_b[col_index]) if this_result: return this_result return 0 > self.data.sort(mycmp, reverse=reverse) E TypeError: must use keyword argument for key function ../pytools-2013.5.6-python3_3/lib/pytools/datatable.py:133: TypeError _______________________________________________________________________ test_aggregate _______________________________________________________________________ def test_aggregate(): et = get_employee_table() > et.sort(["dept"]) test/test_data_table.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pytools.datatable.DataTable object at 0x2b62cd4b9710>, columns = ['dept'], reverse = False def sort(self, columns, reverse=False): col_indices = [self.column_indices[col] for col in columns] def mycmp(row_a, row_b): for col_index in col_indices: this_result = cmp(row_a[col_index], row_b[col_index]) if this_result: return this_result return 0 > self.data.sort(mycmp, reverse=reverse) E TypeError: must use keyword argument for key function ../pytools-2013.5.6-python3_3/lib/pytools/datatable.py:133: TypeError ______________________________________________________________________ test_aggregate_2 ______________________________________________________________________ def test_aggregate_2(): from pytools.datatable import DataTable tbl = DataTable(["step", "value"], zip(range(20), range(20))) agg = tbl.aggregated(["step"], "value", max) > assert agg.column_data("step") == range(20) E assert [0, 1, 2, 3, 4, 5, ...] == range(0, 20) E + where [0, 1, 2, 3, 4, 5, ...] = <bound method DataTable.column_data of <pytools.datatable.DataTable object at 0x2b62cd4efd10>>('step') E + where <bound method DataTable.column_data of <pytools.datatable.DataTable object at 0x2b62cd4efd10>> = <pytools.datatable.DataTable object at 0x2b62cd4efd10>.column_data E + and range(0, 20) = range(20) test/test_data_table.py:67: AssertionError _________________________________________________________________________ test_join __________________________________________________________________________ def test_join(): et = get_employee_table() dt = get_dept_table() > et.sort(["dept"]) test/test_data_table.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pytools.datatable.DataTable object at 0x2b62cd4e4410>, columns = ['dept'], reverse = False def sort(self, columns, reverse=False): col_indices = [self.column_indices[col] for col in columns] def mycmp(row_a, row_b): for col_index in col_indices: this_result = cmp(row_a[col_index], row_b[col_index]) if this_result: return this_result return 0 > self.data.sort(mycmp, reverse=reverse) E TypeError: must use keyword argument for key function ../pytools-2013.5.6-python3_3/lib/pytools/datatable.py:133: TypeError ============================================================= 4 failed, 8 passed in 0.25 seconds ============================================================= [31;01m*[0m ERROR: dev-python/pytools-2013.5.6::gentoo failed (test phase): [31;01m*[0m Tests fail with python3.3 [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 93: Called src_test [31;01m*[0m environment, line 3922: Called distutils-r1_src_test [31;01m*[0m environment, line 1378: Called _distutils-r1_run_foreach_impl 'python_test' [31;01m*[0m environment, line 447: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' [31;01m*[0m environment, line 3596: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' [31;01m*[0m environment, line 2928: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' [31;01m*[0m environment, line 2926: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' [31;01m*[0m environment, line 857: Called distutils-r1_run_phase 'python_test' [31;01m*[0m environment, line 1314: Called python_test [31;01m*[0m environment, line 3814: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m py.test -v || die "Tests fail with ${EPYTHON}" [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=dev-python/pytools-2013.5.6::gentoo'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/pytools-2013.5.6::gentoo'`. [31;01m*[0m The complete build log is located at '/var/log/portage/build/dev-python/pytools-2013.5.6:20131122-142116.log'. [31;01m*[0m For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pytools-2013.5.6/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/pytools-2013.5.6/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6' [31;01m*[0m S: '/var/tmp/portage/dev-python/pytools-2013.5.6/work/pytools-2013.5.6'
signature.asc
Description: OpenPGP digital signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
