Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Caught an unknown exception! when starting creating a Logger object #74

Open
aloisklink opened this issue Oct 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@aloisklink
Copy link
Contributor

aloisklink commented Oct 30, 2023

I'm very rarely getting the following error when creating a nqm.irimager.Logger Python object:

 ============================= test session starts ==============================
  platform linux -- Python 3.9.17, pytest-7.4.3, pluggy-1.3.0
  rootdir: /project
  configfile: pyproject.toml
  plugins: timeout-2.2.0
  timeout: 20.0s
  timeout method: signal
  timeout func_only: False
  collected 11 items
  
  ../../../project/tests/test_irimager.py .......                          [ 63%]
  ../../../project/tests/test_logger.py F..                                [ 90%]
  ../../../project/tests/test_version.py .                                 [100%]
  
  =================================== FAILURES ===================================
  ______________________________ test_logger_basic _______________________________
  
      def test_logger_basic():
          """Test whether the Logger object runs and exits"""
  >       logger = Logger()
  E       RuntimeError: Caught an unknown exception!
  
  /project/tests/test_logger.py:11: RuntimeError
  =========================== short test summary info ============================
  FAILED ../../../project/tests/test_logger.py::test_logger_basic - RuntimeErro...
  ======================== 1 failed, 10 passed in 10.26s =========================

I'm not 100% sure why. pybind11 would normally convert the error and give a nicer error message, but it seems like it can't for this one.

As an example, see:

@aloisklink aloisklink added the bug Something isn't working label Oct 30, 2023
aloisklink added a commit that referenced this issue Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant