Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiling stl/_speedups.pyx because it changed.
- [1/1] Cythonizing stl/_speedups.pyx
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-cpython-310
- creating build/lib.linux-x86_64-cpython-310/stl
- copying stl/__init__.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/main.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/stl.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/__about__.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/base.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/utils.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/mesh.py -> build/lib.linux-x86_64-cpython-310/stl
- copying stl/py.typed -> build/lib.linux-x86_64-cpython-310/stl
- running build_ext
- building 'stl._speedups' extension
- creating build/temp.linux-x86_64-cpython-310
- creating build/temp.linux-x86_64-cpython-310/stl
- gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -I/usr/lib/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -c stl/_speedups.c -o build/temp.linux-x86_64-cpython-310/stl/_speedups.o
- In file included from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
- from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
- from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
- from stl/_speedups.c:770:
- /usr/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
- 17 | #warning "Using deprecated NumPy API, disable it with " \
- | ^~~~~~~
- stl/_speedups.c: In function ‘__pyx_pf_3stl_9_speedups_ascii_read’:
- stl/_speedups.c:3293:50: warning: comparison of integer expressions of different signedness: ‘npy_intp’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
- 3293 | __pyx_t_9 = (((__pyx_v_arr->dimensions[0]) == __pyx_v_offset) != 0);
- | ^~
- In function ‘__pyx_pf_3stl_9_speedups_2ascii_write’,
- inlined from ‘__pyx_pw_3stl_9_speedups_3ascii_write’ at stl/_speedups.c:3873:13:
- stl/_speedups.c:4179:23: warning: ‘__pyx_v_fp’ may be used uninitialized [-Wmaybe-uninitialized]
- 4179 | __pyx_v_pos = ftell(__pyx_v_fp);
- | ^~~~~~~~~~~~~~~~~
- stl/_speedups.c: In function ‘__pyx_pw_3stl_9_speedups_3ascii_write’:
- stl/_speedups.c:3885:9: note: ‘__pyx_v_fp’ was declared here
- 3885 | FILE *__pyx_v_fp;
- | ^~~~~~~~~~
- gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection build/temp.linux-x86_64-cpython-310/stl/_speedups.o -L/usr/lib -o build/lib.linux-x86_64-cpython-310/stl/_speedups.cpython-310-x86_64-linux-gnu.so
- ==> Starting check()...
- ============================= test session starts ==============================
- platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python
- cachedir: .pytest_cache
- rootdir: /home/gpereira/.cache/yay/python-numpy-stl/src/numpy-stl-2.17.1, configfile: pytest.ini
- plugins: anyio-3.6.1, cov-2.12.1, flake8-1.1.1
- collected 131 items
- tests/__init__.py::flake-8::FLAKE8 PASSED [ 0%]
- tests/conftest.py::flake-8::FLAKE8 PASSED [ 1%]
- tests/stl_corruption.py::flake-8::FLAKE8 PASSED [ 2%]
- tests/stl_corruption.py::test_valid_ascii[False] PASSED [ 3%]
- tests/stl_corruption.py::test_valid_ascii[True] PASSED [ 3%]
- tests/stl_corruption.py::test_ascii_with_missing_name[False] PASSED [ 4%]
- tests/stl_corruption.py::test_ascii_with_missing_name[True] PASSED [ 5%]
- tests/stl_corruption.py::test_ascii_with_blank_lines[False] PASSED [ 6%]
- tests/stl_corruption.py::test_ascii_with_blank_lines[True] PASSED [ 6%]
- tests/stl_corruption.py::test_incomplete_ascii_file[False] PASSED [ 7%]
- tests/stl_corruption.py::test_incomplete_ascii_file[True] PASSED [ 8%]
- tests/stl_corruption.py::test_corrupt_ascii_file[False] PASSED [ 9%]
- tests/stl_corruption.py::test_corrupt_ascii_file[True] PASSED [ 9%]
- tests/stl_corruption.py::test_corrupt_binary_file[False] PASSED [ 10%]
- tests/stl_corruption.py::test_corrupt_binary_file[True] PASSED [ 11%]
- tests/stl_corruption.py::test_duplicate_polygons[False] PASSED [ 12%]
- tests/stl_corruption.py::test_duplicate_polygons[True] PASSED [ 12%]
- tests/test_ascii.py::flake-8::FLAKE8 PASSED [ 13%]
- tests/test_ascii.py::test_ascii_file[False] PASSED [ 14%]
- tests/test_ascii.py::test_ascii_file[True] PASSED [ 15%]
- tests/test_ascii.py::test_chinese_name[False] PASSED [ 16%]
- tests/test_ascii.py::test_chinese_name[True] PASSED [ 16%]
- tests/test_ascii.py::test_long_name[False] PASSED [ 17%]
- tests/test_ascii.py::test_long_name[True] PASSED [ 18%]
- tests/test_ascii.py::test_scientific_notation[False] PASSED [ 19%]
- tests/test_ascii.py::test_scientific_notation[True] PASSED [ 19%]
- tests/test_ascii.py::test_locale_restore[False] SKIPPED (Only makes sense with speedups) [ 20%]
- tests/test_ascii.py::test_locale_restore[True] PASSED [ 21%]
- tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[False] SKIPPED (Only makes sense with speedups) [ 22%]
- tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[True] FAILED [ 22%]
- tests/test_ascii.py::test_ascii_io[False] PASSED [ 23%]
- tests/test_ascii.py::test_ascii_io[True] PASSED [ 24%]
- tests/test_binary.py::flake-8::FLAKE8 PASSED [ 25%]
- tests/test_binary.py::test_ascii_like_binary[False-Mode.BINARY] PASSED [ 25%]
- tests/test_binary.py::test_ascii_like_binary[False-Mode.AUTOMATIC] PASSED [ 26%]
- tests/test_binary.py::test_ascii_like_binary[True-Mode.BINARY] PASSED [ 27%]
- tests/test_binary.py::test_ascii_like_binary[True-Mode.AUTOMATIC] PASSED [ 28%]
- tests/test_binary.py::test_binary_in_ascii_mode[False] PASSED [ 29%]
- tests/test_binary.py::test_binary_in_ascii_mode[True] PASSED [ 29%]
- tests/test_binary.py::test_write_bytes_io[False-Mode.BINARY] PASSED [ 30%]
- tests/test_binary.py::test_write_bytes_io[False-Mode.AUTOMATIC] PASSED [ 31%]
- tests/test_binary.py::test_write_bytes_io[True-Mode.BINARY] PASSED [ 32%]
- tests/test_binary.py::test_write_bytes_io[True-Mode.AUTOMATIC] PASSED [ 32%]
- tests/test_binary.py::test_binary_file[False] PASSED [ 33%]
- tests/test_binary.py::test_binary_file[True] PASSED [ 34%]
- tests/test_commandline.py::flake-8::FLAKE8 PASSED [ 35%]
- tests/test_commandline.py::test_main[False] PASSED [ 35%]
- tests/test_commandline.py::test_main[True] PASSED [ 36%]
- tests/test_commandline.py::test_args[False] PASSED [ 37%]
- tests/test_commandline.py::test_args[True] PASSED [ 38%]
- tests/test_commandline.py::test_ascii[False] PASSED [ 38%]
- tests/test_commandline.py::test_ascii[True] PASSED [ 39%]
- tests/test_commandline.py::test_binary[False] PASSED [ 40%]
- tests/test_commandline.py::test_binary[True] PASSED [ 41%]
- tests/test_convert.py::flake-8::FLAKE8 PASSED [ 41%]
- tests/test_convert.py::test_ascii_to_binary[False] PASSED [ 42%]
- tests/test_convert.py::test_ascii_to_binary[True] PASSED [ 43%]
- tests/test_convert.py::test_binary_to_ascii[False] PASSED [ 44%]
- tests/test_convert.py::test_binary_to_ascii[True] PASSED [ 45%]
- tests/test_convert.py::test_stl_mesh[False] PASSED [ 45%]
- tests/test_convert.py::test_stl_mesh[True] PASSED [ 46%]
- tests/test_line_endings.py::flake-8::FLAKE8 PASSED [ 47%]
- tests/test_line_endings.py::test_line_endings[False-dos] PASSED [ 48%]
- tests/test_line_endings.py::test_line_endings[False-unix] PASSED [ 48%]
- tests/test_line_endings.py::test_line_endings[True-dos] PASSED [ 49%]
- tests/test_line_endings.py::test_line_endings[True-unix] PASSED [ 50%]
- tests/test_mesh.py::flake-8::FLAKE8 PASSED [ 51%]
- tests/test_mesh.py::test_units_1d[False] PASSED [ 51%]
- tests/test_mesh.py::test_units_1d[True] PASSED [ 52%]
- tests/test_mesh.py::test_units_2d[False] PASSED [ 53%]
- tests/test_mesh.py::test_units_2d[True] PASSED [ 54%]
- tests/test_mesh.py::test_units_3d[False] PASSED [ 54%]
- tests/test_mesh.py::test_units_3d[True] PASSED [ 55%]
- tests/test_mesh.py::test_duplicate_polygons[False] PASSED [ 56%]
- tests/test_mesh.py::test_duplicate_polygons[True] PASSED [ 57%]
- tests/test_mesh.py::test_remove_all_duplicate_polygons[False] PASSED [ 58%]
- tests/test_mesh.py::test_remove_all_duplicate_polygons[True] PASSED [ 58%]
- tests/test_mesh.py::test_empty_areas[False] PASSED [ 59%]
- tests/test_mesh.py::test_empty_areas[True] PASSED [ 60%]
- tests/test_mesh.py::test_base_mesh[False] PASSED [ 61%]
- tests/test_mesh.py::test_base_mesh[True] PASSED [ 61%]
- tests/test_meshProperties.py::flake-8::FLAKE8 PASSED [ 62%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut[ascii-False] PASSED [ 63%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut[ascii-True] PASSED [ 64%]
- tests/test_meshProperties.py::test_mass_properties_for_moon[ascii-False] PASSED [ 64%]
- tests/test_meshProperties.py::test_mass_properties_for_moon[ascii-True] PASSED [ 65%]
- tests/test_meshProperties.py::test_mass_properties_for_star[ascii-False-Star.stl] PASSED [ 66%]
- tests/test_meshProperties.py::test_mass_properties_for_star[ascii-False-StarWithEmptyHeader.stl] SKIPPED (STL file does not exist) [ 67%]
- tests/test_meshProperties.py::test_mass_properties_for_star[ascii-True-Star.stl] PASSED [ 67%]
- tests/test_meshProperties.py::test_mass_properties_for_star[ascii-True-StarWithEmptyHeader.stl] SKIPPED (STL file does not exist) [ 68%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[ascii-False] PASSED [ 69%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[ascii-True] PASSED [ 70%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut[binary-False] PASSED [ 70%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut[binary-True] PASSED [ 71%]
- tests/test_meshProperties.py::test_mass_properties_for_moon[binary-False] PASSED [ 72%]
- tests/test_meshProperties.py::test_mass_properties_for_moon[binary-True] PASSED [ 73%]
- tests/test_meshProperties.py::test_mass_properties_for_star[binary-False-Star.stl] PASSED [ 74%]
- tests/test_meshProperties.py::test_mass_properties_for_star[binary-False-StarWithEmptyHeader.stl] PASSED [ 74%]
- tests/test_meshProperties.py::test_mass_properties_for_star[binary-True-Star.stl] PASSED [ 75%]
- tests/test_meshProperties.py::test_mass_properties_for_star[binary-True-StarWithEmptyHeader.stl] PASSED [ 76%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[binary-False] PASSED [ 77%]
- tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[binary-True] PASSED [ 77%]
- tests/test_multiple.py::flake-8::FLAKE8 PASSED [ 78%]
- tests/test_multiple.py::test_single_stl[False] PASSED [ 79%]
- tests/test_multiple.py::test_single_stl[True] PASSED [ 80%]
- tests/test_multiple.py::test_multiple_stl[False] PASSED [ 80%]
- tests/test_multiple.py::test_multiple_stl[True] PASSED [ 81%]
- tests/test_multiple.py::test_single_stl_file[False] PASSED [ 82%]
- tests/test_multiple.py::test_single_stl_file[True] PASSED [ 83%]
- tests/test_multiple.py::test_multiple_stl_file[False] PASSED [ 83%]
- tests/test_multiple.py::test_multiple_stl_file[True] PASSED [ 84%]
- tests/test_multiple.py::test_multiple_stl_files[False] PASSED [ 85%]
- tests/test_multiple.py::test_multiple_stl_files[True] PASSED [ 86%]
- tests/test_rotate.py::flake-8::FLAKE8 PASSED [ 87%]
- tests/test_rotate.py::test_rotation[False] PASSED [ 87%]
- tests/test_rotate.py::test_rotation[True] PASSED [ 88%]
- tests/test_rotate.py::test_rotation_over_point[False] PASSED [ 89%]
- tests/test_rotate.py::test_rotation_over_point[True] PASSED [ 90%]
- tests/test_rotate.py::test_double_rotation[False] PASSED [ 90%]
- tests/test_rotate.py::test_double_rotation[True] PASSED [ 91%]
- tests/test_rotate.py::test_no_rotation[False] PASSED [ 92%]
- tests/test_rotate.py::test_no_rotation[True] PASSED [ 93%]
- tests/test_rotate.py::test_no_translation[False] PASSED [ 93%]
- tests/test_rotate.py::test_no_translation[True] PASSED [ 94%]
- tests/test_rotate.py::test_translation[False] PASSED [ 95%]
- tests/test_rotate.py::test_translation[True] PASSED [ 96%]
- tests/test_rotate.py::test_no_transformation[False] PASSED [ 96%]
- tests/test_rotate.py::test_no_transformation[True] PASSED [ 97%]
- tests/test_rotate.py::test_transformation[False] PASSED [ 98%]
- tests/test_rotate.py::test_transformation[True] PASSED [ 99%]
- tests/utils.py::flake-8::FLAKE8 PASSED [100%]
- =================================== FAILURES ===================================
- _________ test_use_with_qt_with_custom_locale_decimal_delimeter[True] __________
- speedups = True
- @pytest.mark.skipif(sys.platform.startswith('win'),
- reason='Only makes sense on Unix')
- def test_use_with_qt_with_custom_locale_decimal_delimeter(speedups):
- if not speedups:
- pytest.skip('Only makes sense with speedups')
- venv = os.environ.get('VIRTUAL_ENV', '')
- if (3, 6) == sys.version_info[:2] and venv.startswith('/home/travis/'):
- pytest.skip('PySide2/PyQt5 tests are broken on Travis Python 3.6')
- try:
- from PySide2 import QtWidgets
- except ImportError:
- try:
- from PyQt5 import QtWidgets
- except ImportError:
- warnings.warn(
- 'Unable to import PySide2/PyQt5, skipping locale tests',
- ImportWarning,
- )
- pytest.skip('PySide2/PyQt5 missing')
- assert QtWidgets
- dir_path = os.path.dirname(os.path.realpath(__file__))
- script_path = os.path.join(dir_path, 'qt-lc_numeric-reproducer')
- env = os.environ.copy()
- env['LC_NUMERIC'] = 'cs_CZ.utf-8'
- prefix = tuple()
- if sys.platform.startswith('linux'):
- prefix = ('xvfb-run', '-a')
- p = subprocess.Popen(prefix + (sys.executable, script_path),
- env=env,
- universal_newlines=True,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- out, err = p.communicate()
- # Unable to read the file with speedups, retrying
- # https://github.com/WoLpH/numpy-stl/issues/52
- sys.stdout.write(out)
- sys.stderr.write(err)
- assert 'File too large' not in out
- assert 'File too large' not in err
- > assert p.returncode == 0
- E AssertionError: assert 1 == 0
- E + where 1 = <Popen: returncode: 1 args: ('xvfb-run', '-a', '/usr/bin/python', '/home/gpe...>.returncode
- tests/test_ascii.py:163: AssertionError
- ----------------------------- Captured stderr call -----------------------------
- Traceback (most recent call last):
- File "/home/gpereira/.cache/yay/python-numpy-stl/src/numpy-stl-2.17.1/tests/qt-lc_numeric-reproducer", line 6, in <module>
- from stl import mesh
- ModuleNotFoundError: No module named 'stl'
- =============================== warnings summary ===============================
- ../../../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252
- /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: basetemp
- self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
- ../../../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252
- /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: looponfailroots
- self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
- tests/__init__.py: 2 warnings
- tests/conftest.py: 2 warnings
- tests/stl_corruption.py: 2 warnings
- tests/test_ascii.py: 2 warnings
- tests/test_binary.py: 2 warnings
- tests/test_commandline.py: 2 warnings
- tests/test_convert.py: 2 warnings
- tests/test_line_endings.py: 2 warnings
- tests/test_mesh.py: 2 warnings
- tests/test_meshProperties.py: 2 warnings
- tests/test_multiple.py: 2 warnings
- tests/test_rotate.py: 2 warnings
- tests/utils.py: 2 warnings
- /usr/lib/python3.10/site-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
- eps = importlib_metadata.entry_points().get(self.namespace, ())
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- =========================== short test summary info ============================
- FAILED tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[True]
- ============ 1 failed, 126 passed, 4 skipped, 28 warnings in 4.56s =============
- ==> ERROR: A failure occurred in check().
- Aborting...
- -> error making: python-numpy-stl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement