MATLAB gives file not found error when trying toopen a pkl file.

3 views (last 30 days)
fid=py.open('set1.pkl','rb');
Error using connector.internal.fevalMatlab
Python Error: IOError: [Errno 2] No such file or directory: 'set1.pkl'

Error in connector.internal.fevalJSON
data=py.pickle.load(fid);
  1 Comment
Walter Roberson
Walter Roberson on 13 Aug 2021
As outside observers, we have no reason to expect that set1.pkl exists in the current directory; perhaps it is in a different directory.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!