cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error 95 when importing one Notebook into another

Mumrel
Contributor

When I follow the instructions Modularize your code using files I get the following error:

imageI am on azure, use DBRT 12.2 LTS, use ADLS as storage, I am happy to provide more details if needed. My research suggest that the reason is that the dfbs fuse driver does not support random writes (see limitations here). And it seems this is needed by the import mechanism behind the scenes in order to work.

But then how does it work for anybody? Is there something I can do to make it work?

And what is the exact difference between using import from files as compared to using the run command?

1 ACCEPTED SOLUTION

Accepted Solutions

Ok, I think this explains it. I made an error and created the library as a Notebook instead of file. Once I create it as a file, it works, although the contents are exactly the same.

Thanks!

View solution in original post

2 REPLIES 2

-werners-
Esteemed Contributor III

import works for .py files.

.%run is for notebooks.

is lib a .py file or a notebook?

Ok, I think this explains it. I made an error and created the library as a Notebook instead of file. Once I create it as a file, it works, although the contents are exactly the same.

Thanks!

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