-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Having trouble getting the python API to work and hitting this error:
$ bazel build src/... && ./bazel-bin/src/py/simplex_test
INFO: Analyzed 21 targets (0 packages loaded, 0 targets configured).
INFO: Found 21 targets...
INFO: Elapsed time: 0.558s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
==================================================== test session starts ====================================================
platform linux -- Python 3.11.10, pytest-8.4.0, pluggy-1.6.0
rootdir: /usr/local/google/home/shutty/projects/tesseract-decoder
collected 2 items
bazel-bin/src/py/simplex_test.runfiles/_main/src/py/simplex_test.py .Fatal Python error: Aborted
Current thread 0x00007fac861b1740 (most recent call first):
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/_main/src/py/simplex_test.py", line 48 in test_create_simplex_decoder
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/python.py", line 156 in pytest_pyfunc_call
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/python.py", line 1670 in runtest
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 178 in pytest_runtest_call
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 246 in <lambda>
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 344 in from_call
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 245 in call_and_report
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 136 in runtestprotocol
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/runner.py", line 117 in pytest_runtest_protocol
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/main.py", line 367 in pytest_runtestloop
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/main.py", line 343 in _main
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/main.py", line 289 in wrap_session
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/main.py", line 336 in pytest_cmdline_main
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_callers.py", line 121 in _multicall
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_manager.py", line 120 in _hookexec
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pluggy/site-packages/pluggy/_hooks.py", line 512 in __call__
File "/usr/local/google/home/shutty/projects/tesseract-decoder/bazel-bin/src/py/simplex_test.runfiles/rules_python++pip+pypi_311_pytest/site-packages/_pytest/config/__init__.py", line 175 in main
File "/usr/local/google/home/shutty/projects/tesseract-decoder/./bazel-bin/src/py/simplex_test.runfiles/_main/src/py/simplex_test.py", line 52 in <module>
Aborted (core dumped)
I can decode this with the C++ cli without issues:
bazel build src:simplex && time ./bazel-bin/src/simplex --dem <(echo 'error(0.125) D0
error(0.375) D0 D1
error(0.25) D1') --in <(echo 'shot D1') --verbose --in-format dets
Metadata
Metadata
Assignees
Labels
No labels