Having Trouble with cadet Path requirement for Cadet-Process import

Expected behavior.

I am trying to run my test code to see if the cadet has installed properly. But when I run it, it gives the error that cadet cannot be auto detected, please provide the specific path for which I have to manually write the path in Python script. Still when I run the code for first-time in the kernel it gives some warnings, after 1st run the warnings disappears. The code is as follows:

from CADETProcess.simulator import Cadet

# Initialize the simulator
simulator = Cadet(install_path=r"C:\Users\modia\anaconda3\bin\cadet-cli.exe")

# Check if CADET-Core is accessible
if simulator.check_cadet():
    print("CADET-Core is accessible.")
else:
    print("CADET-Core is not accessible.")

Actual behavior

In the 1st code it gives following warning:

C:\Users\modia\anaconda3\envs\cadet-env\lib\site-packages\cadet\cadet.py:59: UserWarning: The specified install_path is not the root of the CADET installation. It has been inferred from the file path.
  warnings.warn(
C:\Users\modia\anaconda3\envs\cadet-env\lib\site-packages\cadet\cadet.py:569: FutureWarning: Cadet.run() will be removed in a future release. 
Please use Cadet.run_simulation()
  warnings.warn(
Test simulation completed successfully
CADET-Core is accessible.

The system cannot find the path specified.

Without the path provided it gives error:

Traceback (most recent call last):

  File ~\anaconda3\envs\cadet-env\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File c:\users\modia\onedrive - iit delhi\desktop\cadet_test.py:4
    simulator = Cadet()

  File ~\anaconda3\envs\cadet-env\lib\site-packages\CADETProcess\simulator\cadetAdapter.py:98 in __init__
    self.install_path = CadetAPI.autodetect_cadet()

  File ~\anaconda3\envs\cadet-env\lib\site-packages\cadet\cadet.py:369 in autodetect_cadet
    raise FileNotFoundError(

FileNotFoundError: Could not autodetect CADET installation. Please provide path.

How to produce bug (including a minimal reproducible example)

from CADETProcess.simulator import Cadet

# Initialize the simulator
simulator = Cadet()

# Check if CADET-Core is accessible
if simulator.check_cadet():
    print("CADET-Core is accessible.")
else:
    print("CADET-Core is not accessible.")

Hello Abhinav!

Sorry to hear you are having trouble with your CADET installation. Before we can help you, it is important to know, how exactly you installed CADET. Did you use conda or install it from source? If you installed it from source, please check that your PATH variables are set correctly.

Also, If you are working in a virtual environment, please attach your environment file so we can verify CADET is installed properly.

Best wishes,
Hannah

Thank you for response.
I used conda to install CADET.
I have created an environment file named cadet-env.txt using the code conda list --explicit > cadet-env.txt.
The forums is not allowing me to attach the txt file as a new user. Therefore I will copy paste the output here

# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
# created-by: conda 24.11.3
@EXPLICIT
https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2025.4.26-h4c7d964_0.conda
https://conda.anaconda.org/conda-forge/win-64/intel-openmp-2024.2.1-h57928b3_1083.conda
https://repo.anaconda.com/pkgs/main/noarch/tzdata-2025b-h04d1e81_0.conda
https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_1.conda
https://conda.anaconda.org/conda-forge/win-64/libwinpthread-12.0.0.r4.gg4f2fc60ca-h57928b3_9.conda
https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.42.34438-hfd919c2_26.conda
https://conda.anaconda.org/conda-forge/win-64/libgomp-15.1.0-h1383e82_2.conda
https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.42.34438-h7142326_26.conda
https://conda.anaconda.org/conda-forge/win-64/_openmp_mutex-4.5-2_gnu.conda
https://repo.anaconda.com/pkgs/main/win-64/vc-14.42-haa95532_5.conda
https://repo.anaconda.com/pkgs/main/win-64/bzip2-1.0.8-h2bbff1b_6.conda
https://conda.anaconda.org/conda-forge/win-64/libaec-1.1.3-h63175ca_0.conda
https://conda.anaconda.org/conda-forge/win-64/libexpat-2.7.0-he0c23c2_0.conda
https://repo.anaconda.com/pkgs/main/win-64/libffi-3.4.4-hd77b12b_1.conda
https://conda.anaconda.org/conda-forge/win-64/libgcc-15.1.0-h1383e82_2.conda
https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-h135ad9c_1.conda
https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.1-h2466b09_1.conda
https://conda.anaconda.org/conda-forge/win-64/libsodium-1.0.20-hc70643c_0.conda
https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.49.2-h67fdade_0.conda
https://conda.anaconda.org/conda-forge/win-64/libsuitesparseconfig-7.10.1-h0795de7_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.1-h2466b09_2.conda
https://conda.anaconda.org/conda-forge/win-64/metis-5.1.0-h17e2fc9_1007.conda
https://conda.anaconda.org/conda-forge/win-64/openssl-3.5.0-ha4e3fda_1.conda
https://repo.anaconda.com/pkgs/main/win-64/sqlite-3.45.3-h2bbff1b_0.conda
https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h5226925_1.conda
https://conda.anaconda.org/conda-forge/win-64/gmp-6.3.0-hfeafd45_2.conda
https://conda.anaconda.org/conda-forge/win-64/krb5-1.21.3-hdf4eb48_0.conda
https://conda.anaconda.org/conda-forge/win-64/libamd-3.3.3-h60129d2_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libbtf-2.3.2-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libcamd-3.3.3-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libccolamd-3.3.4-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libcolamd-3.3.4-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libcxsparse-4.4.1-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libldl-3.3.2-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/liblzma-devel-5.8.1-h2466b09_1.conda
https://conda.anaconda.org/conda-forge/win-64/librbio-4.3.4-h8c1c262_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libssh2-1.11.1-h9aa295b_0.conda
https://conda.anaconda.org/conda-forge/win-64/libxml2-2.13.8-h442d1da_0.conda
https://conda.anaconda.org/conda-forge/win-64/python-3.10.17-h8c5b53a_0_cpython.conda
https://conda.anaconda.org/conda-forge/win-64/xz-tools-5.8.1-h2466b09_1.conda
https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.1-h2466b09_2.conda
https://conda.anaconda.org/conda-forge/noarch/asttokens-3.0.0-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/cloudpickle-3.1.1-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/decorator-5.2.1-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/executing-2.2.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/win-64/libcurl-8.13.0-h88aaa65_0.conda
https://conda.anaconda.org/conda-forge/win-64/libhwloc-2.11.2-default_ha69328c_1001.conda
https://conda.anaconda.org/conda-forge/win-64/mpfr-4.2.1-hbc20e70_3.conda
https://conda.anaconda.org/conda-forge/noarch/nest-asyncio-1.6.0-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/packaging-25.0-pyh29332c3_1.conda
https://conda.anaconda.org/conda-forge/noarch/parso-0.8.4-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/pickleshare-0.7.5-pyhd8ed1ab_1004.conda
https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.3.8-pyhe01879c_0.conda
https://conda.anaconda.org/conda-forge/noarch/pure_eval-0.2.3-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/win-64/python_abi-3.10-2_cp310.tar.bz2
https://repo.anaconda.com/pkgs/main/win-64/setuptools-78.1.1-py310haa95532_0.conda
https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/traitlets-5.14.3-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.13.2-pyh29332c3_0.conda
https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.2.13-pyhd8ed1ab_1.conda
https://repo.anaconda.com/pkgs/main/win-64/wheel-0.45.1-py310haa95532_0.conda
https://conda.anaconda.org/conda-forge/win-64/xz-5.8.1-h208afaa_1.conda
https://conda.anaconda.org/conda-forge/win-64/zeromq-4.3.5-ha9f60a1_7.conda
https://conda.anaconda.org/conda-forge/noarch/zipp-3.22.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/comm-0.2.2-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/cpython-3.10.17-py310hd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/win-64/debugpy-1.8.14-py310h9e98ed7_0.conda
https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/win-64/hdf5-1.14.4-nompi_hd5d9e70_105.conda
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-8.7.0-pyhe01879c_1.conda
https://conda.anaconda.org/conda-forge/noarch/jedi-0.19.2-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/win-64/libspex-3.2.3-h2f847cc_7100102.conda
https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.1.7-pyhd8ed1ab_1.conda
https://repo.anaconda.com/pkgs/main/noarch/pip-25.1-pyhc872135_2.conda
https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.51-pyha770c72_0.conda
https://conda.anaconda.org/conda-forge/win-64/psutil-7.0.0-py310ha8f682b_0.conda
https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhff2d567_1.conda
https://conda.anaconda.org/conda-forge/win-64/pywin32-307-py310h9e98ed7_3.conda
https://conda.anaconda.org/conda-forge/win-64/pyzmq-26.4.0-py310h656833d_0.conda
https://conda.anaconda.org/conda-forge/noarch/stack_data-0.6.3-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/win-64/tbb-2021.13.0-h62715c5_1.conda
https://conda.anaconda.org/conda-forge/win-64/tornado-6.5.1-py310ha8f682b_0.conda
https://conda.anaconda.org/conda-forge/noarch/ipython-8.36.0-pyh9ab4c32_0.conda
https://conda.anaconda.org/conda-forge/noarch/jupyter_core-5.8.1-pyh5737063_0.conda
https://conda.anaconda.org/conda-forge/win-64/mkl-2024.2.2-h66d3029_15.conda
https://conda.anaconda.org/conda-forge/win-64/tbb-devel-2021.13.0-h47441b3_1.conda
https://conda.anaconda.org/conda-forge/noarch/jupyter_client-8.6.3-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/win-64/libblas-3.9.0-31_h641d27c_mkl.conda
https://repo.anaconda.com/pkgs/main/win-64/ipykernel-6.29.5-py310haa95532_1.conda
https://conda.anaconda.org/conda-forge/win-64/libcblas-3.9.0-31_h5e41251_mkl.conda
https://conda.anaconda.org/conda-forge/win-64/liblapack-3.9.0-31_h1aa476e_mkl.conda
https://conda.anaconda.org/conda-forge/win-64/libcholmod-5.3.1-hdf2ebef_7100102.conda
https://conda.anaconda.org/conda-forge/noarch/spyder-kernels-2.5.2-win_pyh7428d3b_0.conda
https://conda.anaconda.org/conda-forge/win-64/libklu-2.3.5-h77a2eaa_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libspqr-4.3.4-h60c7c62_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libumfpack-6.3.5-h4ca129d_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/libparu-1.0.0-hd80212b_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/suitesparse-7.10.1-hfa24a04_7100102.conda
https://conda.anaconda.org/conda-forge/win-64/cadet-5.0.3-h6c8fd53_0.conda

Dear Abhinav,

Thank you for providing your environment file!

From what I can see in your first post, you are trying to use our Python Frontend CADET-Process while your environment file shows you have only the C++ solver CADET-Core (on conda named cadet) installed.

I am assuming you installed CADET-Core with conda install cadet as described in the CADET-Core Installation Guide.

If you would like to additionally use CADET-Process as frontend, you have to install it in the same environment using pip install CADET-Process as described here.

Please try installing CADET-Process in your environment alongside with CADET-Core and tell me if that solves your problem!

All the best,
Hannah

1 Like

I’m sorry to say this, but it still repeats the issues and warnings I mentioned in my post. Even after I tried to install the CADET-Process again using pip install CADET-Process

Hi, sorry to hear that you continue having trouble. Maybe it would be an option to join our next Office Hours where we can probably help you more directly.

1 Like