What does the error, "fl:filesystem:AccessDenied" mean when trying to use Python?
29 views (last 30 days)
Show older comments
Matt Butts
on 2 Apr 2024
Commented: Matthias Schwaiger
on 12 May 2025
I am trying to call Python from MATLAB, but whenever I run any Python commands, I get the error: fl:filesystem:AccessDenied
For example:
>> pyenv
fl:filesystem:AccessDenied
>> py.list({'This','is a','list'})
fl:filesystem:AccessDenied
I can't find any information about what this means.
I have Python 3.9 installed and I can call Python from the Windows command line.
3 Comments
Matthias Schwaiger
on 12 May 2025
The same happens on my machine when editing simulink models (I do not use python). I use a separate prefdir and also a separate temp-folder for that Matlab instance only. Is there any way to see which file can not be accessed in order to track it down?
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!