Cadet not found

Hi,

I am fairly new to this platform. I have installed CADET-Process and Cadet on VisualStudio code. I am trying to run the CadetProcess simulator and when I run this command -

from CADETProcess.simulator import Cadet
process_simulator = Cadet()

There is an error that says FileNotFoundError: CADET could not be found. Please check the path. I have verified and all the packages are installed. Kindly help me in fixing this error. Thank you :slight_smile:

Hi and welcome to the forum,

please send us an output of conda list, pip freeze and the full Python stack traceback from the error. Thanks!

Hi,
As a newbie, I had the same problem。When running the case study(Load-wash-Elute) using CADET-process, an error message appears “FileNotFoundError: Could not autodetect CADET installation. Please provide path.” But I can run the CADET-python example smoothly(V4.4.0,example of
the cadet introduction)。 looking forward your help in resolving this error,thanks。

Trace back info:

runfile('E:/cadet case/1.py', wdir='E:/cadet case')
Traceback (most recent call last):

  File E:\conda\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File e:\cadet case\1.py:82
    process_simulator = Cadet()

  File E:\conda\Lib\site-packages\CADETProcess\simulator\cadetAdapter.py:101 in __init__
    self.autodetect_cadet()

  File E:\conda\Lib\site-packages\CADETProcess\simulator\cadetAdapter.py:162 in autodetect_cadet
    raise FileNotFoundError(

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

Hi Yuanfeng,

welcome to the Forum.

Two things ahead of time:

  1. As note above, please send us an output of conda list, pip freeze so that we can see if all required packages are installed in the correct python environment.

  2. Based on this line

    File E:\conda\Lib\site-packages\CADETProcess\simulator\cadetAdapter.py:101 in __init__
    

    in the traceback it looks like you are currently not using environments for your python library. We highly recommend doing so and have written a guide on the topic.

With that said, if CADET-Core is found by CADET-Python, then you can check the .cadet_path property from CADET-Python to see where it found CADET-Core and give that to CADET-Process in the Cadet(install_path=xxx) call.
So after importing Cadet from CADET-Python please run

cadet = Cadet()
print(cadet.cadet_path)

and please also share that info with us. It would be valuable to learn why we get multiple reports of CADET-Process not detecting the CADET-Core installation.

1 Like

Thank you very much for your reply.
I have explored and resolved this issue, which was caused by incorrect path configuration during the installation of conda. When installing conda, I chose to automatically configure the path, but it seems inappropriate. Simply add ‘site packages’ to the path can solve this problem.