Hi
I’m having a problem by creating a file (utils.ipynb) for CADET-Tutorial
I get this error from row 11 : AttributeError: ‘str’ object has no attribute 'exists’
11-if cadet_path.exists() and lwe_path.exists():
12- Cadet.cadet_path = cadet_path.as_posix()
13-elif cadet_path.exists() and not lwe_path.exists():
14- print(“CADET was found but createLWE.exe was not found. Please make sure that none of the
files have been moved.”)
15-else:
16- print(“CADET could not be found. Please check the bin path”)
the program expects a Path object and not a string.
In your case, you would simply have to set:
cadet_bin_path = Path('C:\cadet\bin')
and leave the rest as is, assuming that you extracted the package in C:\cadet.
Please also note that in Windows, paths are denoted using backslashes (\)
The actual path to cadet-cli is then taken care of by the body of the if statement.
Btw, while I appreciate you numbering the lines, please consider also using three backticks (`) before and after your code blocks s.t. the formatting makes it easier to read and to copy your code.