cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

File Not Found Error while reading pickle file

divyasri1504
New Contributor

Hello, there

I have a pickle file uploaded in a mounted location in databricks ( /dbfs/mnt/blob/test.pkl). I am trying to read this pickle file using the below python snippet

with open(path + "test.pkl", "rb") as f:
       bands = pickle.load(f)

But it throws FileNotFoundError: [Errno 2] No such file or directory: ' /dbfs/mnt/blob/test.pkl'. But the file is present in that location. I have tried listing using dbutils.fs.ls as well and file is present. Can anyone help me with this issue.

Thanks

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now