Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?

1 view (last 30 days)
I am using 'OutOfProcess' to execute a sequence of Python commands including reading some files in MATLAB.
Why can't I move or delete files which are imported using Python commands in MATLAB in 'OutOfProcess' mode?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 Sep 2020
When executing Python commands including reading files in 'OutOfProcess' mode in MATLAB, the files remain open in a separately running Python process and need to be closed explicitly in Python using the 'close()' command in order to be able to move or delete them.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!