cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.