# Issue with HDBrainExtraction Tool Not Completing – Error Message Appears

**URL:** <https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236>\
**Category:** Support\
**Created:** [June 5, 2025, 3:25pm UTC](https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236 "2025-06-05T15:25:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MZA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mza/32/16225_2.png) [@MZA](https://discourse.slicer.org/u/MZA)\
**Post date:** [June 5, 2025, 3:25pm UTC](https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236/1 "2025-06-05T15:25:20Z")

</div>

Hi everyone,

I’m encountering an issue while using the **HDBrainExtraction** tool. After selecting the source and output volume and clicking **Apply** , the process fails to complete. Instead, I get the pop-up error message shown in the attached screenshot.

I’m also posting two texts for reference:

- The next one contains the output shown when clicking the **“Show details”** button in the error message:

```auto
Traceback (most recent call last):
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3303, in tryWithErrorDisplay
    yield
  File "C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/HDBrainExtraction/lib/Slicer-5.8/qt-scripted-modules/HDBrainExtractionTool.py", line 227, in onApplyButton
    self.logic.setupPythonRequirements()
  File "C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/HDBrainExtraction/lib/Slicer-5.8/qt-scripted-modules/HDBrainExtractionTool.py", line 308, in setupPythonRequirements
    slicer.util.pip_install('batchgenerators')
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3942, in pip_install
    _executePythonModule("pip", args)
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3896, in _executePythonModule
    logProcessOutput(proc)
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3862, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'batchgenerators']' returned non-zero exit status 1.

```

- The other is the Python Console log at the time of the error:

```auto
Collecting batchgenerators
  Using cached batchgenerators-0.25.1.tar.gz (76 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: pillow>=7.1.2 in c:\users\mrasf\appdata\local\slicer.org\slicer 5.8.1\lib\python\lib\site-packages (from batchgenerators) (10.3.0)
Requirement already satisfied: numpy>=1.10.2 in c:\users\mrasf\appdata\local\slicer.org\slicer 5.8.1\lib\python\lib\site-packages (from batchgenerators) (1.26.4)
Requirement already satisfied: scipy in c:\users\mrasf\appdata\local\slicer.org\slicer 5.8.1\lib\python\lib\site-packages (from batchgenerators) (1.13.1)
Collecting scikit-image (from batchgenerators)
  Using cached scikit_image-0.24.0-cp39-cp39-win_amd64.whl.metadata (14 kB)
Collecting scikit-learn (from batchgenerators)
  Using cached scikit_learn-1.6.1-cp39-cp39-win_amd64.whl.metadata (15 kB)
Collecting future (from batchgenerators)
  Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting pandas (from batchgenerators)
  Using cached pandas-2.3.0.tar.gz (4.5 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  Preparing metadata (pyproject.toml) did not run successfully.
  exit code: 1

  [10 lines of output]
  + meson setup C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301 C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301\.mesonpy-6sv7bkf5 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301\.mesonpy-6sv7bkf5\meson-python-native-file.ini
  The Meson build system
  Version: 1.8.1
  Source dir: C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301
  Build dir: C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301\.mesonpy-6sv7bkf5
  Build type: native build

  ..\meson.build:2:0: ERROR: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  A full log can be found at C:\Users\mrasf\AppData\Local\Temp\pip-install-0i038abm\pandas_a4d32aa1603d435e9c1558c96e77e301\.mesonpy-6sv7bkf5\meson-logs\meson-log.txt
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[Python] Failed to compute results.
[Python] Command '['C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'batchgenerators']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/HDBrainExtraction/lib/Slicer-5.8/qt-scripted-modules/HDBrainExtractionTool.py", line 227, in onApplyButton
    self.logic.setupPythonRequirements()
  File "C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/slicer.org/Extensions-33241/HDBrainExtraction/lib/Slicer-5.8/qt-scripted-modules/HDBrainExtractionTool.py", line 308, in setupPythonRequirements
    slicer.util.pip_install('batchgenerators')
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3942, in pip_install
    _executePythonModule("pip", args)
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3896, in _executePythonModule
    logProcessOutput(proc)
  File "C:\Users\mrasf\AppData\Local\slicer.org\Slicer 5.8.1\bin\Python\slicer\util.py", line 3862, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['C:/Users/mrasf/AppData/Local/slicer.org/Slicer 5.8.1/bin/../bin\\PythonSlicer.EXE', '-m', 'pip', 'install', 'batchgenerators']' returned non-zero exit status 1.

```

 ![hdbrainextractionerror](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/9/c92aec51a54d84eb6f2cc25790170ce5b058a16a.jpeg)  
Any suggestions for resolving this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [June 5, 2025, 6:36pm UTC](https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236/2 "2025-06-05T18:36:16Z")

</div>

It is trying to install latest `pandas`, but the `pandas` maintainers made a mistake in their most recent 2.3.0 release that came out yesterday (see issue linked below). The release notes specify that their intention was for this release to require Python 3.10 or newer, but their configuration stated that it was still Python 3.9 or newer. There are no Python 3.9 wheels for pandas `2.3.0` based on their intention to not support this python version.

For Slicer 5.8.1 you can instead call `slicer.util.pip_install("pandas<2.3.0")` to resolve this issue with HDBrainExtraction.

> <https://github.com/pandas-dev/pandas/issues/61563>
>
> \### Installation check
> 
> \- \[x\] I have read the \[installation guide\](https://panda…s.pydata.org/pandas-docs/stable/getting\_started/install.html#installing-pandas).
> 
> 
> \### Platform
> 
> Linux-5.10.195-1.20230921.el7.x86\_64-x86\_64-with-glibc2.17
> 
> \### Installation Method
> 
> pip install
> 
> \### pandas Version
> 
> 2.3.0
> 
> \### Python Version
> 
> 3.9.15
> 
> \### Installation Logs
> 
> \<details\>
> (base) \[root@64bf929a621d7dafeb18b348 ~\]# python -c 'import platform; print(platform.platform())'
> Linux-5.10.195-1.20230921.el7.x86\_64-x86\_64-with-glibc2.17
> 
> (base) \[root@64bf929a621d7dafeb18b348 ~\]# pip install pandas -U
> Requirement already satisfied: pandas in /opt/conda/lib/python3.9/site-packages (1.5.0)
> Collecting pandas
> Downloading pandas-2.3.0.tar.gz (4.5 MB)
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 90.9 MB/s eta 0:00:00
> Installing build dependencies ... done
> Getting requirements to build wheel ... done
> Installing backend dependencies ... done
> Preparing metadata (pyproject.toml) ... error
> error: subprocess-exited-with-error
> 
> × Preparing metadata (pyproject.toml) did not run successfully.
> │ exit code: 1
> ╰─\> \[152 lines of output\]
> + meson setup /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86 /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/.mesonpy-lsu89q1a -Dbuildtype=release -Db\_ndebug=if-release -Db\_vscrt=md --vsenv --native-file=/tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/.mesonpy-lsu89q1a/meson-python-native-file.ini
> The Meson build system
> Version: 1.8.1
> Source dir: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86
> Build dir: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/.mesonpy-lsu89q1a
> Build type: native build
> Project name: pandas
> Project version: 2.3.0
> C compiler for the host machine: cc (gcc 4.8.5 "cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)")
> C linker for the host machine: cc ld.bfd 2.27-44
> C++ compiler for the host machine: c++ (gcc 4.8.5 "c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)")
> C++ linker for the host machine: c++ ld.bfd 2.27-44
> Cython compiler for the host machine: cython (cython 3.1.1)
> Host machine cpu family: x86\_64
> Host machine cpu: x86\_64
> Program python found: YES (/opt/conda/bin/python)
> Found pkg-config: YES (/usr/bin/pkg-config) 0.27.1
> Run-time dependency python found: YES 3.9
> Build targets in project: 53
> 
> pandas 2.3.0
> 
> User defined options
> Native files: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/.mesonpy-lsu89q1a/meson-python-native-file.ini
> b\_ndebug : if-release
> b\_vscrt : md
> buildtype : release
> vsenv : true
> 
> Found ninja-1.11.1.git.kitware.jobserver-1 at /tmp/pip-build-env-ltjugjgm/normal/bin/ninja
> 
> Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
> /tmp/pip-build-env-ltjugjgm/overlay/bin/meson compile -C .
> + /tmp/pip-build-env-ltjugjgm/normal/bin/ninja
> \[1/151\] Generating pandas/\_libs/intervaltree\_helper\_pxi with a custom command
> \[2/151\] Generating pandas/\_libs/hashtable\_func\_helper\_pxi with a custom command
> \[3/151\] Generating pandas/\_libs/algos\_common\_helper\_pxi with a custom command
> \[4/151\] Generating pandas/\_libs/khash\_primitive\_helper\_pxi with a custom command
> \[5/151\] Generating pandas/\_libs/index\_class\_helper\_pxi with a custom command
> \[6/151\] Generating pandas/\_libs/algos\_take\_helper\_pxi with a custom command
> \[7/151\] Generating pandas/\_libs/hashtable\_class\_helper\_pxi with a custom command
> \[8/151\] Copying file pandas/\_\_init\_\_.py
> \[9/151\] Generating pandas/\_libs/sparse\_op\_helper\_pxi with a custom command
> \[10/151\] Compiling C object pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_lib\_ultrajsonenc.c.o
> FAILED: pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_lib\_ultrajsonenc.c.o
> cc -Ipandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p -Ipandas/\_libs -I../pandas/\_libs -I../../../pip-build-env-ltjugjgm/overlay/lib/python3.9/site-packages/numpy/\_core/include -I../pandas/\_libs/include -I/opt/conda/include/python3.9 -fvisibility=hidden -DNDEBUG -D\_FILE\_OFFSET\_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -DNPY\_NO\_DEPRECATED\_API=0 -DNPY\_TARGET\_VERSION=NPY\_1\_21\_API\_VERSION -fPIC -MD -MQ pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_lib\_ultrajsonenc.c.o -MF pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_lib\_ultrajsonenc.c.o.d -o pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_lib\_ultrajsonenc.c.o -c ../pandas/\_libs/src/vendored/ujson/lib/ultrajsonenc.c
> In file included from ../pandas/\_libs/src/vendored/ujson/lib/ultrajsonenc.c:43:0:
> ../pandas/\_libs/include/pandas/portable.h:31:22: error: missing binary operator before token "("
> #elif \_\_has\_attribute(\_\_fallthrough\_\_)
> ^
> \[11/151\] Compiling C object pandas/\_libs/pandas\_parser.cpython-39-x86\_64-linux-gnu.so.p/src\_parser\_io.c.o
> \[12/151\] Compiling C object pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime.c.o
> FAILED: pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime.c.o
> cc -Ipandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p -Ipandas/\_libs -I../pandas/\_libs -I../../../pip-build-env-ltjugjgm/overlay/lib/python3.9/site-packages/numpy/\_core/include -I../pandas/\_libs/include -I/opt/conda/include/python3.9 -fvisibility=hidden -DNDEBUG -D\_FILE\_OFFSET\_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -DNPY\_NO\_DEPRECATED\_API=0 -DNPY\_TARGET\_VERSION=NPY\_1\_21\_API\_VERSION -fPIC -MD -MQ pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime.c.o -MF pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime.c.o.d -o pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime.c.o -c ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c:57:1: error: static assertion failed: "\_\_has\_builtin not detected; please try a newer compiler"
> \_Static\_assert(0, "\_\_has\_builtin not detected; please try a newer compiler");
> ^
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c: In function ‘scaleYearToEpoch’:
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c:343:3: warning: implicit declaration of function ‘checked\_int64\_sub’ \[-Wimplicit-function-declaration\]
> return checked\_int64\_sub(year, 1970, result);
> ^
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c: In function ‘scaleYearsToMonths’:
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c:347:3: warning: implicit declaration of function ‘checked\_int64\_mul’ \[-Wimplicit-function-declaration\]
> return checked\_int64\_mul(years, 12, result);
> ^
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c: In function ‘npy\_datetimestruct\_to\_datetime’:
> ../pandas/\_libs/src/vendored/numpy/datetime/np\_datetime.c:425:5: warning: implicit declaration of function ‘checked\_int64\_add’ \[-Wimplicit-function-declaration\]
> PD\_CHECK\_OVERFLOW(checked\_int64\_add(months, months\_adder, &months));
> ^
> \[13/151\] Compiling C object pandas/\_libs/pandas\_parser.cpython-39-x86\_64-linux-gnu.so.p/src\_parser\_pd\_parser.c.o
> \[14/151\] Compiling C object pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_datetime\_date\_conversions.c.o
> \[15/151\] Compiling C object pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_python\_JSONtoObj.c.o
> \[16/151\] Compiling C object pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_datetime\_pd\_datetime.c.o
> \[17/151\] Compiling C object pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_python\_ujson.c.o
> \[18/151\] Compiling C object pandas/\_libs/pandas\_datetime.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_numpy\_datetime\_np\_datetime\_strings.c.o
> \[19/151\] Compiling C object pandas/\_libs/json.cpython-39-x86\_64-linux-gnu.so.p/src\_vendored\_ujson\_python\_objToJSON.c.o
> \[20/151\] Compiling C object pandas/\_libs/tslibs/parsing.cpython-39-x86\_64-linux-gnu.so.p/..\_src\_parser\_tokenizer.c.o
> \[21/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/indexing.pyx
> \[22/151\] Compiling C object pandas/\_libs/pandas\_parser.cpython-39-x86\_64-linux-gnu.so.p/src\_parser\_tokenizer.c.o
> \[23/151\] Compiling C object pandas/\_libs/lib.cpython-39-x86\_64-linux-gnu.so.p/src\_parser\_tokenizer.c.o
> \[24/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/ccalendar.pyx
> \[25/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/base.pyx
> \[26/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/np\_datetime.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[27/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/missing.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[28/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/dtypes.pyx
> \[29/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/arrays.pyx
> \[30/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/hashing.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[31/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/nattype.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/nattype.pyx:79:0: Global name \_\_nat\_unpickle matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/nattype.pyx:79:0: Global name \_\_nat\_unpickle matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
> \[32/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/vectorized.pyx
> \[33/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/fields.pyx
> \[34/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/internals.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[35/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/conversion.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[36/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/parsing.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[37/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/timezones.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[38/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/tzconversion.pyx
> \[39/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/strptime.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[40/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/parsers.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/parsers.pyx:1605:18: noexcept clause is ignored for function returning Python object
> \[41/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/timestamps.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[42/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/period.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[43/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/timedeltas.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[44/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/offsets.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[45/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/lib.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[46/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/index.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[47/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/interval.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[48/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/join.pyx
> \[49/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/hashtable.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[50/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/algos.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> \[51/151\] Compiling Cython source /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/groupby.pyx
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:188:38: noexcept clause is ignored for function returning Python object
> warning: /tmp/pip-install-gp\_gpioe/pandas\_8608342ddb164d0e8725d2463640de86/pandas/\_libs/tslibs/util.pxd:193:40: noexcept clause is ignored for function returning Python object
> ninja: build stopped: subcommand failed.
> \[end of output\]
> 
> note: This error originates from a subprocess, and is likely not a problem with pip.
> error: metadata-generation-failed
> 
> × Encountered error while generating package metadata.
> ╰─\> See above for output.
> 
> note: This is an issue with the package mentioned above, not pip.
> hint: See above for details.
> 
> 
> \</details\>

It seems like `pandas` may ultimately provide Python 3.9 wheels for version 2.3.0 since their own testing seemed to pass on Python 3.9. You could monitor the following PR. Maybe they will release a 2.3.1 soon that states that will still support Python 3.9 for one last time.

> <https://github.com/pandas-dev/pandas/pull/61569>
>
> @lithomas1 would I need to re-tag the 2.3.x branch if/when we merge this?
> 
> xre…f https://github.com/pandas-dev/pandas/issues/61563

For Slicer Preview, you will soon not have to do this workaround as Slicer is moving from using Python 3.9 to Python 3.12 (see PR below). It is not the first time that some python packages have dropped Python 3.9 support, but then did not appropriately update their configurations to state this as well.

> <https://github.com/Slicer/Slicer/pull/8466>
>
> This pull request was created to include the changes originally integrated throu…gh this pull requests:
> \* https://github.com/Slicer/Slicer/pull/8456
> 
> For the sake of having a clean history and considering the updated \`main\` branch has not been referenced externally, \`main\` was forced push to https://github.com/Slicer/Slicer/commit/4b1666ec317ab1885f1b02354ac2f78708cb29f4
> 
> \---- 
> 
> \> \[!IMPORTANT\]
> \> This pull request should be rebased & integrated \*only\* after the pull requests referenced below are themselves reviewed & integrated:
> \> \* https://github.com/Slicer/Slicer/pull/8454
> \> \* https://github.com/Slicer/Slicer/pull/8457
> \> \* https://github.com/Slicer/Slicer/pull/8459
> \> \* https://github.com/Slicer/Slicer/pull/8461
> \> \* https://github.com/Slicer/Slicer/pull/8467

---

<div class="post-metadata">

**Author:** ![MZA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mza/32/16225_2.png) [@MZA](https://discourse.slicer.org/u/MZA)\
**Post date:** [June 6, 2025, 9:08pm UTC](https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236/3 "2025-06-06T21:08:41Z")

</div>

Thanks James, it’s working now!

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [June 7, 2025, 12:03am UTC](https://discourse.slicer.org/t/issue-with-hdbrainextraction-tool-not-completing-error-message-appears/43236/4 "2025-06-07T00:03:57Z")

</div>

Looks like the `pandas` developers have now uploaded the Python 3.9 whls for version `2.3.0` even though they originally intended not to for this version. Therefore the workaround of forcing a earlier version is no longer needed.
