Advertisement
Guest User

Untitled

a guest
Aug 18th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.51 KB | None | 0 0
  1. Compiling stl/_speedups.pyx because it changed.
  2. [1/1] Cythonizing stl/_speedups.pyx
  3. running build
  4. running build_py
  5. creating build
  6. creating build/lib.linux-x86_64-cpython-310
  7. creating build/lib.linux-x86_64-cpython-310/stl
  8. copying stl/__init__.py -> build/lib.linux-x86_64-cpython-310/stl
  9. copying stl/main.py -> build/lib.linux-x86_64-cpython-310/stl
  10. copying stl/stl.py -> build/lib.linux-x86_64-cpython-310/stl
  11. copying stl/__about__.py -> build/lib.linux-x86_64-cpython-310/stl
  12. copying stl/base.py -> build/lib.linux-x86_64-cpython-310/stl
  13. copying stl/utils.py -> build/lib.linux-x86_64-cpython-310/stl
  14. copying stl/mesh.py -> build/lib.linux-x86_64-cpython-310/stl
  15. copying stl/py.typed -> build/lib.linux-x86_64-cpython-310/stl
  16. running build_ext
  17. building 'stl._speedups' extension
  18. creating build/temp.linux-x86_64-cpython-310
  19. creating build/temp.linux-x86_64-cpython-310/stl
  20. 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
  21. In file included from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
  22. from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
  23. from /usr/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
  24. from stl/_speedups.c:770:
  25. /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]
  26. 17 | #warning "Using deprecated NumPy API, disable it with " \
  27. | ^~~~~~~
  28. stl/_speedups.c: In function ‘__pyx_pf_3stl_9_speedups_ascii_read’:
  29. 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]
  30. 3293 | __pyx_t_9 = (((__pyx_v_arr->dimensions[0]) == __pyx_v_offset) != 0);
  31. | ^~
  32. In function ‘__pyx_pf_3stl_9_speedups_2ascii_write’,
  33. inlined from ‘__pyx_pw_3stl_9_speedups_3ascii_write’ at stl/_speedups.c:3873:13:
  34. stl/_speedups.c:4179:23: warning: ‘__pyx_v_fp’ may be used uninitialized [-Wmaybe-uninitialized]
  35. 4179 | __pyx_v_pos = ftell(__pyx_v_fp);
  36. | ^~~~~~~~~~~~~~~~~
  37. stl/_speedups.c: In function ‘__pyx_pw_3stl_9_speedups_3ascii_write’:
  38. stl/_speedups.c:3885:9: note: ‘__pyx_v_fp’ was declared here
  39. 3885 | FILE *__pyx_v_fp;
  40. | ^~~~~~~~~~
  41. 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
  42. ==> Starting check()...
  43. ============================= test session starts ==============================
  44. platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python
  45. cachedir: .pytest_cache
  46. rootdir: /home/gpereira/.cache/yay/python-numpy-stl/src/numpy-stl-2.17.1, configfile: pytest.ini
  47. plugins: anyio-3.6.1, cov-2.12.1, flake8-1.1.1
  48. collected 131 items
  49.  
  50. tests/__init__.py::flake-8::FLAKE8 PASSED [ 0%]
  51. tests/conftest.py::flake-8::FLAKE8 PASSED [ 1%]
  52. tests/stl_corruption.py::flake-8::FLAKE8 PASSED [ 2%]
  53. tests/stl_corruption.py::test_valid_ascii[False] PASSED [ 3%]
  54. tests/stl_corruption.py::test_valid_ascii[True] PASSED [ 3%]
  55. tests/stl_corruption.py::test_ascii_with_missing_name[False] PASSED [ 4%]
  56. tests/stl_corruption.py::test_ascii_with_missing_name[True] PASSED [ 5%]
  57. tests/stl_corruption.py::test_ascii_with_blank_lines[False] PASSED [ 6%]
  58. tests/stl_corruption.py::test_ascii_with_blank_lines[True] PASSED [ 6%]
  59. tests/stl_corruption.py::test_incomplete_ascii_file[False] PASSED [ 7%]
  60. tests/stl_corruption.py::test_incomplete_ascii_file[True] PASSED [ 8%]
  61. tests/stl_corruption.py::test_corrupt_ascii_file[False] PASSED [ 9%]
  62. tests/stl_corruption.py::test_corrupt_ascii_file[True] PASSED [ 9%]
  63. tests/stl_corruption.py::test_corrupt_binary_file[False] PASSED [ 10%]
  64. tests/stl_corruption.py::test_corrupt_binary_file[True] PASSED [ 11%]
  65. tests/stl_corruption.py::test_duplicate_polygons[False] PASSED [ 12%]
  66. tests/stl_corruption.py::test_duplicate_polygons[True] PASSED [ 12%]
  67. tests/test_ascii.py::flake-8::FLAKE8 PASSED [ 13%]
  68. tests/test_ascii.py::test_ascii_file[False] PASSED [ 14%]
  69. tests/test_ascii.py::test_ascii_file[True] PASSED [ 15%]
  70. tests/test_ascii.py::test_chinese_name[False] PASSED [ 16%]
  71. tests/test_ascii.py::test_chinese_name[True] PASSED [ 16%]
  72. tests/test_ascii.py::test_long_name[False] PASSED [ 17%]
  73. tests/test_ascii.py::test_long_name[True] PASSED [ 18%]
  74. tests/test_ascii.py::test_scientific_notation[False] PASSED [ 19%]
  75. tests/test_ascii.py::test_scientific_notation[True] PASSED [ 19%]
  76. tests/test_ascii.py::test_locale_restore[False] SKIPPED (Only makes sense with speedups) [ 20%]
  77. tests/test_ascii.py::test_locale_restore[True] PASSED [ 21%]
  78. tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[False] SKIPPED (Only makes sense with speedups) [ 22%]
  79. tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[True] FAILED [ 22%]
  80. tests/test_ascii.py::test_ascii_io[False] PASSED [ 23%]
  81. tests/test_ascii.py::test_ascii_io[True] PASSED [ 24%]
  82. tests/test_binary.py::flake-8::FLAKE8 PASSED [ 25%]
  83. tests/test_binary.py::test_ascii_like_binary[False-Mode.BINARY] PASSED [ 25%]
  84. tests/test_binary.py::test_ascii_like_binary[False-Mode.AUTOMATIC] PASSED [ 26%]
  85. tests/test_binary.py::test_ascii_like_binary[True-Mode.BINARY] PASSED [ 27%]
  86. tests/test_binary.py::test_ascii_like_binary[True-Mode.AUTOMATIC] PASSED [ 28%]
  87. tests/test_binary.py::test_binary_in_ascii_mode[False] PASSED [ 29%]
  88. tests/test_binary.py::test_binary_in_ascii_mode[True] PASSED [ 29%]
  89. tests/test_binary.py::test_write_bytes_io[False-Mode.BINARY] PASSED [ 30%]
  90. tests/test_binary.py::test_write_bytes_io[False-Mode.AUTOMATIC] PASSED [ 31%]
  91. tests/test_binary.py::test_write_bytes_io[True-Mode.BINARY] PASSED [ 32%]
  92. tests/test_binary.py::test_write_bytes_io[True-Mode.AUTOMATIC] PASSED [ 32%]
  93. tests/test_binary.py::test_binary_file[False] PASSED [ 33%]
  94. tests/test_binary.py::test_binary_file[True] PASSED [ 34%]
  95. tests/test_commandline.py::flake-8::FLAKE8 PASSED [ 35%]
  96. tests/test_commandline.py::test_main[False] PASSED [ 35%]
  97. tests/test_commandline.py::test_main[True] PASSED [ 36%]
  98. tests/test_commandline.py::test_args[False] PASSED [ 37%]
  99. tests/test_commandline.py::test_args[True] PASSED [ 38%]
  100. tests/test_commandline.py::test_ascii[False] PASSED [ 38%]
  101. tests/test_commandline.py::test_ascii[True] PASSED [ 39%]
  102. tests/test_commandline.py::test_binary[False] PASSED [ 40%]
  103. tests/test_commandline.py::test_binary[True] PASSED [ 41%]
  104. tests/test_convert.py::flake-8::FLAKE8 PASSED [ 41%]
  105. tests/test_convert.py::test_ascii_to_binary[False] PASSED [ 42%]
  106. tests/test_convert.py::test_ascii_to_binary[True] PASSED [ 43%]
  107. tests/test_convert.py::test_binary_to_ascii[False] PASSED [ 44%]
  108. tests/test_convert.py::test_binary_to_ascii[True] PASSED [ 45%]
  109. tests/test_convert.py::test_stl_mesh[False] PASSED [ 45%]
  110. tests/test_convert.py::test_stl_mesh[True] PASSED [ 46%]
  111. tests/test_line_endings.py::flake-8::FLAKE8 PASSED [ 47%]
  112. tests/test_line_endings.py::test_line_endings[False-dos] PASSED [ 48%]
  113. tests/test_line_endings.py::test_line_endings[False-unix] PASSED [ 48%]
  114. tests/test_line_endings.py::test_line_endings[True-dos] PASSED [ 49%]
  115. tests/test_line_endings.py::test_line_endings[True-unix] PASSED [ 50%]
  116. tests/test_mesh.py::flake-8::FLAKE8 PASSED [ 51%]
  117. tests/test_mesh.py::test_units_1d[False] PASSED [ 51%]
  118. tests/test_mesh.py::test_units_1d[True] PASSED [ 52%]
  119. tests/test_mesh.py::test_units_2d[False] PASSED [ 53%]
  120. tests/test_mesh.py::test_units_2d[True] PASSED [ 54%]
  121. tests/test_mesh.py::test_units_3d[False] PASSED [ 54%]
  122. tests/test_mesh.py::test_units_3d[True] PASSED [ 55%]
  123. tests/test_mesh.py::test_duplicate_polygons[False] PASSED [ 56%]
  124. tests/test_mesh.py::test_duplicate_polygons[True] PASSED [ 57%]
  125. tests/test_mesh.py::test_remove_all_duplicate_polygons[False] PASSED [ 58%]
  126. tests/test_mesh.py::test_remove_all_duplicate_polygons[True] PASSED [ 58%]
  127. tests/test_mesh.py::test_empty_areas[False] PASSED [ 59%]
  128. tests/test_mesh.py::test_empty_areas[True] PASSED [ 60%]
  129. tests/test_mesh.py::test_base_mesh[False] PASSED [ 61%]
  130. tests/test_mesh.py::test_base_mesh[True] PASSED [ 61%]
  131. tests/test_meshProperties.py::flake-8::FLAKE8 PASSED [ 62%]
  132. tests/test_meshProperties.py::test_mass_properties_for_half_donut[ascii-False] PASSED [ 63%]
  133. tests/test_meshProperties.py::test_mass_properties_for_half_donut[ascii-True] PASSED [ 64%]
  134. tests/test_meshProperties.py::test_mass_properties_for_moon[ascii-False] PASSED [ 64%]
  135. tests/test_meshProperties.py::test_mass_properties_for_moon[ascii-True] PASSED [ 65%]
  136. tests/test_meshProperties.py::test_mass_properties_for_star[ascii-False-Star.stl] PASSED [ 66%]
  137. tests/test_meshProperties.py::test_mass_properties_for_star[ascii-False-StarWithEmptyHeader.stl] SKIPPED (STL file does not exist) [ 67%]
  138. tests/test_meshProperties.py::test_mass_properties_for_star[ascii-True-Star.stl] PASSED [ 67%]
  139. tests/test_meshProperties.py::test_mass_properties_for_star[ascii-True-StarWithEmptyHeader.stl] SKIPPED (STL file does not exist) [ 68%]
  140. tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[ascii-False] PASSED [ 69%]
  141. tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[ascii-True] PASSED [ 70%]
  142. tests/test_meshProperties.py::test_mass_properties_for_half_donut[binary-False] PASSED [ 70%]
  143. tests/test_meshProperties.py::test_mass_properties_for_half_donut[binary-True] PASSED [ 71%]
  144. tests/test_meshProperties.py::test_mass_properties_for_moon[binary-False] PASSED [ 72%]
  145. tests/test_meshProperties.py::test_mass_properties_for_moon[binary-True] PASSED [ 73%]
  146. tests/test_meshProperties.py::test_mass_properties_for_star[binary-False-Star.stl] PASSED [ 74%]
  147. tests/test_meshProperties.py::test_mass_properties_for_star[binary-False-StarWithEmptyHeader.stl] PASSED [ 74%]
  148. tests/test_meshProperties.py::test_mass_properties_for_star[binary-True-Star.stl] PASSED [ 75%]
  149. tests/test_meshProperties.py::test_mass_properties_for_star[binary-True-StarWithEmptyHeader.stl] PASSED [ 76%]
  150. tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[binary-False] PASSED [ 77%]
  151. tests/test_meshProperties.py::test_mass_properties_for_half_donut_with_density[binary-True] PASSED [ 77%]
  152. tests/test_multiple.py::flake-8::FLAKE8 PASSED [ 78%]
  153. tests/test_multiple.py::test_single_stl[False] PASSED [ 79%]
  154. tests/test_multiple.py::test_single_stl[True] PASSED [ 80%]
  155. tests/test_multiple.py::test_multiple_stl[False] PASSED [ 80%]
  156. tests/test_multiple.py::test_multiple_stl[True] PASSED [ 81%]
  157. tests/test_multiple.py::test_single_stl_file[False] PASSED [ 82%]
  158. tests/test_multiple.py::test_single_stl_file[True] PASSED [ 83%]
  159. tests/test_multiple.py::test_multiple_stl_file[False] PASSED [ 83%]
  160. tests/test_multiple.py::test_multiple_stl_file[True] PASSED [ 84%]
  161. tests/test_multiple.py::test_multiple_stl_files[False] PASSED [ 85%]
  162. tests/test_multiple.py::test_multiple_stl_files[True] PASSED [ 86%]
  163. tests/test_rotate.py::flake-8::FLAKE8 PASSED [ 87%]
  164. tests/test_rotate.py::test_rotation[False] PASSED [ 87%]
  165. tests/test_rotate.py::test_rotation[True] PASSED [ 88%]
  166. tests/test_rotate.py::test_rotation_over_point[False] PASSED [ 89%]
  167. tests/test_rotate.py::test_rotation_over_point[True] PASSED [ 90%]
  168. tests/test_rotate.py::test_double_rotation[False] PASSED [ 90%]
  169. tests/test_rotate.py::test_double_rotation[True] PASSED [ 91%]
  170. tests/test_rotate.py::test_no_rotation[False] PASSED [ 92%]
  171. tests/test_rotate.py::test_no_rotation[True] PASSED [ 93%]
  172. tests/test_rotate.py::test_no_translation[False] PASSED [ 93%]
  173. tests/test_rotate.py::test_no_translation[True] PASSED [ 94%]
  174. tests/test_rotate.py::test_translation[False] PASSED [ 95%]
  175. tests/test_rotate.py::test_translation[True] PASSED [ 96%]
  176. tests/test_rotate.py::test_no_transformation[False] PASSED [ 96%]
  177. tests/test_rotate.py::test_no_transformation[True] PASSED [ 97%]
  178. tests/test_rotate.py::test_transformation[False] PASSED [ 98%]
  179. tests/test_rotate.py::test_transformation[True] PASSED [ 99%]
  180. tests/utils.py::flake-8::FLAKE8 PASSED [100%]
  181.  
  182. =================================== FAILURES ===================================
  183. _________ test_use_with_qt_with_custom_locale_decimal_delimeter[True] __________
  184.  
  185. speedups = True
  186.  
  187. @pytest.mark.skipif(sys.platform.startswith('win'),
  188. reason='Only makes sense on Unix')
  189. def test_use_with_qt_with_custom_locale_decimal_delimeter(speedups):
  190. if not speedups:
  191. pytest.skip('Only makes sense with speedups')
  192.  
  193. venv = os.environ.get('VIRTUAL_ENV', '')
  194. if (3, 6) == sys.version_info[:2] and venv.startswith('/home/travis/'):
  195. pytest.skip('PySide2/PyQt5 tests are broken on Travis Python 3.6')
  196.  
  197. try:
  198. from PySide2 import QtWidgets
  199. except ImportError:
  200. try:
  201. from PyQt5 import QtWidgets
  202. except ImportError:
  203. warnings.warn(
  204. 'Unable to import PySide2/PyQt5, skipping locale tests',
  205. ImportWarning,
  206. )
  207. pytest.skip('PySide2/PyQt5 missing')
  208. assert QtWidgets
  209.  
  210. dir_path = os.path.dirname(os.path.realpath(__file__))
  211. script_path = os.path.join(dir_path, 'qt-lc_numeric-reproducer')
  212.  
  213. env = os.environ.copy()
  214. env['LC_NUMERIC'] = 'cs_CZ.utf-8'
  215.  
  216. prefix = tuple()
  217. if sys.platform.startswith('linux'):
  218. prefix = ('xvfb-run', '-a')
  219.  
  220. p = subprocess.Popen(prefix + (sys.executable, script_path),
  221. env=env,
  222. universal_newlines=True,
  223. stdout=subprocess.PIPE,
  224. stderr=subprocess.PIPE)
  225. out, err = p.communicate()
  226.  
  227. # Unable to read the file with speedups, retrying
  228. # https://github.com/WoLpH/numpy-stl/issues/52
  229. sys.stdout.write(out)
  230. sys.stderr.write(err)
  231.  
  232. assert 'File too large' not in out
  233. assert 'File too large' not in err
  234. > assert p.returncode == 0
  235. E AssertionError: assert 1 == 0
  236. E + where 1 = <Popen: returncode: 1 args: ('xvfb-run', '-a', '/usr/bin/python', '/home/gpe...>.returncode
  237.  
  238. tests/test_ascii.py:163: AssertionError
  239. ----------------------------- Captured stderr call -----------------------------
  240. Traceback (most recent call last):
  241. File "/home/gpereira/.cache/yay/python-numpy-stl/src/numpy-stl-2.17.1/tests/qt-lc_numeric-reproducer", line 6, in <module>
  242. from stl import mesh
  243. ModuleNotFoundError: No module named 'stl'
  244. =============================== warnings summary ===============================
  245. ../../../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252
  246. /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: basetemp
  247.  
  248. self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
  249.  
  250. ../../../../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252
  251. /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: looponfailroots
  252.  
  253. self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
  254.  
  255. tests/__init__.py: 2 warnings
  256. tests/conftest.py: 2 warnings
  257. tests/stl_corruption.py: 2 warnings
  258. tests/test_ascii.py: 2 warnings
  259. tests/test_binary.py: 2 warnings
  260. tests/test_commandline.py: 2 warnings
  261. tests/test_convert.py: 2 warnings
  262. tests/test_line_endings.py: 2 warnings
  263. tests/test_mesh.py: 2 warnings
  264. tests/test_meshProperties.py: 2 warnings
  265. tests/test_multiple.py: 2 warnings
  266. tests/test_rotate.py: 2 warnings
  267. tests/utils.py: 2 warnings
  268. /usr/lib/python3.10/site-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
  269. eps = importlib_metadata.entry_points().get(self.namespace, ())
  270.  
  271. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
  272. =========================== short test summary info ============================
  273. FAILED tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter[True]
  274. ============ 1 failed, 126 passed, 4 skipped, 28 warnings in 4.56s =============
  275. ==> ERROR: A failure occurred in check().
  276. Aborting...
  277. -> error making: python-numpy-stl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement