# Error when running MONAI Auto3DSeg (cannot import name ‘MetaKeys’ from ‘monai.utils’)

**URL:** <https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738>\
**Category:** Support\
**Tags:** segmentation, monai-auto3dseg\
**Created:** [April 25, 2024, 2:21pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738 "2024-04-25T14:21:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidngqk88](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@davidngqk88](https://discourse.slicer.org/u/davidngqk88)\
**Post date:** [April 25, 2024, 2:21pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/1 "2024-04-25T14:21:34Z")

</div>

Am testing it on some abdominal CT datasets now.

am getting errors saying  
ImportError: cannot import name ‘MetaKeys’ from ‘monai.utils’  
‘Processing failed with return code 1’  
after it attempts to create the segmentations.

What is error code 1?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 25, 2024, 2:49pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/2 "2024-04-25T14:49:11Z")

</div>

The non-zero error code just means that the processing failed. The error message indicates that your MONAI package installation is corrupted (or you manually installed some very old version of MONAI).

Could you please open the `Advanced` section, click the `Get Python package information` button, and copy here the contents of the textbox?

Have you installed Anaconda on your computer? On Windows, it can overwrite lot of system settings on your computer that may break other Python environments, so if you have Anaconda installed then you may try temporarily renaming the top-level Anaconda installation folder, restart Slicer, and retry the segmentation.

---

<div class="post-metadata">

**Author:** ![davidngqk88](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@davidngqk88](https://discourse.slicer.org/u/davidngqk88)\
**Post date:** [April 25, 2024, 2:52pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/3 "2024-04-25T14:52:26Z")

</div>

here it is. I dont have anaconda installed.

Name: monai

Version: 0.9.0

Summary: AI Toolkit for Healthcare Imaging

Home-page: [https://monai.io/](https://monai.io/)

Author: MONAI Consortium

Author-email: [monai.contact@gmail.com](mailto:monai.contact@gmail.com)

License: Apache License 2.0

Location: c:\users\XXX\appdata\local\slicer.org\slicer 5.6.1\lib\python\lib\site-packages

Requires: numpy, torch

Required-by:

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [April 25, 2024, 4:00pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/4 "2024-04-25T16:00:44Z")

</div>

Hi @davidngqk88,

This is strange.  
I’d suggest you download the latest Preview Slicer and do a clean installation of the MONAI Auto3DSeg extension.

Please let us know,

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 25, 2024, 6:45pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/5 "2024-04-25T18:45:49Z")

</div>

Yes, MONAI Auto3DSeg is only supported with the latest Slicer Stable Release and latest Slicer Preview Release. Your Slicer version is 5.6.1 (the current stable is 5.6.2), so your Slicer has not been receiving any of the extension updates for a good while and your MONAI Auto3DSeg extension is an early prototype version.

---

<div class="post-metadata">

**Author:** ![MGoryawala](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mgoryawala/32/80602_2.png) [@MGoryawala](https://discourse.slicer.org/u/MGoryawala)\
**Post date:** [July 9, 2025, 4:37pm UTC](https://discourse.slicer.org/t/error-when-running-monai-auto3dseg-cannot-import-name-metakeys-from-monai-utils/35738/6 "2025-07-09T16:37:22Z")

</div>

Hi All,

Wondering if this issue was resolved.

## Getting a similar error while running the Brain Tumor Segmentation (BRATS) GLI module.

Initializing

Segmenting

Process Started

`apex.normalization.InstanceNorm3dNVFuser` is not installed properly, use nn.InstanceNorm3d instead.

Model epoch 176 metric 0.9485230445861816

## Processing failed with error code [1]. Please check logs for further information.

## The Python Package information is:

Name: monai

Version: 1.5.0

Summary: AI Toolkit for Healthcare Imaging

Home-page: [https://monai.io/](https://monai.io/)

Author: MONAI Consortium

Author-email: [monai.contact@gmail.com](mailto:monai.contact@gmail.com)

License: Apache License 2.0

Location: c:\users\xxxxx\appdata\local\slicer.org\slicer 5.8.1\lib\python\lib\site-packages

Requires: numpy, torch

## Required-by:

My slicer version details are:

Slicer

5.8.1 r33241 / 11eaf62
