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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group