question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

conda test errors: test_matshow3d

See original GitHub issue

Describe the bug

======================================================================
FAIL: test_samples (tests.test_matshow3d.TestMatshow3d)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/MONAI/MONAI/tests/test_matshow3d.py", line 70, in test_samples
    np.testing.assert_allclose(comp["rms"], 30.786983, atol=1e-3, rtol=1e-3)
  File "/usr/local/miniconda/envs/monai/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 1530, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/usr/local/miniconda/envs/monai/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=0.001, atol=0.001

Mismatched elements: 1 / 1 (100%)
Max absolute difference: 4.74991119
Max relative difference: 0.1542831
 x: array(26.037072)
 y: array(30.786983)

======================================================================
FAIL: test_plot (tests.test_threadcontainer.TestThreadContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/MONAI/MONAI/tests/test_threadcontainer.py", line 107, in test_plot
    self.assertIsNone(comp, comp)  # None indicates test passed
AssertionError: 'Error: Image files did not match.\n  RMS Value: 28.09905059190909\n  Expected:  \n    /Users/runner/work/MONAI/MONAI/tests/testing_data/threadcontainer_plot_test.png\n  Actual:    \n    /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test.png\n  Difference:\n    /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test-failed-diff.png\n  Tolerance: \n    0.05' is not None : Error: Image files did not match.
  RMS Value: 28.09905059190909
  Expected:  
    /Users/runner/work/MONAI/MONAI/tests/testing_data/threadcontainer_plot_test.png
  Actual:    
    /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test.png
  Difference:
    /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpav42fn_w/threadcontainer_plot_test-failed-diff.png
  Tolerance: 
    0.05

----------------------------------------------------------------------
Ran 5904 tests in 1950.197s

FAILED (failures=2, skipped=355)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wylicommented, Mar 29, 2022

It’s possibly a version issue, the corresponding environment in a non-conda setup is here (example) https://github.com/Project-MONAI/MONAI/runs/5702401097?check_suite_focus=true

To debug, you can push to your fork with a temp branch and with the config modification to trigger the test like this https://github.com/Project-MONAI/MONAI/commit/238d883a92d11bea021ebd605837c9cdbfc78d2f

0reactions
wylicommented, Apr 1, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting
Permission denied errors after using sudo conda command. Already installed error message ... conda create myenv python conda activate myenv echo test.
Read more >
Python conda run incorrect environment path · Issue #18493
Behaviour I get the following error when running pytest test discovery. It looked like the environment path is getting duplicated: ...
Read more >
Error running tests with Conda and Tox - python
I am having trouble running tests with Tox while having virtual environments created with Conda. The steps to reproduce the error are below....
Read more >
Troubleshooting
403 error; HTTP 000 CONNECTION FAILED; Anaconda installer download problems ... Error message on Miniconda install: Already installed; Conda update anaconda ...
Read more >
Introduction to Conda for (Data) Scientists: Setup
Mac and Linux users can check whether Conda is installed by running the following ... If you get the error message “You cannot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found